#include <egg.h>
Inheritance diagram for Egg_object:
Public Types | |
enum | Egg_types { monster = 1, jukebox = 2, soundsfx = 3, voice = 4, usecode = 5, missile = 6, teleport = 7, weather = 8, path = 9, button = 10, fire_field = 128, sleep_field = 129, poison_field = 130, caltrops_field = 131, mirror_object = 132 } |
enum | Egg_flag_shifts { nocturnal = 0, once = 1, hatched = 2, auto_reset = 3 } |
enum | Egg_criteria { cached_in = 0, party_near = 1, avatar_near = 2, avatar_far = 3, avatar_footpad = 4, party_footpad = 5, something_on = 6, external_criteria = 7 } |
Public Member Functions | |
Egg_object (int shapenum, int framenum, unsigned int tilex, unsigned int tiley, unsigned int lft, unsigned short itype, unsigned char prob, short d1, short d2) | |
Egg_object (int shapenum, int framenum, unsigned int tilex, unsigned int tiley, unsigned int lft, unsigned char ty) | |
virtual | ~Egg_object () |
virtual void | set_area () |
int | get_distance () const |
int | get_criteria () const |
int | get_type () const |
virtual int | is_active (Game_object *obj, int tx, int ty, int tz, int from_tx, int from_ty) |
Rectangle | get_area () const |
int | is_solid_area () const |
virtual void | paint () |
virtual void | activate (int event=1) |
virtual bool | edit () |
virtual void | activate (Game_object *obj, bool must=false) |
void | print_debug () |
virtual void | move (int newtx, int newty, int newlift) |
virtual void | remove_this (int nodel=0) |
virtual int | is_egg () const |
virtual void | write_ireg (DataSource *out) |
virtual int | get_ireg_size () |
virtual void | reset () |
virtual Egg_object * | as_egg () |
Static Public Member Functions | |
static void | update_from_studio (unsigned char *data, int datalen) |
static void | set_weather (int weather, int len=15, Game_object *egg=0) |
Protected Member Functions | |
void | init_field (unsigned char ty) |
void | activate_teleport (Game_object *obj) |
Protected Attributes | |
unsigned char | type |
unsigned char | probability |
unsigned char | criteria:3 |
unsigned | distance:6 |
unsigned | flags:4 |
unsigned short | data1 |
unsigned short | data2 |
Rectangle | area |
unsigned char | solid_area |
Missile_launcher * | launcher |
Static Private Attributes | |
static Egg_object * | editing |
Definition at line 53 of file egg.h.
Egg_object::Egg_object | ( | int | shapenum, | |
int | framenum, | |||
unsigned int | tilex, | |||
unsigned int | tiley, | |||
unsigned int | lft, | |||
unsigned short | itype, | |||
unsigned char | prob, | |||
short | d1, | |||
short | d2 | |||
) |
Egg_object::Egg_object | ( | int | shapenum, | |
int | framenum, | |||
unsigned int | tilex, | |||
unsigned int | tiley, | |||
unsigned int | lft, | |||
unsigned char | ty | |||
) |
Egg_object::~Egg_object | ( | ) | [virtual] |
Definition at line 224 of file egg.cc.
References Game_window::get_tqueue(), gwin, and Time_queue::remove().
Here is the call graph for this function:
void Egg_object::init_field | ( | unsigned char | ty | ) | [inline, protected] |
void Egg_object::activate_teleport | ( | Game_object * | obj | ) | [protected] |
Definition at line 575 of file egg.cc.
References c_tiles_per_schunk, Game_object::get_tile(), gwin, Obj_flags::in_party, Exult_server::obj, Game_window::teleport_party(), Tile_coord::tx, and Tile_coord::ty.
Here is the call graph for this function:
void Egg_object::set_area | ( | ) | [virtual] |
Reimplemented in Mirror_object.
Definition at line 239 of file egg.cc.
References c_num_chunks, c_tiles_per_chunk, Exult_server::info, Tile_coord::tx, Tile_coord::ty, and width.
int Egg_object::get_distance | ( | ) | const [inline] |
int Egg_object::get_criteria | ( | ) | const [inline] |
int Egg_object::is_active | ( | Game_object * | obj, | |
int | tx, | |||
int | ty, | |||
int | tz, | |||
int | from_tx, | |||
int | from_ty | |||
) | [virtual] |
Reimplemented in Mirror_object.
Definition at line 294 of file egg.cc.
References cheat, Game::get_game_type(), Game_window::get_main_actor(), gwin, Rectangle::has_point(), Cheat::in_map_editor(), Obj_flags::in_party, Exult_server::obj, and SERPENT_ISLE.
Here is the call graph for this function:
Rectangle Egg_object::get_area | ( | ) | const [inline] |
int Egg_object::is_solid_area | ( | ) | const [inline] |
void Egg_object::paint | ( | ) | [virtual] |
Reimplemented from Egglike_game_object.
Reimplemented in Animated_egg_object, and Mirror_object.
Definition at line 379 of file egg.cc.
References Time_queue::add(), Game_window::get_tqueue(), gwin, and Egglike_game_object::paint().
Here is the call graph for this function:
void Egg_object::activate | ( | int | event = 1 |
) | [virtual] |
Reimplemented from Game_object.
Reimplemented in Animated_egg_object, Field_object, and Mirror_object.
Definition at line 393 of file egg.cc.
Referenced by Animated_egg_object::activate().
bool Egg_object::edit | ( | ) | [virtual] |
Reimplemented from Game_object.
Definition at line 408 of file egg.cc.
References cheat, Egg_object_out(), Cheat::in_map_editor(), Tile_coord::tx, Tile_coord::ty, and Tile_coord::tz.
Here is the call graph for this function:
void Egg_object::update_from_studio | ( | unsigned char * | data, | |
int | datalen | |||
) | [static] |
Reimplemented from Game_object.
Definition at line 442 of file egg.cc.
References Game_window::add_dirty(), Map_chunk::add_egg(), auto_reset, Exult_server::cancel, Game_window::drop_at_lift(), Ucscript::egg, Egg_object_in(), Ucscript::frame, Get_click(), gwin, Mouse::hand, hatched, nocturnal, once, Map_chunk::remove_egg(), Exult_server::Send_data(), Ucscript::usecode, and Exult_server::user_responded.
Here is the call graph for this function:
void Egg_object::activate | ( | Game_object * | obj, | |
bool | must = false | |||
) | [virtual] |
Reimplemented in Field_object, and Mirror_object.
Definition at line 609 of file egg.cc.
References Time_queue::add(), Usecode_script::add(), Map_chunk::add(), Game_window::add_dirty(), Map_chunk::add_egg(), Game_window::armageddon, Create_monster(), Ucscript::egg, Usecode_machine::egg_proximity, Audio::game_sfx(), GAME_SI, Get_direction16(), ShapeID::get_info(), Shape_info::get_monster_info(), Weapon_info::get_projectile(), Audio::get_ptr(), Game_window::get_std_delay(), Game_window::get_tqueue(), gwin, Exult_server::info, Game_object::is_egg(), Obj_flags::is_temporary, Exult_server::obj, Obj_flags::okay_to_take, Audio::play_sound_effect(), Ucscript::remove, Ireg_game_object::set_flag(), Usecode_script::start(), Audio::start_music(), Tile_coord::tx, Tile_coord::ty, Tile_coord::tz, and Ucscript::usecode.
Here is the call graph for this function:
void Egg_object::set_weather | ( | int | weather, | |
int | len = 15 , |
|||
Game_object * | egg = 0 | |||
) | [static] |
Definition at line 794 of file egg.cc.
References Ucscript::egg.
Referenced by Usecode_internal::UI_set_weather().
void Egg_object::move | ( | int | newtx, | |
int | newty, | |||
int | newlift | |||
) | [virtual] |
Reimplemented from Ireg_game_object.
Definition at line 833 of file egg.cc.
References Game_window::add_dirty(), Map_chunk::add_egg(), c_tiles_per_chunk, and gwin.
Here is the call graph for this function:
void Egg_object::remove_this | ( | int | nodel = 0 |
) | [virtual] |
Reimplemented from Ireg_game_object.
Definition at line 856 of file egg.cc.
References Game_window::add_dirty(), Game_window::delete_object(), Game_window::get_tqueue(), gwin, Time_queue::remove(), and Map_chunk::remove_egg().
Here is the call graph for this function:
virtual int Egg_object::is_egg | ( | ) | const [inline, virtual] |
void Egg_object::write_ireg | ( | DataSource * | out | ) | [virtual] |
Reimplemented from Ireg_game_object.
Reimplemented in Field_object, and Mirror_object.
Definition at line 886 of file egg.cc.
References DataSource::write(), Write2(), and Game_map::write_scheduled().
Here is the call graph for this function:
int Egg_object::get_ireg_size | ( | ) | [virtual] |
Reimplemented from Ireg_game_object.
Reimplemented in Field_object, and Mirror_object.
Definition at line 913 of file egg.cc.
References Usecode_script::find(), Gump_manager::find_gump(), and Game_singletons::gumpman.
Here is the call graph for this function:
virtual void Egg_object::reset | ( | ) | [inline, virtual] |
virtual Egg_object* Egg_object::as_egg | ( | ) | [inline, virtual] |
Egg_object * Egg_object::editing [static, private] |
unsigned char Egg_object::type [protected] |
unsigned char Egg_object::probability [protected] |
unsigned char Egg_object::criteria [protected] |
unsigned Egg_object::distance [protected] |
unsigned Egg_object::flags [protected] |
unsigned short Egg_object::data1 [protected] |
unsigned short Egg_object::data2 [protected] |
Rectangle Egg_object::area [protected] |
unsigned char Egg_object::solid_area [protected] |
Definition at line 64 of file egg.h.
Referenced by is_solid_area(), and Mirror_object::Mirror_object().
Missile_launcher* Egg_object::launcher [protected] |