#include <TankDefinition.h>
Public Member Functions | |
| TankDefinition () | |
| virtual | ~TankDefinition () |
| virtual bool | readXML (XMLNode *node, const char *base) |
| Tank * | createTank (unsigned int playerId, FixedVector &position, ScorchedContext &context, RandomGenerator &generator) |
| FixedVector & | getSize () |
| PlacementShadowDefinition & | getShadow () |
| PlacementGroupDefinition & | getGroups () |
Protected Attributes | |
| fixed | life_ |
| bool | boundingsphere_ |
| bool | driveovertodestroy_ |
| LangString | name_ |
| std::string | parachute_ |
| std::string | shield_ |
| FixedVector | size_ |
| std::string | removeaction_ |
| std::string | burnaction_ |
| PlacementShadowDefinition | shadow_ |
| PlacementGroupDefinition | groups_ |
| int | team_ |
| std::string | ai_ |
| std::string | tankmodel_ |
Definition at line 31 of file TankDefinition.h.
| TankDefinition::TankDefinition | ( | ) |
Definition at line 42 of file TankDefinition.cpp.
References PlacementShadowDefinition::setDrawShadow(), and shadow_.
| TankDefinition::~TankDefinition | ( | ) | [virtual] |
Definition at line 51 of file TankDefinition.cpp.
| bool TankDefinition::readXML | ( | XMLNode * | node, | |
| const char * | base | |||
| ) | [virtual] |
Definition at line 55 of file TankDefinition.cpp.
References ai_, boundingsphere_, burnaction_, driveovertodestroy_, XMLNode::failChildren(), XMLNode::getNamedChild(), groups_, life_, name_, parachute_, PlacementGroupDefinition::readXML(), PlacementShadowDefinition::readXML(), removeaction_, shadow_, shield_, tankmodel_, and team_.
Referenced by PlacementObjectTank::readXML().
| Tank * TankDefinition::createTank | ( | unsigned int | playerId, | |
| FixedVector & | position, | |||
| ScorchedContext & | context, | |||
| RandomGenerator & | generator | |||
| ) |
Definition at line 77 of file TankDefinition.cpp.
References AccessoryPart::AccessoryWeapon, PlacementGroupDefinition::addToGroups(), ai_, boundingsphere_, burnaction_, TankAI::createCopy(), S3D::dialogExit(), driveovertodestroy_, S3D::formatStringBuffer(), ScorchedContext::getAccessoryStore(), Accessory::getAction(), TankAIStore::getAIByName(), Tank::getAvatar(), S3D::getDataFile(), Target::getGroup(), Target::getLife(), TankModelStore::getModelByName(), TankModel::getName(), ScorchedContext::getOptionsGame(), Target::getParachute(), ScorchedContext::getServerMode(), Target::getShield(), Tank::getState(), ScorchedServer::getTankAIs(), ScorchedContext::getTankModels(), Target::getTargetState(), TankColorGenerator::getTeamColor(), Accessory::getType(), TankModel::getTypeName(), groups_, ScorchedServer::instance(), life_, TankAvatar::loadFromFile(), name_, Tank::newGame(), Tank::newMatch(), parachute_, removeaction_, TargetLife::setBoundingSphere(), Target::setBurnAction(), TargetParachute::setCurrentParachute(), TargetShield::setCurrentShield(), Target::setDeathAction(), TargetState::setDriveOverToDestroy(), TargetLife::setMaxLife(), Target::setRenderer(), TargetLife::setSize(), TankState::setState(), Tank::setTankAI(), TargetLife::setTargetPosition(), Tank::setTeam(), Tank::setUniqueId(), shield_, TankState::sInitializing, size_, TankState::sPending, LangStringUtil::strcmp(), tankmodel_, and team_.
Referenced by PlacementObjectTank::createObject().
| FixedVector& TankDefinition::getSize | ( | ) | [inline] |
Definition at line 43 of file TankDefinition.h.
References size_.
Referenced by PlacementObjectTank::createObject().
| PlacementShadowDefinition& TankDefinition::getShadow | ( | ) | [inline] |
Definition at line 44 of file TankDefinition.h.
References shadow_.
Referenced by PlacementObjectTank::createObject().
| PlacementGroupDefinition& TankDefinition::getGroups | ( | ) | [inline] |
fixed TankDefinition::life_ [protected] |
bool TankDefinition::boundingsphere_ [protected] |
bool TankDefinition::driveovertodestroy_ [protected] |
LangString TankDefinition::name_ [protected] |
std::string TankDefinition::parachute_ [protected] |
std::string TankDefinition::shield_ [protected] |
FixedVector TankDefinition::size_ [protected] |
std::string TankDefinition::removeaction_ [protected] |
std::string TankDefinition::burnaction_ [protected] |
PlacementShadowDefinition TankDefinition::shadow_ [protected] |
Definition at line 57 of file TankDefinition.h.
Referenced by getShadow(), readXML(), and TankDefinition().
PlacementGroupDefinition TankDefinition::groups_ [protected] |
Definition at line 58 of file TankDefinition.h.
Referenced by createTank(), getGroups(), and readXML().
int TankDefinition::team_ [protected] |
std::string TankDefinition::ai_ [protected] |
std::string TankDefinition::tankmodel_ [protected] |
1.5.3