#include <ObjectArray.h>
Inherits Object.
Public Member Functions | |
ObjectArray () | |
virtual | ~ObjectArray () |
void | FreeArray () |
virtual class Object * | GetAt (int pAt) |
virtual class Object * | PutAt (int pAt, class Object *pO, bool replace=true) |
bool | IsEmpty () |
virtual void | Print (int indent=0) |
Private Attributes | |
class ObjectLink * | _first |
Definition at line 6 of file ObjectArray.h.
ObjectArray::ObjectArray | ( | ) |
ObjectArray::~ObjectArray | ( | ) | [virtual] |
void ObjectArray::FreeArray | ( | ) |
Definition at line 24 of file ObjectArray.cpp.
References _first, ObjectLink::GetNext(), and ObjectLink::GetValue().
class Object * ObjectArray::GetAt | ( | int | pAt | ) | [virtual] |
Definition at line 38 of file ObjectArray.cpp.
References _first, ObjectLink::GetIndex(), ObjectLink::GetNext(), and ObjectLink::GetValue().
Referenced by Room::GetSide(), and Maze::RoomNo().
bool ObjectArray::IsEmpty | ( | ) |
void ObjectArray::Print | ( | int | indent = 0 |
) | [virtual] |
Reimplemented from Object.
Definition at line 85 of file ObjectArray.cpp.
References _first, ObjectLink::GetNext(), ObjectLink::GetValue(), IsEmpty(), Object::Print(), and PrintIndent().
Referenced by Room::Print(), and Maze::Print().
Definition at line 51 of file ObjectArray.cpp.
References _first, ObjectLink::GetIndex(), ObjectLink::GetNext(), ObjectLink::GetValue(), ObjectLink::SetNext(), and ObjectLink::SetValue().
Referenced by Maze::AddRoom(), and Room::SetSide().
class ObjectLink* ObjectArray::_first [private] |
Definition at line 22 of file ObjectArray.h.
Referenced by FreeArray(), GetAt(), IsEmpty(), ObjectArray(), Print(), PutAt(), and ~ObjectArray().