TankDefinition Class Reference

#include <TankDefinition.h>

List of all members.

Public Member Functions

 TankDefinition ()
virtual ~TankDefinition ()
virtual bool readXML (XMLNode *node, const char *base)
TankcreateTank (unsigned int playerId, FixedVector &position, ScorchedContext &context, RandomGenerator &generator)
FixedVectorgetSize ()
PlacementShadowDefinitiongetShadow ()
PlacementGroupDefinitiongetGroups ()

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_


Detailed Description

Definition at line 31 of file TankDefinition.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 45 of file TankDefinition.h.

References groups_.


Member Data Documentation

fixed TankDefinition::life_ [protected]

Definition at line 48 of file TankDefinition.h.

Referenced by createTank(), and readXML().

bool TankDefinition::boundingsphere_ [protected]

Definition at line 49 of file TankDefinition.h.

Referenced by createTank(), and readXML().

bool TankDefinition::driveovertodestroy_ [protected]

Definition at line 50 of file TankDefinition.h.

Referenced by createTank(), and readXML().

LangString TankDefinition::name_ [protected]

Definition at line 51 of file TankDefinition.h.

Referenced by createTank(), and readXML().

std::string TankDefinition::parachute_ [protected]

Definition at line 52 of file TankDefinition.h.

Referenced by createTank(), and readXML().

std::string TankDefinition::shield_ [protected]

Definition at line 53 of file TankDefinition.h.

Referenced by createTank(), and readXML().

FixedVector TankDefinition::size_ [protected]

Definition at line 54 of file TankDefinition.h.

Referenced by createTank(), and getSize().

std::string TankDefinition::removeaction_ [protected]

Definition at line 55 of file TankDefinition.h.

Referenced by createTank(), and readXML().

std::string TankDefinition::burnaction_ [protected]

Definition at line 56 of file TankDefinition.h.

Referenced by createTank(), and readXML().

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]

Definition at line 60 of file TankDefinition.h.

Referenced by createTank(), and readXML().

std::string TankDefinition::ai_ [protected]

Definition at line 61 of file TankDefinition.h.

Referenced by createTank(), and readXML().

std::string TankDefinition::tankmodel_ [protected]

Definition at line 62 of file TankDefinition.h.

Referenced by createTank(), and readXML().


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