![]() |
Dragonfly 2.2
A text-based game engine
|
Public Member Functions | |
ObjectListIterator (const ObjectList *p_l) | |
Create iterator, over indicated list. | |
void | first () |
Set iterator to first item in list. | |
void | next () |
Set iterator to next item in list. | |
bool | isDone () |
Return true if at end of list. | |
Object * | currentObject () |
Return pointer to current item in list, NULL if done/empty. | |
Protected Attributes | |
int | index |
Index into list. | |
const ObjectList * | p_list |
List iterating over. | |
Private Member Functions | |
ObjectListIterator () | |
Iterator must be given list when created. |