29 #include "saga2/gpointer.h" 41 const int kMax_Modes = 8,
45 const int kScreenWidth = 640,
49 const int kTicksPerSecond = 72;
52 const int kFrameRate = 10,
53 kFramePeriod = kTicksPerSecond / kFrameRate;
81 static GameMode *_modeStackPtr[kMax_Modes];
82 static int _modeStackCtr;
83 static GameMode *_newmodeStackPtr[kMax_Modes];
84 static int _newmodeStackCtr;
85 static int _newmodeFlag;
91 void (*_handleTask)();
92 void (*_handleKey)(int16 key, int16 qual);
95 static void modeUnStack();
96 static void modeUnStack(
int StopHere);
97 static int getStack(
GameMode **saveStackPtr);
98 static void SetStack(
GameMode *modeFirst, ...);
99 static void SetStack(
GameMode **newStack,
int newStackSize);
100 static bool update();
101 static void modeStack(
GameMode *AddThisMode);
104 static void modeSwitch();
137 void set(uint32 duration);
151 void WriteStatusF(int16 lin,
const char *msg, ...);
155 void *LoadFile(
char *filename);
159 void *LoadResource(
hResContext *con, uint32
id,
const char desc[]);
165 void restoreProgramDir();
169 int16 GetRandomBetween(
int start,
int end);
173 int16 quickDistance(
const Point16 &p);
174 int32 quickDistance(
const Point32 &p);
176 void initPathFinder();
177 void cleanupPathFinder();
186 inline void cleanupGlobals() {}
192 typedef int16 ThreadID;
193 const ThreadID NoThread = -1;
196 void wakeUpThread(ThreadID thread);
199 void wakeUpThread(ThreadID thread, int16 returnVal);
203 void cleanupScripts();
204 void dispatchScripts();
207 extern int16 extendedThreadLevel;
213 extern volatile int32 gameTime;
Definition: savefile.h:54
Definition: memstream.h:194
Definition: hresmgr.h:152