#include <GLWTankTip.h>

Public Member Functions | |
| TankShieldTip (Tank *tank) | |
| virtual | ~TankShieldTip () |
| virtual void | populate () |
| void | showItems (float x, float y) |
| virtual void | itemSelected (GLWSelectorEntry *entry, int position) |
Protected Attributes | |
| Tank * | tank_ |
Definition at line 66 of file GLWTankTip.h.
| TankShieldTip::TankShieldTip | ( | Tank * | tank | ) |
Definition at line 240 of file GLWTankTip.cpp.
| TankShieldTip::~TankShieldTip | ( | ) | [virtual] |
Definition at line 245 of file GLWTankTip.cpp.
| void TankShieldTip::populate | ( | ) | [virtual] |
Reimplemented from ToolTip.
Definition at line 285 of file GLWTankTip.cpp.
References fixed::asFloat(), S3D::formatStringBuffer(), Tank::getAccessories(), TankAccessories::getAccessoryAndCountString(), TankAccessories::getAccessoryCount(), TargetShield::getCurrentShield(), Target::getShield(), TargetShield::getShieldPower(), LANG_RESOURCE, LANG_RESOURCE_1, LANG_STRING, ToolTip::setText(), snprintf, tank_, and ToolTip::ToolTipHelp.
| void TankShieldTip::showItems | ( | float | x, | |
| float | y | |||
| ) |
Definition at line 249 of file GLWTankTip.cpp.
References AccessoryPart::AccessoryShield, TankAccessories::canUse(), Tank::getAccessories(), TankAccessories::getAccessoryAndCountString(), ScorchedContext::getAccessoryStore(), TankAccessories::getAllAccessoriesByType(), TargetShield::getCurrentShield(), Target::getShield(), Accessory::getTexture(), Accessory::getToolTip(), GLWSelector::instance(), OptionsDisplay::instance(), ScorchedClient::instance(), LANG_RESOURCE, GLWSelector::showSelector(), AccessoryStore::sortList(), ClientState::StatePlaying, tank_, and ToolTip::ToolTipHelp.
Referenced by GLWScorchedInfo::mouseDown().
| void TankShieldTip::itemSelected | ( | GLWSelectorEntry * | entry, | |
| int | position | |||
| ) | [virtual] |
Implements GLWSelectorI.
Definition at line 315 of file GLWTankTip.cpp.
References GLWSelectorEntry::getUserData(), TankKeyboardControlUtil::shieldsUpDown(), and tank_.
Tank* TankShieldTip::tank_ [protected] |
Definition at line 76 of file GLWTankTip.h.
Referenced by itemSelected(), populate(), and showItems().
1.5.3