#include <GLWWeaponModel.h>

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) |
| REGISTER_CLASS_HEADER (GLWWeaponModel) | |
Protected Attributes | |
| float | totalTime_ |
Definition at line 26 of file GLWWeaponModel.h.
| 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.
| 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 | ) |
float GLWWeaponModel::totalTime_ [protected] |
1.5.3