TargetGroupsSetEntry Class Reference

#include <TargetGroupsSetEntry.h>

Inheritance diagram for TargetGroupsSetEntry:

TargetGroupsGroupEntry

List of all members.

Public Member Functions

 TargetGroupsSetEntry (const char *name)
virtual ~TargetGroupsSetEntry ()
const char * getName ()
TargetGroupgetObjectByPos (int position)
TargetGroupgetObjectById (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_


Detailed Description

Definition at line 28 of file TargetGroupsSetEntry.h.


Constructor & Destructor Documentation

TargetGroupsSetEntry::TargetGroupsSetEntry ( const char *  name  ) 

Definition at line 25 of file TargetGroupsSetEntry.cpp.

TargetGroupsSetEntry::~TargetGroupsSetEntry (  )  [virtual]

Definition at line 30 of file TargetGroupsSetEntry.cpp.


Member Function Documentation

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  ) 

Definition at line 72 of file TargetGroupsSetEntry.cpp.

References objects_.

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().


Member Data Documentation

std::string TargetGroupsSetEntry::name_ [protected]

Definition at line 48 of file TargetGroupsSetEntry.h.

Referenced by getName().

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().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:07 2009 for Scorched3D by  doxygen 1.5.3