#include <TankAIWeaponSets.h>
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 | |
| Accessory * | accessory |
| int | buymin |
| int | buymax |
| int | moneymin |
| int | moneymax |
| int | prioritybuy |
| int | priorityuse |
| std::string | type |
Definition at line 36 of file TankAIWeaponSets.h.
| 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().
Definition at line 39 of file TankAIWeaponSets.h.
Referenced by TankAIWeaponSets::WeaponSet::buyWeapons(), TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), parseConfig(), and weaponValid().
Definition at line 42 of file TankAIWeaponSets.h.
Referenced by TankAIWeaponSets::WeaponSet::buyWeapons(), and parseConfig().
Definition at line 42 of file TankAIWeaponSets.h.
Referenced by TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), and parseConfig().
Definition at line 43 of file TankAIWeaponSets.h.
Referenced by TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), parseConfig(), and weaponValid().
1.5.3