TBG -- UML


______________________
|        Map
|---------------------
| -ID       : ULONG     (unique identification number)
| -sflag    : ULONG
| -w,h      : int       (width and height)
| -tilemap  : Tile[]    (map)
| -thingrid : Thing[]*  (pointer map)
|---------------------
| +getWidth() : int
| +getHeight() : int
| +getGround(int,int) : UBYTE
| +getThing(int,int) : Thing*
|
| +outOfMapQ(x,y) : bool
| +occupiedQ(x,y) : bool
| +walkableQ(intXY,dir) : bool
|
| +insertThing(Thing*,x,y) : int
| +removeThing(x,y) : Thing*
| +moveThing(Thing*,dir) : int
|