00001
00007 #if !defined(_UI_H)
00008 #define _UI_H
00009
00010 #include <zakdef.h>
00011 #include <build.h>
00012
00013 #define MSG_QUESTION_REALLY_QUIT 1
00014
00015 #if defined(__cplusplus)
00016 extern "C" {
00017 #endif
00018
00019 void UIDisasterNotify(disaster_t disaster);
00020 void UIProblemNotify(problem_t problem);
00021
00022 void UISystemErrorNotify(syserror_t error);
00023 void UIDisplayError1(char *message);
00024
00026 void UIInitDrawing(void);
00028 void UIFinishDrawing(void);
00029
00031 void UIUnlockScreen(void);
00032
00034 void UILockScreen(void);
00035
00037 void UIPostLoadGame(void);
00038
00043 void UIInitGraphic(void);
00044 void UIGotoForm(Int16);
00045
00047 void UIPaintCredits(void);
00049 void UIPaintPopulation(void);
00051 void UIPaintDate(void);
00053 void UIPaintLocation(void);
00055 void UIPaintBuildIcon(void);
00057 void UIPaintSpeed(void);
00058
00060 void UIPaintDesires(void);
00061
00063 void UIPaintPlayArea(void);
00064
00066 void UISetUpGraphic(void);
00067
00068 void UICheckMoney(void);
00069 void UIScrollDisplay(dirType direction);
00070 void _UIDrawRect(Int16 nTop, Int16 nLeft, Int16 nHeight, Int16 nWidth);
00071
00078 void UIPaintField(UInt16 xpos, UInt16 ypos, welem_t nGraphic);
00079
00086 void UIPaintSpecialObject(UInt16 xpos, UInt16 ypos, Int8 i);
00087
00094 void UIPaintSpecialUnit(UInt16 xpos, UInt16 ypos, Int8 i);
00095
00101 void UIPaintCursor(UInt16 xpos, UInt16 ypos);
00102
00108 void UIPaintPowerLoss(UInt16 xpos, UInt16 ypos);
00109
00115 void UIPaintWaterLoss(UInt16 xpos, UInt16 ypos);
00116
00121 BuildCode UIGetSelectedBuildItem(void);
00122
00126 void MapHasJumped(void);
00127
00133 UInt32 GetRandomNumber(UInt32 max);
00134
00144 void UIPaintMapField(UInt16 xpos, UInt16 ypos, welem_t elem);
00145
00153 void UIPaintMapStatus(UInt16 xpos, UInt16 ypos, welem_t world, selem_t status);
00154
00161 Int8 UIClipped(UInt16 xpos, UInt16 ypos);
00162
00166 void UIMapResize(void);
00167
00175 void UIUpdateMap(UInt16 xpos, UInt16 ypos);
00176
00177 #if defined(__cplusplus)
00178 }
00179 #endif
00180
00181 #endif