#include <Wall.h>
Public Member Functions | |
| Wall () | |
| virtual | ~Wall () |
| void | wallHit (Vector &position, OptionsTransient::WallSide side) |
| void | draw () |
| void | simulate (float time) |
Protected Member Functions | |
| void | drawWall (Vector &cornerA, Vector &cornerB, Vector &cornerC, Vector &cornerD, float fade) |
Protected Attributes | |
| bool | createdTexture_ |
| GLTexture | texture_ |
| float | fadeTime_ [4] |
Definition at line 29 of file Wall.h.
| void Wall::wallHit | ( | Vector & | position, | |
| OptionsTransient::WallSide | side | |||
| ) |
Definition at line 147 of file Wall.cpp.
References CACHE_SOUND, VirtualSoundPriority::eAction, fadeTime_, S3D::getDataFile(), and SoundUtils::playAbsoluteSound().
Referenced by WallActionRenderer::init().
| void Wall::draw | ( | ) |
Definition at line 37 of file Wall.cpp.
References GLState::BLEND_ON, OptionsTransient::BotSide, GLTexture::create(), createdTexture_, GLTexture::draw(), drawWall(), fadeTime_, S3D::getDataFile(), ScorchedContext::getLandscapeMaps(), ScorchedClient::instance(), OptionsTransient::LeftSide, ImageFactory::loadImageHandle(), OptionsTransient::RightSide, texture_, GLState::TEXTURE_ON, and OptionsTransient::TopSide.
Referenced by Landscape::drawObjects().
| void Wall::simulate | ( | float | time | ) |
Definition at line 155 of file Wall.cpp.
References OptionsTransient::BotSide, fadeTime_, OptionsTransient::LeftSide, OptionsTransient::RightSide, and OptionsTransient::TopSide.
Referenced by Landscape::simulate().
| void Wall::drawWall | ( | Vector & | cornerA, | |
| Vector & | cornerB, | |||
| Vector & | cornerC, | |||
| Vector & | cornerD, | |||
| float | fade | |||
| ) | [protected] |
Definition at line 81 of file Wall.cpp.
References ScorchedContext::getOptionsTransient(), OptionsTransient::getWallColor(), GL_QUADS, glBegin(), glColor4f(), glEnd(), glTexCoord2f(), glVertex3fv(), and ScorchedClient::instance().
Referenced by draw().
bool Wall::createdTexture_ [protected] |
GLTexture Wall::texture_ [protected] |
float Wall::fadeTime_[4] [protected] |
1.5.3