#include <TankAI.h>

Public Member Functions | |
| TankAI () | |
| virtual | ~TankAI () |
| virtual TankAI * | createCopy (Tank *tank)=0 |
| virtual bool | parseConfig (XMLNode *node) |
| virtual const char * | getName () |
| virtual const char * | getDescription () |
| virtual ToolTip * | getToolTip () |
| virtual void | newMatch ()=0 |
| virtual void | newGame ()=0 |
| virtual void | playMove ()=0 |
| virtual void | buyAccessories ()=0 |
| virtual void | autoDefense ()=0 |
| virtual void | tankHurt (Weapon *weapon, float damage, unsigned int damaged, unsigned int firer)=0 |
| virtual void | shotLanded (ScorchedCollisionId collision, Weapon *weapon, unsigned int firer, Vector &position)=0 |
| virtual bool | availableForRandom () |
| virtual bool | availableForPlayers () |
Protected Attributes | |
| std::string | name_ |
| std::string | description_ |
| bool | availableForRandom_ |
| bool | availableForPlayers_ |
| ToolTip | toolTip_ |
Definition at line 32 of file TankAI.h.
| TankAI::TankAI | ( | ) |
Definition at line 25 of file TankAI.cpp.
| TankAI::~TankAI | ( | ) | [virtual] |
Definition at line 31 of file TankAI.cpp.
Implemented in TankAICurrent, TankAIRandom, and TankAIShallow.
Referenced by TankAIAdder::addTankAI(), TankAIRandom::createCopy(), TankDefinition::createTank(), ServerMessageHandler::destroyPlayer(), and ServerAddPlayerHandler::processMessage().
| bool TankAI::parseConfig | ( | XMLNode * | node | ) | [virtual] |
Reimplemented in TankAICurrent, and TankAIRandom.
Definition at line 35 of file TankAI.cpp.
References availableForPlayers_, availableForRandom_, description_, XMLNode::getNamedChild(), and name_.
Referenced by TankAIStore::loadAIs(), and TankAICurrent::parseConfig().
| virtual const char* TankAI::getName | ( | ) | [inline, virtual] |
Definition at line 45 of file TankAI.h.
References name_.
Referenced by ScoreDialog::addLine(), ServerNewGameState::checkBots(), PlayerDialog::display(), ServerWebHandler::PlayerHandler::processRequest(), TankMenus::showTankDetails(), and ClientSave::storeClient().
| virtual const char* TankAI::getDescription | ( | ) | [inline, virtual] |
| ToolTip * TankAI::getToolTip | ( | ) | [virtual] |
Definition at line 45 of file TankAI.cpp.
References description_, LANG_RESOURCE, LANG_STRING, name_, ToolTip::setText(), toolTip_, and ToolTip::ToolTipInfo.
| virtual void TankAI::newMatch | ( | ) | [pure virtual] |
| virtual void TankAI::newGame | ( | ) | [pure virtual] |
Implemented in TankAICurrent, TankAIRandom, and TankAIShallow.
Referenced by Tank::newGame(), and Tank::rezTank().
| virtual void TankAI::playMove | ( | ) | [pure virtual] |
Implemented in TankAICurrent, TankAIRandom, and TankAIShallow.
Referenced by ServerNextTurnState::enterState().
| virtual void TankAI::buyAccessories | ( | ) | [pure virtual] |
Implemented in TankAICurrent, TankAIRandom, and TankAIShallow.
Referenced by ServerNextTurnState::enterState().
| virtual void TankAI::autoDefense | ( | ) | [pure virtual] |
Implemented in TankAICurrent, TankAIRandom, and TankAIShallow.
Referenced by ServerNextTurnState::enterState().
| virtual void TankAI::tankHurt | ( | Weapon * | weapon, | |
| float | damage, | |||
| unsigned int | damaged, | |||
| unsigned int | firer | |||
| ) | [pure virtual] |
Implemented in TankAICurrent, TankAIRandom, and TankAIShallow.
Referenced by TankDamage::calculateDamage().
| virtual void TankAI::shotLanded | ( | ScorchedCollisionId | collision, | |
| Weapon * | weapon, | |||
| unsigned int | firer, | |||
| Vector & | position | |||
| ) | [pure virtual] |
Implemented in TankAICurrent, TankAIRandom, and TankAIShallow.
Referenced by ShotProjectile::collision().
| virtual bool TankAI::availableForRandom | ( | ) | [inline, virtual] |
Definition at line 65 of file TankAI.h.
References availableForRandom_.
Referenced by TankAIStore::loadAIs().
| virtual bool TankAI::availableForPlayers | ( | ) | [inline, virtual] |
Definition at line 66 of file TankAI.h.
References availableForPlayers_.
Referenced by PlayerDialog::display(), and ServerWebHandler::PlayerHandler::processRequest().
std::string TankAI::name_ [protected] |
Definition at line 69 of file TankAI.h.
Referenced by getName(), getToolTip(), parseConfig(), and TankAIRandom::TankAIRandom().
std::string TankAI::description_ [protected] |
Definition at line 69 of file TankAI.h.
Referenced by getDescription(), getToolTip(), parseConfig(), and TankAIRandom::TankAIRandom().
bool TankAI::availableForRandom_ [protected] |
bool TankAI::availableForPlayers_ [protected] |
ToolTip TankAI::toolTip_ [protected] |
1.5.3