CObjectsArray
Up

Purpose:
Implements an array of game objects sharing the same z-order. Used by the GameObjectsList class.
Methods:
void Init (UINT uSize) - Create a new buffer in given size.
BOOL Add(CGameObject *) - Add game object.
BOOL Remove(CGameObject *) - Removes a game object.
ARR_POS GetHeadPosition() - Return a position object to the first game object in the array.
CGameObject* GetNext(ARR_POS&) - Return the game object at the position, and advance the position to next object.
BOOL IsEmpty() - Return TRUE if array is empty.
int GetObjectsCount() const - Return the number of objects in array.
void Empty() - Deletes all pointers in array.

 

Back Home Up Next