Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

source/handler.h File Reference

interface to the handler functions More...

#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


Detailed Description

interface to the handler functions

Definition in file handler.h.


Function Documentation

EXPORT void ConfigureNewGame void   
 

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().

EXPORT void DrawGame Int8    full
 

Draw the entire game arena.

Parameters:
full  unused.

Definition at line 116 of file handler.c.

References Int8, and RedrawAllFields().

Referenced by ConfigureNewGame(), doOpen(), and ImportOneFromGame().

EXPORT void InitGameStruct void   
 

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().

EXPORT void setMapSize UInt8    X,
UInt8    Y
 

set the map size

Does not allocate any extra memory.

Parameters:
X  the new map X size
Y  the new map Y size

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().


Generated on Mon Aug 30 19:44:18 2004 for pocketcity by doxygen1.2.18