#include <PlacementGroupDefinition.h>
Public Member Functions | |
| PlacementGroupDefinition () | |
| virtual | ~PlacementGroupDefinition () |
| bool | readXML (XMLNode *node) |
| void | addToGroups (ScorchedContext &context, TargetGroup *objectEntry, bool thin) |
Protected Member Functions | |
| void | addToGroup (const char *groupName, ScorchedContext &context, TargetGroup *objectEntry, bool thin) |
Protected Attributes | |
| std::vector < std::string > | groupnames_ |
Definition at line 30 of file PlacementGroupDefinition.h.
| PlacementGroupDefinition::PlacementGroupDefinition | ( | ) |
Definition at line 25 of file PlacementGroupDefinition.cpp.
| PlacementGroupDefinition::~PlacementGroupDefinition | ( | ) | [virtual] |
Definition at line 29 of file PlacementGroupDefinition.cpp.
| bool PlacementGroupDefinition::readXML | ( | XMLNode * | node | ) |
Definition at line 33 of file PlacementGroupDefinition.cpp.
References XMLNode::getNamedChild(), and groupnames_.
Referenced by TargetDefinition::readXML(), TankDefinition::readXML(), and PlacementObjectTarget::readXML().
| void PlacementGroupDefinition::addToGroups | ( | ScorchedContext & | context, | |
| TargetGroup * | objectEntry, | |||
| bool | thin | |||
| ) |
Definition at line 43 of file PlacementGroupDefinition.cpp.
References addToGroup(), and groupnames_.
Referenced by TankDefinition::createTank(), and TargetDefinition::createTarget().
| void PlacementGroupDefinition::addToGroup | ( | const char * | groupName, | |
| ScorchedContext & | context, | |||
| TargetGroup * | objectEntry, | |||
| bool | thin | |||
| ) | [protected] |
Definition at line 55 of file PlacementGroupDefinition.cpp.
References TargetGroupsGroupEntry::addObject(), LandscapeMaps::getGroundMaps(), TargetGroups::getGroup(), GroundMaps::getGroups(), GroundMaps::getHeightMap(), and ScorchedContext::getLandscapeMaps().
Referenced by addToGroups().
std::vector<std::string> PlacementGroupDefinition::groupnames_ [protected] |
Definition at line 43 of file PlacementGroupDefinition.h.
Referenced by addToGroups(), and readXML().
1.5.3