SkipAllDialog Class Reference

#include <SkipAllDialog.h>

Inheritance diagram for SkipAllDialog:

GLWWindow GLWButtonI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

virtual void buttonDown (unsigned int id)
virtual void windowInit (const unsigned state)
virtual void simulate (float frameTime)
virtual void display ()

Static Public Member Functions

static SkipAllDialoginstance ()

Protected Attributes

unsigned int cancelId_
unsigned int nowId_
GLWLabellabel_
unsigned int startTime_
bool skipAll_

Static Protected Attributes

static SkipAllDialoginstance_ = 0

Private Member Functions

 SkipAllDialog ()
virtual ~SkipAllDialog ()


Detailed Description

Definition at line 28 of file SkipAllDialog.h.


Constructor & Destructor Documentation

SkipAllDialog::SkipAllDialog (  )  [private]

Definition at line 43 of file SkipAllDialog.cpp.

References GLWPanel::addWidget(), GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, cancelId_, GLWidget::getId(), label_, LANG_RESOURCE, and nowId_.

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

Definition at line 54 of file SkipAllDialog.cpp.


Member Function Documentation

SkipAllDialog * SkipAllDialog::instance (  )  [static]

Definition at line 34 of file SkipAllDialog.cpp.

References instance_.

Referenced by ClientWindowSetup::setupGameWindows().

void SkipAllDialog::buttonDown ( unsigned int  id  )  [virtual]

Implements GLWButtonI.

Definition at line 113 of file SkipAllDialog.cpp.

References cancelId_, TankContainer::getCurrentTank(), Tank::getState(), ScorchedContext::getTankContainer(), GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), ScorchedClient::instance(), nowId_, TankState::setSkipShots(), and startTime_.

void SkipAllDialog::windowInit ( const unsigned  state  )  [virtual]

Reimplemented from GLWWindow.

Definition at line 90 of file SkipAllDialog.cpp.

References TankContainer::getCurrentTank(), TankState::getSkipShots(), Tank::getState(), ScorchedContext::getTankContainer(), GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), ScorchedClient::instance(), GLWWindowManager::showWindow(), and skipAll_.

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

Reimplemented from GLWPanel.

Definition at line 59 of file SkipAllDialog.cpp.

References S3D::formatStringBuffer(), TankContainer::getCurrentTank(), ScorchedContext::getTankContainer(), GLWWindowManager::hideWindow(), GLWidget::id_, GLWWindowManager::instance(), ScorchedClient::instance(), int(), label_, LANG_RESOURCE_1, GLWLabel::setText(), GLWPanel::simulate(), skipAll_, TankKeyboardControlUtil::skipShot(), and startTime_.

void SkipAllDialog::display (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 85 of file SkipAllDialog.cpp.

References int(), and startTime_.


Member Data Documentation

unsigned int SkipAllDialog::cancelId_ [protected]

Definition at line 40 of file SkipAllDialog.h.

Referenced by buttonDown(), and SkipAllDialog().

unsigned int SkipAllDialog::nowId_ [protected]

Definition at line 40 of file SkipAllDialog.h.

Referenced by buttonDown(), and SkipAllDialog().

GLWLabel* SkipAllDialog::label_ [protected]

Definition at line 41 of file SkipAllDialog.h.

Referenced by simulate(), and SkipAllDialog().

unsigned int SkipAllDialog::startTime_ [protected]

Definition at line 42 of file SkipAllDialog.h.

Referenced by buttonDown(), display(), and simulate().

bool SkipAllDialog::skipAll_ [protected]

Definition at line 43 of file SkipAllDialog.h.

Referenced by simulate(), and windowInit().

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

Definition at line 45 of file SkipAllDialog.h.

Referenced by instance().


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