TankAI Class Reference

#include <TankAI.h>

Inheritance diagram for TankAI:

TankAICurrent TankAIRandom TankAIShallow

List of all members.

Public Member Functions

 TankAI ()
virtual ~TankAI ()
virtual TankAIcreateCopy (Tank *tank)=0
virtual bool parseConfig (XMLNode *node)
virtual const char * getName ()
virtual const char * getDescription ()
virtual ToolTipgetToolTip ()
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_


Detailed Description

Definition at line 32 of file TankAI.h.


Constructor & Destructor Documentation

TankAI::TankAI (  ) 

Definition at line 25 of file TankAI.cpp.

TankAI::~TankAI (  )  [virtual]

Definition at line 31 of file TankAI.cpp.


Member Function Documentation

virtual TankAI* TankAI::createCopy ( Tank tank  )  [pure virtual]

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]

Definition at line 46 of file TankAI.h.

References description_.

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]

Implemented in TankAICurrent, TankAIRandom, and TankAIShallow.

Referenced by Tank::newMatch().

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().


Member Data Documentation

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]

Definition at line 70 of file TankAI.h.

Referenced by availableForRandom(), and parseConfig().

bool TankAI::availableForPlayers_ [protected]

Definition at line 71 of file TankAI.h.

Referenced by availableForPlayers(), and parseConfig().

ToolTip TankAI::toolTip_ [protected]

Definition at line 72 of file TankAI.h.

Referenced by getToolTip().


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