Advanced Strategic Command
Public Member Functions | Protected Member Functions | List of all members
ChooseTech Class Reference
Inheritance diagram for ChooseTech:
Inheritance graph

Public Member Functions

 ChooseTech (Player &my_player)
bool selectionPerformed ()
- Public Member Functions inherited from ASC_PG_Dialog
 ASC_PG_Dialog (PG_Widget *parent, const PG_Rect &r, const ASCString &windowtext, WindowFlags flags=DEFAULT, const ASCString &style="Window", int heightTitlebar=25)
PG_Button * AddStandardButton (const ASCString &name)
void StandardButtonDirection (StandardButtonDirectonType dir)
int RunModal ()

Protected Member Functions

bool handleButtonClick (PG_Button *button)
bool ok ()
bool cancel ()
bool showPrerequisites ()
bool eventKeyDown (const SDL_KeyboardEvent *key)
- Protected Member Functions inherited from ASC_PG_Dialog
virtual bool closeWindow ()
bool quitModalLoopW (PG_Button *button, int value)
bool quitModalLoop (int value)

Additional Inherited Members

- Public Types inherited from ASC_PG_Dialog
enum  StandardButtonDirectonType { Vertical, Horizontal }
- Static Public Member Functions inherited from ASC_PG_Dialog
static PG_Rect centerRectangle (const PG_Rect &rect)
- Protected Attributes inherited from ASC_PG_Dialog
PG_MessageObject * caller

Detailed Description

Definition at line 187 of file choosetech.cpp.

Constructor & Destructor Documentation

ChooseTech::ChooseTech ( Player my_player)

Member Function Documentation

bool ChooseTech::cancel ( )

Definition at line 271 of file choosetech.cpp.

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

Referenced by ChooseTech().

bool ChooseTech::eventKeyDown ( const SDL_KeyboardEvent *  key)

Reimplemented from ASC_PG_Dialog.

Definition at line 291 of file choosetech.cpp.

References ok().

bool ChooseTech::handleButtonClick ( PG_Button *  button)

Definition at line 242 of file choosetech.cpp.

bool ChooseTech::ok ( )
bool ChooseTech::selectionPerformed ( )

Definition at line 331 of file choosetech.cpp.

Referenced by chooseSingleTechnology().

bool ChooseTech::showPrerequisites ( )

The documentation for this class was generated from the following file: