GiftMoneyDialog Class Reference

#include <GiftMoneyDialog.h>

Inheritance diagram for GiftMoneyDialog:

GLWWindow GLWButtonI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

virtual void buttonDown (unsigned int id)
virtual void display ()

Static Public Member Functions

static GiftMoneyDialoginstance ()

Protected Attributes

unsigned int okId_
unsigned int cancelId_
GLWDropDownTextplayers_
GLWDropDownTextmoney_

Static Protected Attributes

static GiftMoneyDialoginstance_ = 0

Private Member Functions

 GiftMoneyDialog ()
virtual ~GiftMoneyDialog ()


Detailed Description

Definition at line 28 of file GiftMoneyDialog.h.


Constructor & Destructor Documentation

GiftMoneyDialog::GiftMoneyDialog (  )  [private]

Definition at line 44 of file GiftMoneyDialog.cpp.

References GLWPanel::addWidget(), GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, cancelId_, GLWidget::getId(), GLWPanel::GLWPanel(), LANG_RESOURCE, GLWPanel::layout(), GLWPanel::LayoutHorizontal, GLWPanel::LayoutVerticle, money_, GLWWindow::needCentered_, okId_, players_, GLWPanel::setLayout(), GLWPanel::SpaceAll, GLWPanel::SpaceLeft, GLWPanel::SpaceRight, and GLWPanel::SpaceTop.

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

Definition at line 81 of file GiftMoneyDialog.cpp.


Member Function Documentation

GiftMoneyDialog * GiftMoneyDialog::instance (  )  [static]

Definition at line 35 of file GiftMoneyDialog.cpp.

References instance_.

Referenced by BuyAccessoryDialog::buttonDown(), and ClientWindowSetup::setupGameWindows().

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

Implements GLWButtonI.

Definition at line 138 of file GiftMoneyDialog.cpp.

References GLWDropDown::getCurrentEntry(), TankContainer::getCurrentTank(), GLWidget::getId(), Target::getPlayerId(), ScorchedContext::getTankContainer(), GLWSelectorEntry::getUserData(), GLWWindowManager::hideWindow(), BuyAccessoryDialog::instance(), GLWWindowManager::instance(), ScorchedClient::instance(), int(), money_, okId_, players_, ComsMessageSender::sendToServer(), and GLWWindowManager::showWindow().

void GiftMoneyDialog::display (  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 85 of file GiftMoneyDialog.cpp.

References GLWDropDown::addEntry(), GLWDropDown::clear(), GLWPanel::display(), TankContainer::getCurrentTank(), GLWidget::getId(), TankScore::getMoney(), Target::getPlayerId(), TankContainer::getPlayingTanks(), Tank::getScore(), TankState::getSpectator(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), Target::getTargetName(), Tank::getTeam(), GLWWindowManager::hideWindow(), GLWWindowManager::instance(), ScorchedClient::instance(), LANG_RESOURCE, money_, players_, TankState::sDead, and TankState::sNormal.


Member Data Documentation

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

Definition at line 42 of file GiftMoneyDialog.h.

Referenced by instance().

unsigned int GiftMoneyDialog::okId_ [protected]

Definition at line 43 of file GiftMoneyDialog.h.

Referenced by buttonDown(), and GiftMoneyDialog().

unsigned int GiftMoneyDialog::cancelId_ [protected]

Definition at line 43 of file GiftMoneyDialog.h.

Referenced by GiftMoneyDialog().

GLWDropDownText* GiftMoneyDialog::players_ [protected]

Definition at line 44 of file GiftMoneyDialog.h.

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

GLWDropDownText* GiftMoneyDialog::money_ [protected]

Definition at line 45 of file GiftMoneyDialog.h.

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


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