Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

source/locking.h File Reference

the user interface routines that need defining in any implementation More...

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


Detailed Description

the user interface routines that need defining in any implementation

These are all the functions that need implementing if you want to make the game work.

Definition in file locking.h.


Enumeration Type Documentation

enum lockZone
 

the zones to lock/unlock

Enumeration values:
lz_world  lock the world zone
lz_flags  lock the world flags
lz_growable  lock the growable memory zone
lz_end  the end/guard entry for the memory zones

Definition at line 15 of file locking.h.

Referenced by LockZone(), ReleaseZone(), and UnlockZone().


Function Documentation

void LockZone lockZone    zone
 

lock the zone specified for writing

Parameters:
zone  the zone to lock

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

void ReleaseZone lockZone    zone
 

release the memory allocated to this zone

Parameters:
zone  the zone to release

Definition at line 39 of file palm_locking.c.

References lockZone, and lz_world.

Referenced by PurgeWorld().

void UnlockZone lockZone    zone
 

unlock the zone specified. don't write to it anymore

Parameters:
zone  the zone to unlock

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


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