Stat_bar Class Reference

Inheritance diagram for Stat_bar:

Inheritance graph
[legend]
Collaboration diagram for Stat_bar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Stat_bar (Gump *par, int px, int py, Actor *a, int s, int m, unsigned char c)
virtual void double_clicked (int x, int y)
virtual void paint ()
virtual void activate ()
virtual void push ()
virtual void unpush ()
virtual void update_widget ()
virtual bool is_draggable ()

Private Attributes

Actoractor
int prop
int prop_max
unsigned char colour
int val
int max_val

Detailed Description

Definition at line 42 of file Face_stats.cc.


Constructor & Destructor Documentation

Stat_bar::Stat_bar ( Gump par,
int  px,
int  py,
Actor a,
int  s,
int  m,
unsigned char  c 
)

Definition at line 65 of file Face_stats.cc.

References actor, Game_window::add_dirty(), Actor::get_effective_prop(), Gump_widget::get_rect(), Game_singletons::gwin, max_val, prop, prop_max, and val.

Here is the call graph for this function:


Member Function Documentation

void Stat_bar::double_clicked ( int  x,
int  y 
) [virtual]

Reimplemented from Gump_button.

Definition at line 75 of file Face_stats.cc.

References actor, Gump_manager::add_gump(), game, Game::get_shape(), and Game_singletons::gumpman.

Referenced by Portrait_button::double_clicked().

Here is the call graph for this function:

void Stat_bar::paint (  )  [virtual]

Reimplemented from Gump_button.

Definition at line 87 of file Face_stats.cc.

References Image_window8::fill8(), Game_window::get_win(), gwin, Gump_button::paint(), and width.

Referenced by Portrait_button::paint().

Here is the call graph for this function:

virtual void Stat_bar::activate (  )  [inline, virtual]

Implements Gump_button.

Definition at line 56 of file Face_stats.cc.

virtual void Stat_bar::push (  )  [inline, virtual]

Reimplemented from Gump_button.

Definition at line 57 of file Face_stats.cc.

virtual void Stat_bar::unpush (  )  [inline, virtual]

Reimplemented from Gump_button.

Definition at line 58 of file Face_stats.cc.

void Stat_bar::update_widget (  )  [virtual]

Reimplemented from Gump_widget.

Definition at line 115 of file Face_stats.cc.

References actor, Game_window::add_dirty(), Actor::get_effective_prop(), Gump_widget::get_rect(), Game_singletons::gwin, max_val, prop, prop_max, and val.

Referenced by Portrait_button::update_widget().

Here is the call graph for this function:

virtual bool Stat_bar::is_draggable (  )  [inline, virtual]

Reimplemented from Gump_widget.

Definition at line 62 of file Face_stats.cc.


Member Data Documentation

Actor* Stat_bar::actor [private]

Definition at line 44 of file Face_stats.cc.

Referenced by double_clicked(), Stat_bar(), and update_widget().

int Stat_bar::prop [private]

Definition at line 45 of file Face_stats.cc.

Referenced by Stat_bar(), and update_widget().

int Stat_bar::prop_max [private]

Definition at line 46 of file Face_stats.cc.

Referenced by Stat_bar(), and update_widget().

unsigned char Stat_bar::colour [private]

Definition at line 47 of file Face_stats.cc.

int Stat_bar::val [private]

Definition at line 49 of file Face_stats.cc.

Referenced by Stat_bar(), and update_widget().

int Stat_bar::max_val [private]

Definition at line 50 of file Face_stats.cc.

Referenced by Stat_bar(), and update_widget().


The documentation for this class was generated from the following file:
Generated on Mon Jul 9 15:03:54 2007 for ExultEngine by  doxygen 1.5.1