TankShieldTip Class Reference

#include <GLWTankTip.h>

Inheritance diagram for TankShieldTip:

ToolTip GLWSelectorI

List of all members.

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

Tanktank_


Detailed Description

Definition at line 66 of file GLWTankTip.h.


Constructor & Destructor Documentation

TankShieldTip::TankShieldTip ( Tank tank  ) 

Definition at line 240 of file GLWTankTip.cpp.

TankShieldTip::~TankShieldTip (  )  [virtual]

Definition at line 245 of file GLWTankTip.cpp.


Member Function Documentation

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_.


Member Data Documentation

Tank* TankShieldTip::tank_ [protected]

Definition at line 76 of file GLWTankTip.h.

Referenced by itemSelected(), populate(), and showItems().


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