GLWWeaponModel Class Reference

#include <GLWWeaponModel.h>

Inheritance diagram for GLWWeaponModel:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWWeaponModel (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f)
virtual ~GLWWeaponModel ()
virtual void draw ()
virtual void simulate (float frameTime)
virtual void mouseDown (int button, float x, float y, bool &skipRest)

Protected Attributes

float totalTime_

Detailed Description

Definition at line 26 of file GLWWeaponModel.h.

Constructor & Destructor Documentation

GLWWeaponModel::GLWWeaponModel ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f 

Definition at line 39 of file GLWWeaponModel.cpp.

GLWWeaponModel::~GLWWeaponModel (  )  [virtual]

Definition at line 45 of file GLWWeaponModel.cpp.

Member Function Documentation

void GLWWeaponModel::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 55 of file GLWWeaponModel.cpp.

References fixed::asFloat(), GLState::DEPTH_ON, MissileMesh::draw(), GLWidget::draw(), Tank::getAccessories(), TankWeapon::getCurrent(), TankContainer::getCurrentTank(), Accessory::getModel(), Accessory::getModelScale(), Target::getRenderer(), Landscape::getSky(), TankState::getState(), Tank::getState(), Sky::getSun(), ScorchedContext::getTankContainer(), TargetRendererImplTank::getTips(), Accessory::getToolTip(), Accessory::getWeaponMesh(), TankAccessories::getWeapons(), GL_AMBIENT, GL_DIFFUSE, GL_LIGHT1, GL_POSITION, glLightfv(), glPopMatrix(), glPushMatrix(), glRotatef(), glTranslatef(), Landscape::instance(), ScorchedClient::instance(), MIN, Sun::setLightPosition(), MissileMesh::setScale(), GLWidget::setToolTip(), TankState::sNormal, GLState::TEXTURE_ON, totalTime_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

void GLWWeaponModel::simulate ( float  frameTime  )  [virtual]

Reimplemented from GLWidget.

Definition at line 49 of file GLWWeaponModel.cpp.

References GLWidget::simulate(), and totalTime_.

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

Reimplemented from GLWidget.

Definition at line 113 of file GLWWeaponModel.cpp.

References TankContainer::getCurrentTank(), GLWTranslate::getPosX(), GLWTranslate::getPosY(), Target::getRenderer(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), TargetRendererImplTank::getTips(), GLWidget::h_, GLWidget::inBox(), ScorchedClient::instance(), TankWeaponTip::showItems(), TankState::sNormal, GLWidget::w_, GLWTankTips::weaponTip, GLWidget::x_, and GLWidget::y_.

GLWWeaponModel::REGISTER_CLASS_HEADER ( GLWWeaponModel   ) 

Member Data Documentation

float GLWWeaponModel::totalTime_ [protected]

Definition at line 40 of file GLWWeaponModel.h.

Referenced by draw(), and simulate().

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