5#ifndef __OBJECT_LIST_H__
6#define __OBJECT_LIST_H__
9#include "ObjectListIterator.h"
13class ObjectListIterator;
Definition: ObjectListIterator.h:15
Definition: ObjectList.h:15
void clear()
Clear list (setting count to 0).
int getCount() const
Return count of number of objects in list.
ObjectList(const ObjectList &other)
Copy contructor (does deep copy).
bool isFull() const
Return true if list is full, else false.
ObjectList operator+(ObjectList)
Add two lists, second appended to first.
Object *& operator[](int index)
Index into list.
int m_max_count
Maximum objects in list (variable).
Definition: ObjectList.h:19
ObjectList & operator+=(const ObjectList &other)
Add other ObjectList to this one.
bool operator!=(const ObjectList &other) const
Compare two lists.
int m_count
Count of objects in list.
Definition: ObjectList.h:18
int insert(Object *p_o)
Insert object pointer in list.
bool operator==(const ObjectList &other) const
Compare two lists.
Object ** p_item
Array of pointers to objects.
Definition: ObjectList.h:20
bool isEmpty() const
Return true if list is empty, else false.
int remove(Object *p_o)
Remove object pointer from list, Return 0 if found, else -1.
ObjectList & operator=(const ObjectList &rhs)
Assignment operator (does deep copy).
An animation for a sprite.
Definition: Animation.h:15