#include <TankAIWeaponSets.h>
Public Member Functions | |
| bool | parseConfig (XMLNode *node) |
| void | buyWeapons (Tank *tank, bool lastRound) |
| Accessory * | getTankAccessoryByType (Tank *tank, const char *type) |
Public Attributes | |
| std::string | name |
| std::vector < WeaponSetEntry > | weapons |
Definition at line 50 of file TankAIWeaponSets.h.
| bool TankAIWeaponSets::WeaponSet::parseConfig | ( | XMLNode * | node | ) |
Definition at line 86 of file TankAIWeaponSets.cpp.
References XMLNode::failChildren(), XMLNode::getNamedChild(), name, TankAIWeaponSets::WeaponSetEntry::parseConfig(), and weapons.
Referenced by TankAIWeaponSets::parseConfig().
| void TankAIWeaponSets::WeaponSet::buyWeapons | ( | Tank * | tank, | |
| bool | lastRound | |||
| ) |
Definition at line 101 of file TankAIWeaponSets.cpp.
References TankAIWeaponSets::WeaponSetEntry::accessory, TankAccessories::add(), Tank::getAccessories(), Accessory::getBundle(), TankScore::getMoney(), Accessory::getPrice(), Tank::getScore(), TankAIWeaponSets::WeaponSetEntry::prioritybuy, TankScore::setMoney(), weapons, and TankAIWeaponSets::WeaponSetEntry::weaponValid().
Referenced by TankAICurrentWeapons::buyWeapons().
Definition at line 145 of file TankAIWeaponSets.cpp.
References TankAIWeaponSets::WeaponSetEntry::accessory, TankAccessories::canUse(), TankAIWeaponSets::WeaponSetEntry::checkType(), DIALOG_ASSERT, Tank::getAccessories(), OptionsTransient::getArmsLevel(), Accessory::getArmsLevel(), ScorchedContext::getOptionsGame(), ScorchedContext::getOptionsTransient(), ScorchedServer::instance(), TankAIWeaponSets::WeaponSetEntry::priorityuse, TankAIWeaponSets::WeaponSetEntry::type, and weapons.
Referenced by TankAICurrentMove::makeGroupShot(), TankAICurrentMove::makeMoveShot(), and TankAICurrentMoveWeapons::TankAICurrentMoveWeapons().
Definition at line 53 of file TankAIWeaponSets.h.
Referenced by parseConfig(), and TankAIWeaponSets::parseConfig().
| std::vector<WeaponSetEntry> TankAIWeaponSets::WeaponSet::weapons |
Definition at line 54 of file TankAIWeaponSets.h.
Referenced by buyWeapons(), getTankAccessoryByType(), and parseConfig().
1.5.3