#include <TankBatteries.h>
Public Member Functions | |
| TankBatteries (ScorchedContext &context) | |
| virtual | ~TankBatteries () |
| void | setTank (Tank *tank) |
| void | newMatch () |
| void | changed () |
| int | getNoBatteries () |
| bool | canUse () |
Protected Attributes | |
| ScorchedContext & | context_ |
| Tank * | tank_ |
Definition at line 28 of file TankBatteries.h.
| TankBatteries::TankBatteries | ( | ScorchedContext & | context | ) |
Definition at line 26 of file TankBatteries.cpp.
| TankBatteries::~TankBatteries | ( | ) | [virtual] |
Definition at line 32 of file TankBatteries.cpp.
| void TankBatteries::setTank | ( | Tank * | tank | ) | [inline] |
Definition at line 34 of file TankBatteries.h.
References tank_.
Referenced by TankAccessories::setTank().
| void TankBatteries::newMatch | ( | ) |
| void TankBatteries::changed | ( | ) |
| int TankBatteries::getNoBatteries | ( | ) |
Definition at line 44 of file TankBatteries.cpp.
References AccessoryPart::AccessoryBattery, Tank::getAccessories(), TankAccessories::getAccessoryCount(), TankAccessories::getAllAccessoriesByType(), and tank_.
Referenced by canUse(), GLWScorchedInfo::draw(), TankBatteryTip::populate(), and TankBatteryTip::showItems().
| bool TankBatteries::canUse | ( | ) |
Definition at line 53 of file TankBatteries.cpp.
References AccessoryPart::AccessoryBattery, Tank::getAccessories(), TankAccessories::getAllAccessoriesByType(), getNoBatteries(), and tank_.
Referenced by ServerDefenseHandler::processDefenseMessage(), TankBatteryTip::showItems(), and TankAICurrentMove::useAvailableBatteries().
ScorchedContext& TankBatteries::context_ [protected] |
Definition at line 42 of file TankBatteries.h.
Tank* TankBatteries::tank_ [protected] |
Definition at line 43 of file TankBatteries.h.
Referenced by canUse(), getNoBatteries(), and setTank().
1.5.3