Wall Class Reference

#include <Wall.h>

List of all members.

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]


Detailed Description

Definition at line 29 of file Wall.h.


Constructor & Destructor Documentation

Wall::Wall (  ) 

Definition at line 28 of file Wall.cpp.

References fadeTime_.

Wall::~Wall (  )  [virtual]

Definition at line 33 of file Wall.cpp.


Member Function Documentation

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().


Member Data Documentation

bool Wall::createdTexture_ [protected]

Definition at line 40 of file Wall.h.

Referenced by draw().

GLTexture Wall::texture_ [protected]

Definition at line 41 of file Wall.h.

Referenced by draw().

float Wall::fadeTime_[4] [protected]

Definition at line 42 of file Wall.h.

Referenced by draw(), simulate(), Wall(), and wallHit().


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