TankAIWeaponSets::WeaponSetEntry Class Reference

#include <TankAIWeaponSets.h>

List of all members.

Public Member Functions

bool parseConfig (XMLNode *node)
bool weaponValid (Tank *tank, bool lastRound)

Static Public Member Functions

static bool checkType (const char *type)

Public Attributes

Accessoryaccessory
int buymin
int buymax
int moneymin
int moneymax
int prioritybuy
int priorityuse
std::string type


Detailed Description

Definition at line 36 of file TankAIWeaponSets.h.


Member Function Documentation

bool TankAIWeaponSets::WeaponSetEntry::parseConfig ( XMLNode node  ) 

Definition at line 178 of file TankAIWeaponSets.cpp.

References accessory, buymax, buymin, checkType(), XMLNode::failChildren(), S3D::formatStringBuffer(), ScorchedContext::getAccessoryStore(), XMLNode::getNamedChild(), ScorchedServer::instance(), moneymax, moneymin, prioritybuy, priorityuse, XMLNode::returnError(), and type.

Referenced by TankAIWeaponSets::WeaponSet::parseConfig().

bool TankAIWeaponSets::WeaponSetEntry::weaponValid ( Tank tank,
bool  lastRound 
)

Definition at line 228 of file TankAIWeaponSets.cpp.

References accessory, buymin, Tank::getAccessories(), TankAccessories::getAccessoryCount(), OptionsTransient::getArmsLevel(), Accessory::getArmsLevel(), Accessory::getMaximumNumber(), TankScore::getMoney(), Accessory::getNoBuy(), ScorchedContext::getOptionsGame(), ScorchedContext::getOptionsTransient(), Tank::getScore(), ScorchedServer::instance(), moneymax, moneymin, OptionsGame::TurnSimultaneous, and type.

Referenced by TankAIWeaponSets::WeaponSet::buyWeapons().

bool TankAIWeaponSets::WeaponSetEntry::checkType ( const char *  type  )  [static]

Definition at line 207 of file TankAIWeaponSets.cpp.

References LangStringUtil::strcmp().

Referenced by TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), and parseConfig().


Member Data Documentation

Accessory* TankAIWeaponSets::WeaponSetEntry::accessory

Definition at line 39 of file TankAIWeaponSets.h.

Referenced by TankAIWeaponSets::WeaponSet::buyWeapons(), TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), parseConfig(), and weaponValid().

int TankAIWeaponSets::WeaponSetEntry::buymin

Definition at line 40 of file TankAIWeaponSets.h.

Referenced by parseConfig(), and weaponValid().

int TankAIWeaponSets::WeaponSetEntry::buymax

Definition at line 40 of file TankAIWeaponSets.h.

Referenced by parseConfig().

int TankAIWeaponSets::WeaponSetEntry::moneymin

Definition at line 41 of file TankAIWeaponSets.h.

Referenced by parseConfig(), and weaponValid().

int TankAIWeaponSets::WeaponSetEntry::moneymax

Definition at line 41 of file TankAIWeaponSets.h.

Referenced by parseConfig(), and weaponValid().

int TankAIWeaponSets::WeaponSetEntry::prioritybuy

Definition at line 42 of file TankAIWeaponSets.h.

Referenced by TankAIWeaponSets::WeaponSet::buyWeapons(), and parseConfig().

int TankAIWeaponSets::WeaponSetEntry::priorityuse

Definition at line 42 of file TankAIWeaponSets.h.

Referenced by TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), and parseConfig().

std::string TankAIWeaponSets::WeaponSetEntry::type

Definition at line 43 of file TankAIWeaponSets.h.

Referenced by TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), parseConfig(), and weaponValid().


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