5#ifndef __OBJECT_LIST_ITERATOR_H__
6#define __OBJECT_LIST_ITERATOR_H__
Definition: ObjectListIterator.h:15
bool isDone() const
Return true if at end of list.
void first()
Set iterator to first item in list.
void next()
Set iterator to next item in list.
ObjectListIterator()
Iterator must be given list when created.
Object * currentObject() const
Return pointer to current item in list, NULL if done/empty.
int m_index
Index into list.
Definition: ObjectListIterator.h:19
ObjectListIterator(const ObjectList *p_list)
Create iterator, over indicated list.
ObjectListIterator & operator=(const ObjectListIterator &rhs)
Assignment operator.
void setList(const ObjectList *p_list)
Set to new List.
const ObjectList * m_p_list
List iterating over.
Definition: ObjectListIterator.h:20
void last()
Reset to last object in list.
Definition: ObjectList.h:15
An animation for a sprite.
Definition: Animation.h:15