

Public Member Functions | |
| Portrait_button (Gump *par, int px, int py, Actor *a) | |
| virtual | ~Portrait_button () |
| virtual void | double_clicked (int x, int y) |
| virtual void | paint () |
| virtual void | update_widget () |
| virtual int | on_button (int mx, int my) |
| virtual Rectangle | get_rect () |
| virtual bool | is_draggable () |
Protected Attributes | |
| Stat_bar * | hp |
| Stat_bar * | mana |
| bool | hit |
| int | pois |
| int | prot |
Definition at line 128 of file Face_stats.cc.
Definition at line 153 of file Face_stats.cc.
References Face_button::actor, Game_window::add_dirty(), Ireg_game_object::get_flag(), Actor::get_npc_num(), get_rect(), Game_singletons::gwin, Actor::health, hit, hp, Actor::magic, Actor::mana, mana, PALETTE_INDEX_BLUE, PALETTE_INDEX_RED, pois, Obj_flags::poisoned, prot, Obj_flags::protection, Actor::strength, and Actor::was_hit().
Here is the call graph for this function:

| Portrait_button::~Portrait_button | ( | ) | [virtual] |
| void Portrait_button::double_clicked | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Reimplemented from Face_button.
Definition at line 174 of file Face_stats.cc.
References Face_button::actor, Stat_bar::double_clicked(), hp, mana, Gump_button::on_button(), and Actor::show_inventory().
Here is the call graph for this function:

| void Portrait_button::paint | ( | ) | [virtual] |
Reimplemented from Gump_button.
Definition at line 220 of file Face_stats.cc.
References ShapeID::get_shape(), Gump::get_x(), Gump::get_y(), hit, HIT_PIXEL, hp, mana, Stat_bar::paint(), Gump_button::paint(), Shape_manager::paint_outline(), Gump_widget::parent, pois, POISON_PIXEL, prot, PROTECT_PIXEL, s, Game_singletons::sman, Gump_widget::x, and Gump_widget::y.
Here is the call graph for this function:

| void Portrait_button::update_widget | ( | ) | [virtual] |
Reimplemented from Face_button.
Definition at line 196 of file Face_stats.cc.
References Face_button::actor, Game_window::add_dirty(), Ireg_game_object::get_flag(), get_rect(), Game_singletons::gwin, hit, hp, mana, pois, Obj_flags::poisoned, prot, Obj_flags::protection, Stat_bar::update_widget(), Face_button::update_widget(), and Actor::was_hit().
Here is the call graph for this function:

| int Portrait_button::on_button | ( | int | mx, | |
| int | my | |||
| ) | [virtual] |
Reimplemented from Gump_button.
Definition at line 184 of file Face_stats.cc.
References hp, mana, and Gump_button::on_button().
Here is the call graph for this function:

| Rectangle Portrait_button::get_rect | ( | ) | [virtual] |
Reimplemented from Gump_widget.
Definition at line 255 of file Face_stats.cc.
References Rectangle::add(), Rectangle::enlarge(), Gump_widget::get_rect(), hit, hp, mana, pois, and prot.
Referenced by Portrait_button(), and update_widget().
Here is the call graph for this function:

| virtual bool Portrait_button::is_draggable | ( | ) | [inline, virtual] |
Stat_bar* Portrait_button::hp [protected] |
Definition at line 131 of file Face_stats.cc.
Referenced by double_clicked(), get_rect(), on_button(), paint(), Portrait_button(), update_widget(), and ~Portrait_button().
Stat_bar* Portrait_button::mana [protected] |
Definition at line 132 of file Face_stats.cc.
Referenced by double_clicked(), get_rect(), on_button(), paint(), Portrait_button(), update_widget(), and ~Portrait_button().
bool Portrait_button::hit [protected] |
Definition at line 133 of file Face_stats.cc.
Referenced by get_rect(), paint(), Portrait_button(), and update_widget().
int Portrait_button::pois [protected] |
Definition at line 134 of file Face_stats.cc.
Referenced by get_rect(), paint(), Portrait_button(), and update_widget().
int Portrait_button::prot [protected] |
Definition at line 135 of file Face_stats.cc.
Referenced by get_rect(), paint(), Portrait_button(), and update_widget().
1.5.1