ShotCountDown Class Reference

#include <ShotCountDown.h>

Inheritance diagram for ShotCountDown:

GameStateI

List of all members.

Public Member Functions

void reset (float time)
virtual void simulate (const unsigned state, float simTime)
virtual void draw (const unsigned state)

Static Public Member Functions

static ShotCountDowninstance ()

Protected Attributes

float counter_
float blinkTimer_
bool showTime_
bool timerOff_

Static Protected Attributes

static ShotCountDowninstance_ = 0

Private Member Functions

 ShotCountDown ()
virtual ~ShotCountDown ()


Detailed Description

Definition at line 26 of file ShotCountDown.h.


Constructor & Destructor Documentation

ShotCountDown::ShotCountDown (  )  [private]

Definition at line 41 of file ShotCountDown.cpp.

ShotCountDown::~ShotCountDown (  )  [private, virtual]

Definition at line 48 of file ShotCountDown.cpp.


Member Function Documentation

ShotCountDown * ShotCountDown::instance (  )  [static]

Definition at line 32 of file ShotCountDown.cpp.

References instance_.

Referenced by ClientStartTimerHandler::processMessage(), and ClientState::setupGameState().

void ShotCountDown::reset ( float  time  ) 

Definition at line 52 of file ShotCountDown.cpp.

References blinkTimer_, counter_, showTime_, and timerOff_.

Referenced by ClientStartTimerHandler::processMessage().

void ShotCountDown::simulate ( const unsigned  state,
float  simTime 
) [virtual]

Reimplemented from GameStateI.

Definition at line 60 of file ShotCountDown.cpp.

References blinkTimer_, counter_, and showTime_.

void ShotCountDown::draw ( const unsigned  state  )  [virtual]

Reimplemented from GameStateI.

Definition at line 75 of file ShotCountDown.cpp.

References GLState::BLEND_ON, counter_, GLState::DEPTH_OFF, GLFont2d::draw(), S3D::formatStringBuffer(), GLWFont::getGameFont(), GLViewPort::getHeight(), GLViewPort::getWidth(), GLFont2d::getWidth(), GLWFont::instance(), int(), showTime_, ClientState::StateWait, GLState::TEXTURE_OFF, and timerOff_.


Member Data Documentation

ShotCountDown * ShotCountDown::instance_ = 0 [static, protected]

Definition at line 39 of file ShotCountDown.h.

Referenced by instance().

float ShotCountDown::counter_ [protected]

Definition at line 40 of file ShotCountDown.h.

Referenced by draw(), reset(), and simulate().

float ShotCountDown::blinkTimer_ [protected]

Definition at line 41 of file ShotCountDown.h.

Referenced by reset(), and simulate().

bool ShotCountDown::showTime_ [protected]

Definition at line 42 of file ShotCountDown.h.

Referenced by draw(), reset(), and simulate().

bool ShotCountDown::timerOff_ [protected]

Definition at line 43 of file ShotCountDown.h.

Referenced by draw(), and reset().


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