GLWScorchedInfo Class Reference

#include <GLWScorchedInfo.h>

Inheritance diagram for GLWScorchedInfo:

GLWidget MetaClass

List of all members.

Public Types

enum  InfoType {
  eNone, eWind, ePlayerName,
  ePlayerIcon, ePlayerRank, eAutoDefenseCount,
  eParachuteCount, eHealthCount, eShieldCount,
  eFuelCount, eBatteryCount, eWeaponName,
  eWeaponCount, eWeaponIcon, eRotation,
  eRotationDiff, eElevation, eElevationDiff,
  ePower, ePowerDiff
}

Public Member Functions

 GLWScorchedInfo (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f)
virtual ~GLWScorchedInfo ()
virtual void draw ()
virtual void mouseDown (int button, float x, float y, bool &skipRest)
virtual bool initFromXML (XMLNode *node)
 REGISTER_CLASS_HEADER (GLWScorchedInfo)

Protected Attributes

InfoType infoType_
float fontSize_
Vector fontColor_
Vector selectedColor_
bool noCenter_


Detailed Description

Definition at line 39 of file GLWScorchedInfo.h.


Member Enumeration Documentation

enum GLWScorchedInfo::InfoType

Enumerator:
eNone 
eWind 
ePlayerName 
ePlayerIcon 
ePlayerRank 
eAutoDefenseCount 
eParachuteCount 
eHealthCount 
eShieldCount 
eFuelCount 
eBatteryCount 
eWeaponName 
eWeaponCount 
eWeaponIcon 
eRotation 
eRotationDiff 
eElevation 
eElevationDiff 
ePower 
ePowerDiff 

Definition at line 42 of file GLWScorchedInfo.h.


Constructor & Destructor Documentation

GLWScorchedInfo::GLWScorchedInfo ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f 
)

Definition at line 59 of file GLWScorchedInfo.cpp.

GLWScorchedInfo::~GLWScorchedInfo (  )  [virtual]

Definition at line 65 of file GLWScorchedInfo.cpp.


Member Function Documentation

void GLWScorchedInfo::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 70 of file GLWScorchedInfo.cpp.

References fixed::asFloat(), GLWTankTips::autodTip, GLWTankTips::batteryTip, GLState::BLEND_ON, CachedValueString::cachedString, CachedValueString::cachedValue, GLState::DEPTH_OFF, GLTexture::draw(), GLFont2d::draw(), GLWidget::draw(), eAutoDefenseCount, eBatteryCount, eElevation, eElevationDiff, eFuelCount, eHealthCount, GLWTankTips::elevationTip, eParachuteCount, ePlayerIcon, ePlayerName, ePlayerRank, Accessory::ePositionSelectFuel, ePower, ePowerDiff, eRotation, eRotationDiff, eShieldCount, eWeaponCount, eWeaponIcon, eWeaponName, eWind, fontColor_, fontSize_, S3D::formatStringBuffer(), GLWTankTips::fuelTip, Tank::getAccessories(), TankAccessories::getAccessoryCount(), TankAccessories::getAccessoryCountString(), TankAccessories::getAutoDefense(), Tank::getAvatar(), TankAccessories::getBatteries(), Tank::getColor(), TankWeapon::getCurrent(), TargetParachute::getCurrentParachute(), TargetShield::getCurrentShield(), TankContainer::getCurrentTank(), GLWFont::getGameFont(), ScorchedContext::getGameState(), TargetLife::getLife(), Target::getLife(), GameState::getMouseX(), GameState::getMouseY(), TankBatteries::getNoBatteries(), Target::getParachute(), Tank::getPosition(), GLWTranslate::getPosX(), GLWTranslate::getPosY(), TankPosition::getPower(), TankPosition::getPowerDiff(), TankScore::getRank(), Target::getRenderer(), TankPosition::getRotationGunXY(), TankPosition::getRotationGunYZ(), TankPosition::getRotationXYDiff(), TankPosition::getRotationYZDiff(), Tank::getScore(), Target::getShield(), TargetShield::getShieldPower(), TankState::getState(), Tank::getState(), Accessory::getStringName(), ScorchedContext::getTankContainer(), Target::getTargetName(), Accessory::getTexture(), TankAvatar::getTexture(), TargetRendererImplTank::getTips(), TankAccessories::getWeapons(), GLFont2d::getWidth(), GL_QUADS, glBegin(), glColor3f(), glEnd(), glTexCoord2f(), glVertex2f(), GLWidget::h_, CachedValueString::hasChanged(), TankAutoDefense::haveDefense(), GLWTankTips::healthTip, GLWidget::inBox(), infoType_, GLWFont::instance(), ScorchedClient::instance(), LANG_RESOURCE, LANG_RESOURCE_1, LANG_RESOURCE_CONST_VAR, LANG_STRING, GLWTankTips::nameTip, noCenter_, GLWTankTips::paraTip, GLWTankTips::powerTip, GLWTankTips::rankTip, GLWTankTips::rotationTip, selectedColor_, GLWidget::setToolTip(), GLWTankTips::shieldTip, TankState::sNormal, GLState::TEXTURE_ON, GLWidget::w_, GLWTankTips::weaponTip, GLWidget::x_, and GLWidget::y_.

void GLWScorchedInfo::mouseDown ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 465 of file GLWScorchedInfo.cpp.

References GLWTankTips::autodTip, GLWTankTips::batteryTip, eAutoDefenseCount, eBatteryCount, eElevation, eFuelCount, eHealthCount, eParachuteCount, ePlayerIcon, ePlayerName, ePlayerRank, ePower, eRotation, eShieldCount, eWeaponCount, eWeaponIcon, eWeaponName, GLWTankTips::fuelTip, TankContainer::getCurrentTank(), GLWTranslate::getPosX(), GLWTranslate::getPosY(), Target::getRenderer(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), TargetRendererImplTank::getTips(), GLWidget::h_, GLWidget::inBox(), infoType_, ScorchedClient::instance(), GLWidget::mouseDown(), GLWTankTips::paraTip, GLWTankTips::shieldTip, TankUndoMenu::showItems(), TankWeaponTip::showItems(), TankFuelTip::showItems(), TankBatteryTip::showItems(), TankShieldTip::showItems(), TankParachutesTip::showItems(), TankAutoDefenseTip::showItems(), TankState::sNormal, GLWTankTips::undoMenu, GLWidget::w_, GLWTankTips::weaponTip, GLWidget::x_, and GLWidget::y_.

bool GLWScorchedInfo::initFromXML ( XMLNode node  )  [virtual]

Reimplemented from GLWidget.

Definition at line 545 of file GLWScorchedInfo.cpp.

References S3D::dialogMessage(), eAutoDefenseCount, eBatteryCount, eElevation, eElevationDiff, eFuelCount, eHealthCount, eParachuteCount, ePlayerIcon, ePlayerName, ePlayerRank, ePower, ePowerDiff, eRotation, eRotationDiff, eShieldCount, eWeaponCount, eWeaponIcon, eWeaponName, eWind, fontColor_, fontSize_, S3D::formatStringBuffer(), XMLNode::getContent(), XMLNode::getNamedChild(), infoType_, GLWidget::initFromXML(), noCenter_, selectedColor_, and LangStringUtil::strcmp().

GLWScorchedInfo::REGISTER_CLASS_HEADER ( GLWScorchedInfo   ) 


Member Data Documentation

InfoType GLWScorchedInfo::infoType_ [protected]

Definition at line 76 of file GLWScorchedInfo.h.

Referenced by draw(), initFromXML(), and mouseDown().

float GLWScorchedInfo::fontSize_ [protected]

Definition at line 77 of file GLWScorchedInfo.h.

Referenced by draw(), and initFromXML().

Vector GLWScorchedInfo::fontColor_ [protected]

Definition at line 78 of file GLWScorchedInfo.h.

Referenced by draw(), and initFromXML().

Vector GLWScorchedInfo::selectedColor_ [protected]

Definition at line 79 of file GLWScorchedInfo.h.

Referenced by draw(), and initFromXML().

bool GLWScorchedInfo::noCenter_ [protected]

Definition at line 80 of file GLWScorchedInfo.h.

Referenced by draw(), and initFromXML().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:02 2009 for Scorched3D by  doxygen 1.5.3