Claypool

Courses

Publications

Students

Projects

Service

Downloads

Misc


Dragonfly: ObjectList Class Reference
Dragonfly 2.2
A text-based game engine
Public Member Functions | Protected Attributes | Friends

ObjectList Class Reference

List of all members.

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).
Objectfind (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.
Objectlist [MAX_OBJECTS]
 Array of pointers to objects.

Friends

class ObjectListIterator
 Iterators can access.

Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends