Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <collection.h>
Public Member Functions | |
UnitIterator () | |
UnitIterator (const UnitIterator &) | |
UnitIterator (UnitCollection *) | |
virtual | ~UnitIterator () |
bool | isDone () |
bool | notDone () |
void | remove () |
void | moveBefore (UnitCollection &) |
void | preinsert (class Unit *) |
void | postinsert (class Unit *unit) |
void | advance () |
Unit * | next () |
UnitIterator & | operator= (const UnitIterator &) |
const UnitIterator | operator++ (int) |
const UnitIterator & | operator++ () |
Unit * | operator* () |
UnitIterator () | |
UnitIterator (UnitListNode *start) | |
Creates this unit iterator. More... | |
UnitIterator (const UnitIterator &orig) | |
UnitIterator & | operator= (const UnitIterator &orig) |
~UnitIterator () | |
bool | isDone () const |
bool | notDone () const |
void | remove () |
removes something after pos. eg the first valid unit. or current() More... | |
void | moveBefore (UnitCollection &otherList) |
void | preinsert (Unit *unit) |
inserts in front of current More... | |
void | postinsert (Unit *unit) |
inserts after current More... | |
Unit * | current () |
returns the unit pos is pointing at or NULL if all dead or end of list. More... | |
Unit * | next () |
advances the counter More... | |
void | advance () |
Unit * | operator++ (int) |
Unit * | operator++ () |
Unit * | operator* () |
Protected Attributes | |
UnitCollection * | col |
std::list< class Unit * >::iterator | it |
Friends | |
class | UnitCollection |
Definition at line 39 of file collection.h.
|
inline |
Definition at line 42 of file collection.h.
UnitCollection::UnitIterator::UnitIterator | ( | const UnitIterator & | orig) |
UnitCollection::UnitIterator::UnitIterator | ( | UnitCollection * | orig) |
|
virtual |
Definition at line 49 of file collection.cpp.
|
inline |
Definition at line 66 of file oldcollection.h.
|
inline |
Creates this unit iterator.
Definition at line 68 of file oldcollection.h.
|
inline |
Definition at line 72 of file oldcollection.h.
|
inline |
Definition at line 78 of file oldcollection.h.
void UnitCollection::UnitIterator::advance | ( | ) |
Definition at line 84 of file collection.cpp.
Referenced by UnitCollection::append(), UnitCollection::cleanup(), GameStarSystem::Draw(), UniverseUtil::getNumUnits(), next(), operator++(), and UnitCollection::prepend().
|
inline |
Definition at line 112 of file oldcollection.h.
|
inline |
returns the unit pos is pointing at or NULL if all dead or end of list.
Definition at line 102 of file oldcollection.h.
Referenced by GameStarSystem::Draw(), UniverseUtil::getNumUnits(), next(), operator*(), and operator++().
|
inline |
Definition at line 47 of file collection.h.
Referenced by notDone(), StarSystem::Update(), and Cockpit::updateAttackers().
|
inline |
Definition at line 83 of file oldcollection.h.
void UnitCollection::UnitIterator::moveBefore | ( | UnitCollection & | otherlist) |
Definition at line 61 of file collection.cpp.
References UnitCollection::prepend().
Referenced by StarSystem::RequestPhysics().
void UnitCollection::UnitIterator::moveBefore | ( | UnitCollection & | otherList) |
Unit * UnitCollection::UnitIterator::next | ( | ) |
|
inline |
|
inline |
Definition at line 53 of file collection.h.
References isDone().
Referenced by Planet::PlanetIterator::advance(), UnitCollection::cleanup(), Planet::PlanetIterator::current(), UniverseUtil::getUnitByName(), UniverseUtil::getUnitByPtr(), main(), and RecursiveSetSchedule().
|
inline |
Definition at line 87 of file oldcollection.h.
|
inline |
|
inline |
Definition at line 128 of file oldcollection.h.
References current().
|
inline |
Definition at line 77 of file collection.h.
References advance().
|
inline |
Definition at line 83 of file collection.h.
References advance().
|
inline |
|
inline |
Definition at line 73 of file oldcollection.h.
UnitCollection::UnitIterator & UnitCollection::UnitIterator::operator= | ( | const UnitIterator & | orig) |
void UnitCollection::UnitIterator::postinsert | ( | class Unit * | unit) |
void UnitCollection::UnitIterator::postinsert | ( | Unit * | unit) |
inserts after current
void UnitCollection::UnitIterator::preinsert | ( | class Unit * | unit) |
Definition at line 69 of file collection.cpp.
Referenced by Unit::UpgradeSubUnitsWithFactory().
|
inline |
inserts in front of current
Definition at line 95 of file oldcollection.h.
void UnitCollection::UnitIterator::remove | ( | ) |
Definition at line 55 of file collection.cpp.
Referenced by UnitHash3d< char[coltablesize], char[coltableacc], char[tablehuge] >::removeFromVector(), and Unit::UpgradeSubUnitsWithFactory().
void UnitCollection::UnitIterator::remove | ( | ) |
removes something after pos. eg the first valid unit. or current()
|
friend |
Definition at line 96 of file collection.h.
|
protected |
Definition at line 98 of file collection.h.
Referenced by isDone(), operator*(), operator=(), and UnitIterator().
|
protected |
Definition at line 101 of file collection.h.
Referenced by isDone(), operator*(), operator=(), and UnitIterator().