#include <contain.h>
Inheritance diagram for Container_game_object:
Public Member Functions | |
Container_game_object (int shapenum, int framenum, unsigned int tilex, unsigned int tiley, unsigned int lft, char res=0) | |
Container_game_object () | |
virtual | ~Container_game_object () |
Object_list & | get_objects () |
void | modify_volume_used (int delta) |
int | has_room (Game_object *obj) const |
virtual void | remove (Game_object *obj) |
virtual bool | add (Game_object *obj, bool dont_check=false, bool combine=false) |
virtual void | change_member_shape (Game_object *obj, int newshape) |
virtual int | find_readied (Game_object *obj) |
virtual Game_object * | get_readied (int index) const |
virtual void | call_readied_usecode (int index, Game_object *obj, int eventid) |
virtual int | add_quantity (int delta, int shapenum, int qual=c_any_qual, int framenum=c_any_framenum, int dontcreate=0) |
virtual int | create_quantity (int delta, int shapenum, int qual, int framenum, bool temporary=false) |
virtual int | remove_quantity (int delta, int shapenum, int qual, int framenum) |
virtual Game_object * | find_item (int shapenum, int qual, int framenum) |
virtual void | activate (int event=1) |
virtual int | get_weight () |
virtual int | drop (Game_object *obj) |
virtual int | count_objects (int shapenum, int qual=c_any_qual, int framenum=c_any_framenum) |
virtual int | get_objects (Game_object_vector &vec, int shapenum, int qual, int framenum) |
virtual void | set_flag_recursively (int flag) |
virtual void | write_ireg (DataSource *out) |
virtual int | get_ireg_size () |
virtual void | write_contents (DataSource *out) |
virtual int | get_obj_hp () const |
virtual void | set_obj_hp (int hp) |
bool | extract_contents () |
virtual void | delete_contents () |
virtual void | remove_this (int nodel=0) |
virtual Container_game_object * | as_container () |
Protected Member Functions | |
int | get_max_volume () const |
Protected Attributes | |
Object_list | objects |
Private Attributes | |
int | volume_used |
char | resistance |
Definition at line 30 of file contain.h.
Container_game_object::Container_game_object | ( | int | shapenum, | |
int | framenum, | |||
unsigned int | tilex, | |||
unsigned int | tiley, | |||
unsigned int | lft, | |||
char | res = 0 | |||
) | [inline] |
Container_game_object::~Container_game_object | ( | ) | [virtual] |
Definition at line 48 of file contain.cc.
int Container_game_object::get_max_volume | ( | ) | const [inline, protected] |
Definition at line 36 of file contain.h.
References Game_object::get_volume().
Referenced by has_room().
Here is the call graph for this function:
Object_list& Container_game_object::get_objects | ( | ) | [inline] |
Definition at line 48 of file contain.h.
References objects.
Referenced by Jawbone_object::find_teeth(), D_Recursive_object_iterator< D >::get_next(), Is_draco(), and Actor::resurrect().
void Container_game_object::modify_volume_used | ( | int | delta | ) | [inline] |
Definition at line 51 of file contain.h.
References volume_used.
Referenced by Game_object::modify_quantity().
int Container_game_object::has_room | ( | Game_object * | obj | ) | const [inline] |
Definition at line 54 of file contain.h.
References get_max_volume(), Exult_server::obj, and volume_used.
Here is the call graph for this function:
void Container_game_object::remove | ( | Game_object * | obj | ) | [virtual] |
Reimplemented in Actor, Barge_object, and Jawbone_object.
Definition at line 59 of file contain.cc.
References Exult_server::obj.
Referenced by delete_contents(), extract_contents(), Jawbone_object::remove(), Actor::remove(), and Actor::resurrect().
bool Container_game_object::add | ( | Game_object * | obj, | |
bool | dont_check = false , |
|||
bool | combine = false | |||
) | [virtual] |
Reimplemented from Game_object.
Reimplemented in Actor, Monster_actor, Barge_object, and Jawbone_object.
Definition at line 81 of file contain.cc.
References c_any_qual, GAME_BG, Game::get_game_type(), Game_object::get_owner(), Exult_server::info, Exult_server::obj, Obj_flags::okay_to_take, and SERPENT_ISLE.
Referenced by Jawbone_object::add(), Monster_actor::add(), Actor::add(), Actor::add_readied(), Actor::die(), and extract_contents().
Here is the call graph for this function:
void Container_game_object::change_member_shape | ( | Game_object * | obj, | |
int | newshape | |||
) | [virtual] |
Reimplemented in Actor.
Definition at line 146 of file contain.cc.
References Exult_server::obj.
Referenced by Actor::change_member_shape(), and Usecode_internal::set_item_shape().
virtual int Container_game_object::find_readied | ( | Game_object * | obj | ) | [inline, virtual] |
Reimplemented in Actor.
Definition at line 65 of file contain.h.
Referenced by Dragging_info::drop(), and Dragging_info::start().
virtual Game_object* Container_game_object::get_readied | ( | int | index | ) | const [inline, virtual] |
Reimplemented in Actor.
Definition at line 67 of file contain.h.
Referenced by Paperdoll_gump::get_arm_type().
virtual void Container_game_object::call_readied_usecode | ( | int | index, | |
Game_object * | obj, | |||
int | eventid | |||
) | [inline, virtual] |
Reimplemented in Actor.
Definition at line 69 of file contain.h.
Referenced by Dragging_info::drop().
int Container_game_object::add_quantity | ( | int | delta, | |
int | shapenum, | |||
int | qual = c_any_qual , |
|||
int | framenum = c_any_framenum , |
|||
int | dontcreate = 0 | |||
) | [virtual] |
Reimplemented from Game_object.
Definition at line 236 of file contain.cc.
References Add2keyring(), c_any_framenum, GAME_SI, Get_combine_info(), Game_object::get_weight(), and Exult_server::obj.
Referenced by ActionCreateShape(), and Cheat::create_coins().
Here is the call graph for this function:
int Container_game_object::create_quantity | ( | int | delta, | |
int | shapenum, | |||
int | qual, | |||
int | framenum, | |||
bool | temporary = false | |||
) | [virtual] |
Reimplemented from Game_object.
Definition at line 305 of file contain.cc.
References c_any_qual, Game::get_game_type(), ShapeID::get_info(), T_Object_iterator< T >::get_next(), Shape_info::has_quality(), Obj_flags::is_temporary, Game_object::modify_quantity(), Exult_server::obj, SERPENT_ISLE, Game_object::set_flag(), and Game_object::set_quality().
Referenced by Monster_actor::create().
Here is the call graph for this function:
int Container_game_object::remove_quantity | ( | int | delta, | |
int | shapenum, | |||
int | qual, | |||
int | framenum | |||
) | [virtual] |
Reimplemented from Game_object.
Definition at line 358 of file contain.cc.
References c_any_framenum, c_any_qual, and Exult_server::obj.
Referenced by Spellbook_object::do_spell().
Game_object * Container_game_object::find_item | ( | int | shapenum, | |
int | qual, | |||
int | framenum | |||
) | [virtual] |
Reimplemented from Game_object.
Definition at line 397 of file contain.cc.
References c_any_framenum, c_any_qual, T_Object_iterator< T >::get_next(), and Exult_server::obj.
Here is the call graph for this function:
void Container_game_object::activate | ( | int | event = 1 |
) | [virtual] |
Reimplemented from Game_object.
Reimplemented in Actor, and Npc_actor.
Definition at line 428 of file contain.cc.
References Gump_manager::add_gump(), BLACK_GATE, game, Game::get_game_type(), Game::get_shape(), and SERPENT_ISLE.
Here is the call graph for this function:
int Container_game_object::get_weight | ( | ) | [virtual] |
Reimplemented from Game_object.
Definition at line 568 of file contain.cc.
References T_Object_iterator< T >::get_next(), Game_object::get_weight(), and Exult_server::obj.
Here is the call graph for this function:
int Container_game_object::drop | ( | Game_object * | obj | ) | [virtual] |
Reimplemented from Game_object.
Reimplemented in Actor, and Barge_object.
Definition at line 586 of file contain.cc.
References Exult_server::obj.
int Container_game_object::count_objects | ( | int | shapenum, | |
int | qual = c_any_qual , |
|||
int | framenum = c_any_framenum | |||
) | [virtual] |
Reimplemented from Game_object.
Definition at line 600 of file contain.cc.
References c_any_framenum, c_any_qual, c_any_shapenum, T_Object_iterator< T >::get_next(), and Exult_server::obj.
Referenced by Spellbook_object::can_do_spell().
Here is the call graph for this function:
int Container_game_object::get_objects | ( | Game_object_vector & | vec, | |
int | shapenum, | |||
int | qual, | |||
int | framenum | |||
) | [virtual] |
Reimplemented from Game_object.
Definition at line 630 of file contain.cc.
References c_any_framenum, c_any_qual, c_any_shapenum, T_Object_iterator< T >::get_next(), and Exult_server::obj.
Here is the call graph for this function:
void Container_game_object::set_flag_recursively | ( | int | flag | ) | [virtual] |
Reimplemented from Ireg_game_object.
Definition at line 659 of file contain.cc.
References T_Object_iterator< T >::get_next(), and Exult_server::obj.
Referenced by Actor::die(), and Party_manager::link_party().
Here is the call graph for this function:
void Container_game_object::write_ireg | ( | DataSource * | out | ) | [virtual] |
Reimplemented from Ireg_game_object.
Reimplemented in Actor, and Barge_object.
Definition at line 675 of file contain.cc.
References Game::get_game_type(), Game_object::get_prev(), ShapeID::get_shapenum(), Obj_flags::invisible, Exult_server::npc, Obj_flags::okay_to_take, SERPENT_ISLE, DataSource::write(), Write2(), and Game_map::write_scheduled().
Here is the call graph for this function:
int Container_game_object::get_ireg_size | ( | ) | [virtual] |
Reimplemented from Ireg_game_object.
Reimplemented in Actor, and Barge_object.
Definition at line 710 of file contain.cc.
References Usecode_script::find(), Gump_manager::find_gump(), Game_object::get_next(), Game_singletons::gumpman, T_Object_list< T >::is_empty(), Game_object::next, Exult_server::obj, objects, and size.
Here is the call graph for this function:
void Container_game_object::write_contents | ( | DataSource * | out | ) | [virtual] |
Reimplemented in Actor.
Definition at line 741 of file contain.cc.
References T_Object_iterator< T >::get_next(), Exult_server::obj, and DataSource::write1().
Here is the call graph for this function:
virtual int Container_game_object::get_obj_hp | ( | ) | const [inline, virtual] |
virtual void Container_game_object::set_obj_hp | ( | int | hp | ) | [inline, virtual] |
bool Container_game_object::extract_contents | ( | ) |
Definition at line 756 of file contain.cc.
References add(), Game_object::get_cx(), Game_object::get_cy(), T_Object_list< T >::get_first(), Ireg_game_object::get_owner(), Game_object::get_tile(), T_Object_list< T >::is_empty(), Exult_server::obj, objects, Ireg_game_object::owner, and remove().
Referenced by remove_this().
Here is the call graph for this function:
void Container_game_object::delete_contents | ( | ) | [virtual] |
Reimplemented from Game_object.
Definition at line 785 of file contain.cc.
References T_Object_list< T >::get_first(), T_Object_list< T >::is_empty(), Exult_server::obj, objects, and remove().
Here is the call graph for this function:
void Container_game_object::remove_this | ( | int | nodel = 0 |
) | [virtual] |
Reimplemented from Ireg_game_object.
Reimplemented in Npc_actor, Slime_actor, and Monster_actor.
Definition at line 799 of file contain.cc.
References extract_contents(), Ireg_game_object::get_owner(), and Ireg_game_object::remove_this().
Referenced by Npc_actor::remove_this(), Actor::resurrect(), and Take_best_step().
Here is the call graph for this function:
virtual Container_game_object* Container_game_object::as_container | ( | ) | [inline, virtual] |
int Container_game_object::volume_used [private] |
char Container_game_object::resistance [private] |
Object_list Container_game_object::objects [protected] |
Reimplemented in Barge_object.
Definition at line 35 of file contain.h.
Referenced by delete_contents(), extract_contents(), Jawbone_object::find_teeth(), get_ireg_size(), and get_objects().