#include <Spellbook_gump.h>
Inheritance diagram for Spellbook_gump:
Public Member Functions | |
Spellbook_gump (Spellbook_object *b) | |
~Spellbook_gump () | |
virtual void | do_spell (int spell) |
void | change_page (int delta) |
virtual void | select_spell (int spell) |
virtual Game_object * | get_owner () |
virtual Gump_button * | on_button (int mx, int my) |
virtual void | paint_button (Gump_button *btn) |
virtual void | paint () |
Private Member Functions | |
void | set_avail () |
Private Attributes | |
int | page |
int | turning_page |
int | turning_frame |
short | avail [9 *8] |
Spellbook_object * | book |
Game_object * | book_owner |
Gump_button * | leftpage |
Gump_button * | rightpage |
Bookmark_button * | bookmark |
Gump_button * | spells [9 *8] |
int | spwidth |
int | spheight |
Friends | |
class | Bookmark_button |
Definition at line 44 of file Spellbook_gump.h.
Spellbook_gump::Spellbook_gump | ( | Spellbook_object * | b | ) |
Definition at line 253 of file Spellbook_gump.cc.
References cheat, Get_circle(), Shape_frame::get_height(), Shape_frame::get_width(), Shape_frame::get_xleft(), Shape_frame::get_xright(), Shape_frame::get_yabove(), Cheat::in_wizard_mode(), s, SF_GUMPS_VGA, and SPELLS.
Here is the call graph for this function:
Spellbook_gump::~Spellbook_gump | ( | ) |
Definition at line 304 of file Spellbook_gump.cc.
void Spellbook_gump::set_avail | ( | ) | [private] |
Definition at line 217 of file Spellbook_gump.cc.
References c_any_qual, Game_window::get_main_actor(), gwin, NREAGENTS, and REAGENTS.
Here is the call graph for this function:
void Spellbook_gump::do_spell | ( | int | spell | ) | [virtual] |
Implements Spelltype_gump.
Definition at line 319 of file Spellbook_gump.cc.
References Spellbook_object::do_spell(), Mouse::flash_shape(), Game_window::get_main_actor(), gwin, Mouse::mouse, Game_window::paint(), Mouse::redx, and Game_window::show().
Here is the call graph for this function:
void Spellbook_gump::change_page | ( | int | delta | ) |
Definition at line 344 of file Spellbook_gump.cc.
References Game_window::add_dirty(), ShapeID::get_num_frames(), gwin, Game_window::paint_dirty(), SF_GUMPS_VGA, Game_window::show(), and TURNINGPAGE.
Referenced by Bookmark_button::activate().
Here is the call graph for this function:
void Spellbook_gump::select_spell | ( | int | spell | ) | [virtual] |
Game_object * Spellbook_gump::get_owner | ( | ) | [virtual] |
Gump_button * Spellbook_gump::on_button | ( | int | mx, | |
int | my | |||
) | [virtual] |
Reimplemented from Gump.
Definition at line 411 of file Spellbook_gump.cc.
References Gump::on_button(), and s.
Here is the call graph for this function:
void Spellbook_gump::paint_button | ( | Gump_button * | btn | ) | [virtual] |
Definition at line 439 of file Spellbook_gump.cc.
References Gump_button::paint().
Here is the call graph for this function:
void Spellbook_gump::paint | ( | ) | [virtual] |
Reimplemented from Gump.
Definition at line 451 of file Spellbook_gump.cc.
References CIRCLE, CIRCLENUM, Game::get_game_type(), ShapeID::get_num_frames(), ShapeID::get_shape(), Shape_frame::get_xleft(), Shape_frame::get_yabove(), gwin, item_names, Gump::paint(), ShapeID::paint_shape(), s, SERPENT_ISLE, Game_window::set_painted(), SF_GUMPS_VGA, snprintf, and TURNINGPAGE.
Here is the call graph for this function:
friend class Bookmark_button [friend] |
Definition at line 61 of file Spellbook_gump.h.
int Spellbook_gump::page [private] |
Definition at line 46 of file Spellbook_gump.h.
Referenced by Bookmark_button::activate(), and Bookmark_button::set().
int Spellbook_gump::turning_page [private] |
Definition at line 47 of file Spellbook_gump.h.
int Spellbook_gump::turning_frame [private] |
Definition at line 49 of file Spellbook_gump.h.
short Spellbook_gump::avail[9 *8] [private] |
Definition at line 50 of file Spellbook_gump.h.
Spellbook_object* Spellbook_gump::book [private] |
Definition at line 52 of file Spellbook_gump.h.
Referenced by Bookmark_button::activate(), get_owner(), and Bookmark_button::set().
Game_object* Spellbook_gump::book_owner [private] |
Definition at line 53 of file Spellbook_gump.h.
Gump_button* Spellbook_gump::leftpage [private] |
Definition at line 55 of file Spellbook_gump.h.
Gump_button * Spellbook_gump::rightpage [private] |
Definition at line 55 of file Spellbook_gump.h.
Bookmark_button* Spellbook_gump::bookmark [private] |
Definition at line 56 of file Spellbook_gump.h.
Gump_button* Spellbook_gump::spells[9 *8] [private] |
Definition at line 57 of file Spellbook_gump.h.
int Spellbook_gump::spwidth [private] |
int Spellbook_gump::spheight [private] |
Definition at line 58 of file Spellbook_gump.h.