#include <AutoDefenseDialog.h>

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_ |
| GLWPanel * | topPanel_ |
| GLWDropDownText * | ddshields_ |
| GLWDropDownText * | ddpara_ |
Definition at line 28 of file AutoDefenseDialog.h.
| 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.
| 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] |
| 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().
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().
1.5.3