AutoDefenseDialog Class Reference

#include <AutoDefenseDialog.h>

Inheritance diagram for AutoDefenseDialog:

GLWWindow GLWButtonI GLWDropDownI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

 AutoDefenseDialog ()
virtual ~AutoDefenseDialog ()
virtual void buttonDown (unsigned int id)
virtual void select (unsigned int id, const int pos, GLWSelectorEntry value)
virtual void windowInit (const unsigned state)

Protected Member Functions

void finished ()
void displayCurrent ()

Protected Attributes

unsigned int okId_
unsigned int cancelId_
GLWPaneltopPanel_
GLWDropDownTextddshields_
GLWDropDownTextddpara_


Detailed Description

Definition at line 28 of file AutoDefenseDialog.h.


Constructor & Destructor Documentation

AutoDefenseDialog::AutoDefenseDialog (  ) 

Definition at line 41 of file AutoDefenseDialog.cpp.

References GLWPanel::addWidget(), GLWPanel::AlignRight, GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, cancelId_, ddpara_, ddshields_, GLWidget::getId(), GLWPanel::GLWPanel(), LANG_RESOURCE, GLWPanel::layout(), GLWPanel::LayoutHorizontal, GLWPanel::LayoutVerticle, GLWWindow::needCentered_, okId_, GLWDropDown::setHandler(), GLWPanel::setLayout(), GLWidget::setToolTip(), GLWPanel::SpaceAll, GLWPanel::SpaceLeft, GLWPanel::SpaceRight, GLWPanel::SpaceTop, ToolTip::ToolTipHelp, and topPanel_.

AutoDefenseDialog::~AutoDefenseDialog (  )  [virtual]

Definition at line 83 of file AutoDefenseDialog.cpp.


Member Function Documentation

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

Implements GLWButtonI.

Definition at line 110 of file AutoDefenseDialog.cpp.

References AccessoryPart::AccessoryParachute, AccessoryPart::AccessoryShield, cancelId_, ddpara_, ddshields_, finished(), Tank::getAccessories(), TankAccessories::getAllAccessoriesByType(), GLWDropDown::getCurrentPosition(), TankContainer::getCurrentTank(), ScorchedContext::getTankContainer(), ScorchedClient::instance(), okId_, TankKeyboardControlUtil::parachutesUpDown(), and TankKeyboardControlUtil::shieldsUpDown().

void AutoDefenseDialog::select ( unsigned int  id,
const int  pos,
GLWSelectorEntry  value 
) [virtual]

Implements GLWDropDownI.

Definition at line 248 of file AutoDefenseDialog.cpp.

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

Reimplemented from GLWWindow.

Definition at line 88 of file AutoDefenseDialog.cpp.

References displayCurrent(), finished(), Tank::getAccessories(), TankAccessories::getAutoDefense(), TankContainer::getCurrentDestinationId(), TankContainer::getCurrentTank(), Tank::getDestinationId(), ScorchedContext::getTankContainer(), TankAutoDefense::haveDefense(), and ScorchedClient::instance().

void AutoDefenseDialog::finished (  )  [protected]

Definition at line 256 of file AutoDefenseDialog.cpp.

References ComsPlayedMoveMessage::eFinishedBuy, ScorchedContext::getGameState(), GLWidget::getId(), GLWWindowManager::hideWindow(), GLWWindowManager::instance(), ScorchedClient::instance(), ComsMessageSender::sendToServer(), GameState::stimulate(), and ClientState::StimWait.

Referenced by buttonDown(), and windowInit().

void AutoDefenseDialog::displayCurrent (  )  [protected]

Definition at line 166 of file AutoDefenseDialog.cpp.

References AccessoryPart::AccessoryParachute, AccessoryPart::AccessoryShield, GLWDropDown::addEntry(), GLWPanel::addWidget(), GLWDropDown::clear(), GLWPanel::clear(), ddpara_, ddshields_, S3D::formatStringBuffer(), Tank::getAccessories(), TankAccessories::getAccessoryAndCountString(), TankAccessories::getAllAccessoriesByType(), Tank::getColor(), TargetParachute::getCurrentParachute(), TargetShield::getCurrentShield(), TankContainer::getCurrentTank(), GLWidget::getId(), TankScore::getMoney(), Target::getParachute(), Tank::getScore(), Target::getShield(), ScorchedContext::getTankContainer(), Target::getTargetName(), Accessory::getTexture(), Accessory::getToolTip(), ScorchedClient::instance(), GLWWindowManager::instance(), LANG_RESOURCE, LANG_RESOURCE_2, LANG_STRING, GLWDropDownText::setCurrentText(), GLWWindowManager::showWindow(), ToolTip::ToolTipHelp, and topPanel_.

Referenced by windowInit().


Member Data Documentation

unsigned int AutoDefenseDialog::okId_ [protected]

Definition at line 47 of file AutoDefenseDialog.h.

Referenced by AutoDefenseDialog(), and buttonDown().

unsigned int AutoDefenseDialog::cancelId_ [protected]

Definition at line 48 of file AutoDefenseDialog.h.

Referenced by AutoDefenseDialog(), and buttonDown().

GLWPanel* AutoDefenseDialog::topPanel_ [protected]

Definition at line 49 of file AutoDefenseDialog.h.

Referenced by AutoDefenseDialog(), and displayCurrent().

GLWDropDownText* AutoDefenseDialog::ddshields_ [protected]

Definition at line 50 of file AutoDefenseDialog.h.

Referenced by AutoDefenseDialog(), buttonDown(), and displayCurrent().

GLWDropDownText* AutoDefenseDialog::ddpara_ [protected]

Definition at line 51 of file AutoDefenseDialog.h.

Referenced by AutoDefenseDialog(), buttonDown(), and displayCurrent().


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