Yesno_gump Class Reference

#include <Yesno_gump.h>

Inheritance diagram for Yesno_gump:

Inheritance graph
[legend]
Collaboration diagram for Yesno_gump:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Yesno_gump (const std::string &txt)
 ~Yesno_gump ()
int get_answer ()
virtual void paint ()
virtual void mouse_down (int mx, int my)
virtual void mouse_up (int mx, int my)
virtual void key_down (int chr)

Static Public Member Functions

static int ask (const char *txt)

Protected Member Functions

void set_answer (int y)

Protected Attributes

const std::string text
int answer
Yesno_buttonyes_button
Yesno_buttonno_button

Static Protected Attributes

static short yesx
static short yesnoy
static short nox

Private Member Functions

 UNREPLICATABLE_CLASS_I (Yesno_gump, Modal_gump(0, 0, 0, 0))

Friends

class Yesno_button

Detailed Description

Definition at line 31 of file Yesno_gump.h.


Constructor & Destructor Documentation

Yesno_gump::Yesno_gump ( const std::string &  txt  ) 

Definition at line 77 of file Yesno_gump.cc.

Yesno_gump::~Yesno_gump (  ) 

Definition at line 91 of file Yesno_gump.cc.


Member Function Documentation

Yesno_gump::UNREPLICATABLE_CLASS_I ( Yesno_gump  ,
Modal_gump(0, 0, 0, 0)   
) [private]

void Yesno_gump::set_answer ( int  y  )  [inline, protected]

Definition at line 41 of file Yesno_gump.h.

References answer, and Modal_gump::done.

Referenced by key_down().

int Yesno_gump::get_answer (  )  [inline]

Definition at line 51 of file Yesno_gump.h.

References answer.

Referenced by ask().

void Yesno_gump::paint (  )  [virtual]

Reimplemented from Gump.

Definition at line 103 of file Yesno_gump.cc.

References gwin, and Game_window::set_painted().

Here is the call graph for this function:

void Yesno_gump::mouse_down ( int  mx,
int  my 
) [virtual]

Implements Modal_gump.

Definition at line 122 of file Yesno_gump.cc.

void Yesno_gump::mouse_up ( int  mx,
int  my 
) [virtual]

Implements Modal_gump.

Definition at line 144 of file Yesno_gump.cc.

void Yesno_gump::key_down ( int  chr  )  [virtual]

Reimplemented from Modal_gump.

Definition at line 161 of file Yesno_gump.cc.

References set_answer().

Here is the call graph for this function:

int Yesno_gump::ask ( const char *  txt  )  [static]

Definition at line 176 of file Yesno_gump.cc.

References get_answer(), and Mouse::hand.

Referenced by Newfile_gump::delete_file(), File_gump::load(), Gump_manager::okay_to_quit(), Gamemenu_gump::quit(), File_gump::quit(), Game_window::restore_gamedat(), Newfile_gump::save(), and File_gump::save().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Yesno_button [friend]

Definition at line 48 of file Yesno_gump.h.


Member Data Documentation

short Yesno_gump::yesx [static, protected]

Definition at line 36 of file Yesno_gump.h.

short Yesno_gump::yesnoy [static, protected]

Definition at line 36 of file Yesno_gump.h.

short Yesno_gump::nox [static, protected]

Definition at line 36 of file Yesno_gump.h.

const std::string Yesno_gump::text [protected]

Definition at line 37 of file Yesno_gump.h.

int Yesno_gump::answer [protected]

Definition at line 39 of file Yesno_gump.h.

Referenced by get_answer(), and set_answer().

Yesno_button* Yesno_gump::yes_button [protected]

Definition at line 40 of file Yesno_gump.h.

Yesno_button * Yesno_gump::no_button [protected]

Definition at line 40 of file Yesno_gump.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:06:18 2007 for ExultEngine by  doxygen 1.5.1