#include <zakdef.h>
#include <compilerpragmas.h>
Go to the source code of this file.
Functions | |
EXPORT void | PCityMain (void) |
Application level initialization routines. | |
EXPORT void | ConfigureNewGame (void) |
set up a game | |
EXPORT void | InitGameStruct (void) |
initialize the game structure. | |
EXPORT void | DrawGame (Int8 full) |
Draw the entire game arena. | |
EXPORT void | PostLoadGame (void) |
Things to do after loading the game. | |
EXPORT void | setMapSize (UInt8 X, UInt8 Y) |
set the map size |
Definition in file handler.h.
|
set up a game Setting up a new game ... initialize the variables. the difficulty level should be set before calling this. Definition at line 90 of file handler.c. References CreateForests(), CreateFullRiver(), DrawGame(), and getDifficultyLevel(). Referenced by cnCreateButtonPressed(), main(), and NewGame(). |
|
Draw the entire game arena.
Definition at line 116 of file handler.c. References Int8, and RedrawAllFields(). Referenced by ConfigureNewGame(), doOpen(), and ImportOneFromGame(). |
|
initialize the game structure. This is just prior to, say, making a new savegame. It makes sure that all the variables are set to the correct values Definition at line 63 of file handler.c. References AddGridUpdate, GRID_ALL, Int16, SAVEGAMEVERSION, SETAUTOBULLDOZE, setDisasterLevel(), and setMapSize(). Referenced by cnCreateButtonPressed(), main(), and NewGame(). |
|
set the map size Does not allocate any extra memory.
Definition at line 40 of file handler.c. References LockZone(), lz_world, ResizeWorld(), setMapVariables, UIMapResize(), UInt8, UnlockZone(), and WorldSize. Referenced by cnCreateButtonPressed(), InitGameStruct(), and NewGame(). |