ChooseTech Class Reference

Inheritance diagram for ChooseTech:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ChooseTech (Player &my_player)
bool selectionPerformed ()

Protected Member Functions

bool handleButtonClick (PG_Button *button)
bool ok ()
bool cancel ()
bool showPrerequisites ()
bool eventKeyDown (const SDL_KeyboardEvent *key)

Detailed Description

Definition at line 187 of file choosetech.cpp.


Constructor & Destructor Documentation

ChooseTech::ChooseTech ( Player my_player  )  [inline]

Definition at line 313 of file choosetech.cpp.

References ASC_PG_Dialog::AddStandardButton(), cancel(), ok(), Research::progress, Player::research, showPrerequisites(), TechnologySelectionItemFactory::techSelected, and ASCString::toString().


Member Function Documentation

bool ChooseTech::handleButtonClick ( PG_Button *  button  )  [inline, protected]

Definition at line 242 of file choosetech.cpp.

bool ChooseTech::ok (  )  [inline, protected]

Definition at line 250 of file choosetech.cpp.

References createContext(), ActionRegistry::DirectResearchCommand, displayActionError(), ItemSelectorWidget::getItemNum(), and ActionResult::successful().

Referenced by ChooseTech(), and eventKeyDown().

bool ChooseTech::cancel (  )  [inline, protected]

Definition at line 271 of file choosetech.cpp.

References Research::activetechnology, Research::goal, and Player::research.

Referenced by ChooseTech().

bool ChooseTech::showPrerequisites (  )  [inline, protected]

Definition at line 279 of file choosetech.cpp.

References Technology::name, Player::research, ASC_PG_Dialog::RunModal(), TechDependency::showDebug(), and Technology::techDependency.

Referenced by ChooseTech().

bool ChooseTech::eventKeyDown ( const SDL_KeyboardEvent *  key  )  [inline, protected, virtual]

Reimplemented from ASC_PG_Dialog.

Definition at line 291 of file choosetech.cpp.

References ok().

bool ChooseTech::selectionPerformed (  )  [inline]

Definition at line 331 of file choosetech.cpp.

Referenced by chooseSingleTechnology().


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:46:30 2012 for Advanced Strategic Command by  doxygen 1.5.1