#include <TargetGroupsSetEntry.h>

Public Member Functions | |
| TargetGroupsSetEntry (const char *name) | |
| virtual | ~TargetGroupsSetEntry () |
| const char * | getName () |
| TargetGroup * | getObjectByPos (int position) |
| TargetGroup * | getObjectById (unsigned int playerId) |
| bool | hasObject (TargetGroup *object) |
| bool | hasObjectById (unsigned int playerId) |
| std::map< unsigned int, TargetGroup * > & | getObjects () |
| virtual void | addObject (TargetGroup *object, bool thin) |
| virtual bool | removeObject (TargetGroup *object) |
| virtual int | getObjectCount () |
Protected Attributes | |
| std::string | name_ |
| std::map< unsigned int, TargetGroup * > | objects_ |
Definition at line 28 of file TargetGroupsSetEntry.h.
| TargetGroupsSetEntry::TargetGroupsSetEntry | ( | const char * | name | ) |
Definition at line 25 of file TargetGroupsSetEntry.cpp.
| TargetGroupsSetEntry::~TargetGroupsSetEntry | ( | ) | [virtual] |
Definition at line 30 of file TargetGroupsSetEntry.cpp.
| const char* TargetGroupsSetEntry::getName | ( | ) | [inline] |
Definition at line 34 of file TargetGroupsSetEntry.h.
References name_.
Referenced by TargetGroup::readMessage(), and TargetGroup::writeMessage().
| TargetGroup * TargetGroupsSetEntry::getObjectByPos | ( | int | position | ) |
Definition at line 54 of file TargetGroupsSetEntry.cpp.
References int(), and objects_.
Referenced by WeaponGroupSelect::fireWeapon(), and LandscapeSoundPositionSet::getInitData().
| TargetGroup * TargetGroupsSetEntry::getObjectById | ( | unsigned int | playerId | ) |
Definition at line 46 of file TargetGroupsSetEntry.cpp.
References objects_.
Referenced by LandscapeSoundPositionSet::setPosition().
| bool TargetGroupsSetEntry::hasObject | ( | TargetGroup * | object | ) |
Definition at line 67 of file TargetGroupsSetEntry.cpp.
References Target::getPlayerId(), TargetGroup::getTarget(), and objects_.
Referenced by TargetGroup::readMessage(), and TargetGroup::removeFromAllGroups().
| bool TargetGroupsSetEntry::hasObjectById | ( | unsigned int | playerId | ) |
| std::map<unsigned int, TargetGroup *>& TargetGroupsSetEntry::getObjects | ( | ) | [inline] |
Definition at line 40 of file TargetGroupsSetEntry.h.
References objects_.
Referenced by TargetMovementEntrySpline::generate(), TargetMovementEntryShips::generate(), TargetMovementEntryBoids::makeBoids(), TargetMovementEntrySpline::simulate(), TargetMovementEntryShips::simulate(), and TargetMovementEntryBoids::simulate().
| void TargetGroupsSetEntry::addObject | ( | TargetGroup * | object, | |
| bool | thin | |||
| ) | [virtual] |
Reimplemented in TargetGroupsGroupEntry.
Definition at line 34 of file TargetGroupsSetEntry.cpp.
References objects_.
Referenced by TargetGroupsGroupEntry::addObject(), and TargetGroup::readMessage().
| bool TargetGroupsSetEntry::removeObject | ( | TargetGroup * | object | ) | [virtual] |
Reimplemented in TargetGroupsGroupEntry.
Definition at line 40 of file TargetGroupsSetEntry.cpp.
References Target::getPlayerId(), TargetGroup::getTarget(), and objects_.
Referenced by TargetGroup::readMessage(), TargetGroup::removeFromAllGroups(), and TargetGroupsGroupEntry::removeObject().
| int TargetGroupsSetEntry::getObjectCount | ( | ) | [virtual] |
Definition at line 77 of file TargetGroupsSetEntry.cpp.
References objects_.
Referenced by LandscapeConditionGroupSize::fireEvent(), WeaponGroupSelect::fireWeapon(), LandscapeSoundPositionSet::getInitCount(), TankMenus::groupInfo(), LandscapeSoundPositionGroup::setPosition(), and LandscapeSoundPositionSet::setPosition().
std::string TargetGroupsSetEntry::name_ [protected] |
std::map<unsigned int, TargetGroup *> TargetGroupsSetEntry::objects_ [protected] |
Definition at line 49 of file TargetGroupsSetEntry.h.
Referenced by addObject(), getObjectById(), getObjectByPos(), getObjectCount(), getObjects(), hasObject(), hasObjectById(), and removeObject().
1.5.3