Go to the source code of this file.
Enumerations | |
enum | lockZone { lz_world = 0, lz_flags, lz_growable, lz_end } |
the zones to lock/unlock More... | |
Functions | |
void | LockZone (lockZone zone) |
lock the zone specified for writing | |
void | UnlockZone (lockZone zone) |
unlock the zone specified. don't write to it anymore | |
void | ReleaseZone (lockZone zone) |
release the memory allocated to this zone |
These are all the functions that need implementing if you want to make the game work.
Definition in file locking.h.
|
the zones to lock/unlock
Definition at line 15 of file locking.h. Referenced by LockZone(), ReleaseZone(), and UnlockZone(). |
|
lock the zone specified for writing
Definition at line 24 of file palm_locking.c. References lockZone. Referenced by Build_Bulldoze(), Build_Defence(), Build_Generic(), Build_Generic4(), Build_PowerLine(), Build_Rail(), Build_Road(), Build_WaterPipe(), BuildSomething(), BurnField(), CreateDragon(), CreateForest(), CreateFullRiver(), CreateMeteor(), CreateMonster(), CreateWaste(), DoDistribute(), DoNastyStuffTo(), DoRandomDisaster(), DowngradeZone(), FindScoreForZones(), GetRandomZone(), GetZoneScore(), hoverUpdate(), LoadGameByIndex(), MoveAllObjects(), MoveCursor(), querySetup(), ReleaseZone(), RenderMaps(), ResizeWorld(), SaveGameByIndex(), setMapSize(), UIPaintPlayArea(), UIScrollDisplay(), UpdateDisasters(), and UpdateVolatiles(). |
|
release the memory allocated to this zone
Definition at line 39 of file palm_locking.c. References lockZone, and lz_world. Referenced by PurgeWorld(). |
|
unlock the zone specified. don't write to it anymore
Definition at line 53 of file palm_locking.c. References lockZone. Referenced by Build_Bulldoze(), Build_Defence(), Build_Generic(), Build_Generic4(), Build_PowerLine(), Build_Rail(), Build_Road(), Build_WaterPipe(), BuildSomething(), BurnField(), CreateDragon(), CreateForest(), CreateFullRiver(), CreateMeteor(), CreateMonster(), CreateWaste(), DoDistribute(), DoNastyStuffTo(), DoRandomDisaster(), DowngradeZone(), FindScoreForZones(), GetRandomZone(), GetZoneScore(), hoverUpdate(), LoadGameByIndex(), MoveAllObjects(), MoveCursor(), querySetup(), RenderMaps(), ResizeWorld(), SaveGameByIndex(), setMapSize(), UIPaintPlayArea(), UIScrollDisplay(), UpdateDisasters(), and UpdateVolatiles(). |