 | Purpose:
Data base holding game objects. Game objects in list are sorted by z-order. |
 | Methods:
void KillList () - Empties the list (also frees the objects
allocated memory).
void AddObject (CGameObject *) - Inserts a new game object to
list.
void RemoveObject (CGameObject *) - Removes the objects from
list.
CReaction GetGameReaction (CGameObject *) - Iterates over game
objects and return the unified reaction to the given game object.
int GetObjectsCount () const - Get the number of objects in
list.
LIST_POS GetHeadPosition () - Return a position object to head
of list.
CGameObject *GetNext (LIST_POS&) - Gets the object at
position and advance the position to next object in list.
BOOL IsObjectValid (CGameObject *) - Checks the pointer points
to a living object.
void Freeze() - Freeze the list from being changed (add ||
remove)
void Thaw() - Undo freeze
|
|