![]() |
Dragonfly 2.2
A text-based game engine
|
Public Member Functions | |
ObjectListIterator | createIterator () const |
Create an iterator. | |
int | insert (Object *p_o) |
Insert object pointer in list. | |
int | remove (Object *p_o) |
Remove object pointer from list, Return 0 if found, else -1. | |
void | clear () |
Clear the list (setting count to 0). | |
Object * | find (int id) |
Return pointer to object with indicated id, NULL of not found. | |
int | getCount (void) |
Return count of number of objects in list. | |
bool | isEmpty () |
Return true if list is empty, else false. | |
bool | isFull () |
Return true if list is full, else false. | |
ObjectList | operator+ (ObjectList) |
Adding two lists together appends second to first. | |
Protected Attributes | |
int | count |
Count of objects in list. | |
Object * | list [MAX_OBJECTS] |
Array of pointers to objects. | |
Friends | |
class | ObjectListIterator |
Iterators can access. |
int ObjectList::insert | ( | Object * | p_o | ) |
Insert object pointer in list.
Return 0 if ok, else -1.
int ObjectList::remove | ( | Object * | p_o | ) |
Remove object pointer from list, Return 0 if found, else -1.