TankFuelTip Class Reference

#include <GLWTankTip.h>

Inheritance diagram for TankFuelTip:

ToolTip GLWSelectorI

List of all members.

Public Member Functions

 TankFuelTip (Tank *tank)
virtual ~TankFuelTip ()
virtual void populate ()
void showItems (float x, float y)
virtual void itemSelected (GLWSelectorEntry *entry, int position)

Protected Attributes

Tanktank_


Detailed Description

Definition at line 40 of file GLWTankTip.h.


Constructor & Destructor Documentation

TankFuelTip::TankFuelTip ( Tank tank  ) 

Definition at line 82 of file GLWTankTip.cpp.

TankFuelTip::~TankFuelTip (  )  [virtual]

Definition at line 87 of file GLWTankTip.cpp.


Member Function Documentation

void TankFuelTip::populate (  )  [virtual]

Reimplemented from ToolTip.

Definition at line 91 of file GLWTankTip.cpp.

References Accessory::ePositionSelectFuel, Tank::getAccessories(), TankAccessories::getAccessoryAndCountString(), TankWeapon::getCurrent(), Accessory::getPositionSelect(), TankAccessories::getWeapons(), LANG_RESOURCE, ToolTip::setText(), tank_, and ToolTip::ToolTipHelp.

void TankFuelTip::showItems ( float  x,
float  y 
)

Definition at line 109 of file GLWTankTip.cpp.

References TankAccessories::canUse(), Tank::getAccessories(), TankAccessories::getAccessoryAndCountString(), ScorchedContext::getAccessoryStore(), TankAccessories::getAllAccessoriesByGroup(), TankWeapon::getCurrent(), Accessory::getTexture(), Accessory::getToolTip(), TankAccessories::getWeapons(), GLWSelector::instance(), OptionsDisplay::instance(), ScorchedClient::instance(), LANG_RESOURCE, GLWSelector::showSelector(), AccessoryStore::sortList(), ClientState::StatePlaying, tank_, and ToolTip::ToolTipHelp.

Referenced by GLWScorchedInfo::mouseDown().

void TankFuelTip::itemSelected ( GLWSelectorEntry entry,
int  position 
) [virtual]

Implements GLWSelectorI.

Definition at line 143 of file GLWTankTip.cpp.

References Tank::getAccessories(), TankAccessories::getAllAccessoriesByGroup(), GLWSelectorEntry::getUserData(), TankAccessories::getWeapons(), TankWeapon::setWeapon(), and tank_.


Member Data Documentation

Tank* TankFuelTip::tank_ [protected]

Definition at line 50 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