Spellbook_object Class Reference

#include <spellbook.h>

Inheritance diagram for Spellbook_object:

Inheritance graph
[legend]
Collaboration diagram for Spellbook_object:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Spellbook_object (int shapenum, int framenum, unsigned int shapex, unsigned int shapey, unsigned int lft, unsigned char *c, unsigned char bmark)
int add_spell (int spell)
bool has_ring (Actor *act)
bool can_do_spell (Actor *act, int spell)
bool can_do_spell (Actor *act)
bool do_spell (Actor *act, int spell, bool can_do=false, bool in_combat=false)
bool do_spell (Actor *act, bool in_combat=false)
virtual void activate (int event=1)
virtual void write_ireg (DataSource *out)
virtual int get_ireg_size ()

Static Public Member Functions

static void execute_spell (Actor *act, int spell, bool in_combat=false)

Private Attributes

unsigned short * reagents
unsigned char circles [9]
int bookmark

Static Private Attributes

static unsigned short bg_reagents [9 *8]
static unsigned short si_reagents [9 *8]

Friends

class Bookmark_button
class Spellbook_gump

Detailed Description

Definition at line 35 of file spellbook.h.


Constructor & Destructor Documentation

Spellbook_object::Spellbook_object ( int  shapenum,
int  framenum,
unsigned int  shapex,
unsigned int  shapey,
unsigned int  lft,
unsigned char *  c,
unsigned char  bmark 
)

Definition at line 151 of file spellbook.cc.

References GAME_SI.


Member Function Documentation

int Spellbook_object::add_spell ( int  spell  ) 

Definition at line 172 of file spellbook.cc.

Referenced by Usecode_internal::UI_add_spell().

bool Spellbook_object::has_ring ( Actor act  ) 

Definition at line 128 of file spellbook.cc.

References Game::get_game_type(), Actor::get_readied(), Actor::lfinger, Exult_server::obj, Actor::rfinger, and SERPENT_ISLE.

Here is the call graph for this function:

bool Spellbook_object::can_do_spell ( Actor act,
int  spell 
)

Definition at line 189 of file spellbook.cc.

References c_any_qual, cheat, Container_game_object::count_objects(), Actor::get_level(), Actor::get_property(), Cheat::in_wizard_mode(), Actor::mana, and REAGENTS.

Referenced by can_do_spell(), and Combat_schedule::readied_spellbook().

Here is the call graph for this function:

bool Spellbook_object::can_do_spell ( Actor act  )  [inline]

Definition at line 53 of file spellbook.h.

References bookmark, and can_do_spell().

Here is the call graph for this function:

bool Spellbook_object::do_spell ( Actor act,
int  spell,
bool  can_do = false,
bool  in_combat = false 
)

Definition at line 225 of file spellbook.cc.

References c_any_qual, cheat, Actor::get_property(), Cheat::in_wizard_mode(), Actor::mana, REAGENTS, Container_game_object::remove_quantity(), and Actor::set_property().

Referenced by do_spell(), and Spellbook_gump::do_spell().

Here is the call graph for this function:

bool Spellbook_object::do_spell ( Actor act,
bool  in_combat = false 
) [inline]

Definition at line 59 of file spellbook.h.

References bookmark, and do_spell().

Here is the call graph for this function:

void Spellbook_object::execute_spell ( Actor act,
int  spell,
bool  in_combat = false 
) [static]

Definition at line 262 of file spellbook.cc.

References Usecode_machine::call_usecode(), Usecode_machine::double_click, Get_usecode(), Game_singletons::ucmachine, and Usecode_machine::weapon.

Referenced by Spellscroll_gump::do_spell().

Here is the call graph for this function:

void Spellbook_object::activate ( int  event = 1  )  [virtual]

Reimplemented from Game_object.

Definition at line 278 of file spellbook.cc.

References Gump_manager::add_gump(), BLACK_GATE, Game::get_game_type(), and Game_singletons::gumpman.

Here is the call graph for this function:

void Spellbook_object::write_ireg ( DataSource out  )  [virtual]

Reimplemented from Ireg_game_object.

Definition at line 290 of file spellbook.cc.

References DataSource::write(), and Game_map::write_scheduled().

Here is the call graph for this function:

int Spellbook_object::get_ireg_size (  )  [virtual]

Reimplemented from Ireg_game_object.

Definition at line 314 of file spellbook.cc.

References Usecode_script::find(), Gump_manager::find_gump(), and Game_singletons::gumpman.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Bookmark_button [friend]

Definition at line 43 of file spellbook.h.

friend class Spellbook_gump [friend]

Definition at line 44 of file spellbook.h.


Member Data Documentation

unsigned short Spellbook_object::bg_reagents [static, private]

Definition at line 38 of file spellbook.h.

unsigned short Spellbook_object::si_reagents [static, private]

Definition at line 38 of file spellbook.h.

unsigned short* Spellbook_object::reagents [private]

Definition at line 39 of file spellbook.h.

unsigned char Spellbook_object::circles[9] [private]

Definition at line 40 of file spellbook.h.

int Spellbook_object::bookmark [private]

Definition at line 41 of file spellbook.h.

Referenced by Bookmark_button::activate(), can_do_spell(), do_spell(), and Bookmark_button::set().


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