#include <TankType.h>
Public Member Functions | |
| TankType () | |
| virtual | ~TankType () |
| const char * | getName () |
| const char * | getDescription () |
| fixed | getLife () |
| fixed | getPower () |
| std::map< Accessory *, int > & | getAccessories () |
| bool | getAccessoryDisabled (Accessory *accessory) |
| bool | initFromXML (ScorchedContext &context, XMLNode *node) |
Protected Attributes | |
| std::string | name_ |
| std::string | description_ |
| std::map< Accessory *, int > | accessories_ |
| std::set< Accessory * > | disabledAccessories_ |
| fixed | life_ |
| fixed | power_ |
Definition at line 32 of file TankType.h.
| TankType::TankType | ( | ) |
Definition at line 27 of file TankType.cpp.
| TankType::~TankType | ( | ) | [virtual] |
Definition at line 31 of file TankType.cpp.
| const char* TankType::getName | ( | ) | [inline] |
| const char * TankType::getDescription | ( | ) |
Definition at line 84 of file TankType.cpp.
References accessories_, description_, disabledAccessories_, S3D::formatStringBuffer(), getLife(), Accessory::getName(), and getPower().
Referenced by GLWTankViewer::draw().
| fixed TankType::getLife | ( | ) | [inline] |
Definition at line 40 of file TankType.h.
References life_.
Referenced by getDescription(), and Tank::newGame().
| fixed TankType::getPower | ( | ) | [inline] |
Definition at line 41 of file TankType.h.
References power_.
Referenced by TankPosition::clientNewGame(), getDescription(), and TankPosition::newGame().
| std::map<Accessory *, int>& TankType::getAccessories | ( | ) | [inline] |
Definition at line 43 of file TankType.h.
References accessories_.
Referenced by TankAccessories::newMatch().
| bool TankType::getAccessoryDisabled | ( | Accessory * | accessory | ) |
Definition at line 78 of file TankType.cpp.
References disabledAccessories_.
Referenced by TankAccessories::accessoryAllowed().
| bool TankType::initFromXML | ( | ScorchedContext & | context, | |
| XMLNode * | node | |||
| ) |
Definition at line 35 of file TankType.cpp.
References accessories_, disabledAccessories_, XMLNode::failChildren(), ScorchedContext::getAccessoryStore(), XMLNode::getNamedChild(), life_, name_, power_, and XMLNode::returnError().
Referenced by TankTypes::loadTankTypes().
std::string TankType::name_ [protected] |
std::string TankType::description_ [protected] |
std::map<Accessory *, int> TankType::accessories_ [protected] |
Definition at line 50 of file TankType.h.
Referenced by getAccessories(), getDescription(), and initFromXML().
std::set<Accessory *> TankType::disabledAccessories_ [protected] |
Definition at line 51 of file TankType.h.
Referenced by getAccessoryDisabled(), getDescription(), and initFromXML().
fixed TankType::life_ [protected] |
fixed TankType::power_ [protected] |
1.5.3