TankAICurrentWeapons Class Reference

#include <TankAICurrentWeapons.h>

List of all members.

Public Member Functions

 TankAICurrentWeapons ()
virtual ~TankAICurrentWeapons ()
virtual bool parseConfig (XMLNode *node)
void buyWeapons (Tank *tank, bool lastRound)
TankAIWeaponSets::WeaponSetgetCurrentWeaponSet ()

Protected Attributes

std::vector
< TankAIWeaponSets::WeaponSet * > 
weaponSets_
TankAIWeaponSets::WeaponSetcurrentWeaponSet_


Detailed Description

Definition at line 26 of file TankAICurrentWeapons.h.


Constructor & Destructor Documentation

TankAICurrentWeapons::TankAICurrentWeapons (  ) 

Definition at line 27 of file TankAICurrentWeapons.cpp.

TankAICurrentWeapons::~TankAICurrentWeapons (  )  [virtual]

Definition at line 32 of file TankAICurrentWeapons.cpp.


Member Function Documentation

bool TankAICurrentWeapons::parseConfig ( XMLNode node  )  [virtual]

Definition at line 45 of file TankAICurrentWeapons.cpp.

References XMLNode::failChildren(), S3D::formatStringBuffer(), XMLNode::getNamedChild(), TankAIWeaponSets::getWeaponSet(), TankAIWeaponSets::instance(), XMLNode::returnError(), and weaponSets_.

Referenced by TankAICurrent::parseConfig().

void TankAICurrentWeapons::buyWeapons ( Tank tank,
bool  lastRound 
)

Definition at line 64 of file TankAICurrentWeapons.cpp.

References ServerShotHolder::addShot(), TankAIWeaponSets::WeaponSet::buyWeapons(), ComsPlayedMoveMessage::eFinishedBuy, getCurrentWeaponSet(), Target::getPlayerId(), and ServerShotHolder::instance().

Referenced by TankAICurrent::buyAccessories().

TankAIWeaponSets::WeaponSet * TankAICurrentWeapons::getCurrentWeaponSet (  ) 

Definition at line 36 of file TankAICurrentWeapons.cpp.

References currentWeaponSet_, and weaponSets_.

Referenced by buyWeapons(), and TankAICurrent::playMove().


Member Data Documentation

std::vector<TankAIWeaponSets::WeaponSet *> TankAICurrentWeapons::weaponSets_ [protected]

Definition at line 39 of file TankAICurrentWeapons.h.

Referenced by getCurrentWeaponSet(), and parseConfig().

TankAIWeaponSets::WeaponSet* TankAICurrentWeapons::currentWeaponSet_ [protected]

Definition at line 40 of file TankAICurrentWeapons.h.

Referenced by getCurrentWeaponSet().


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