Egg_object Class Reference

#include <egg.h>

Inheritance diagram for Egg_object:

Inheritance graph
[legend]
Collaboration diagram for Egg_object:

Collaboration graph
[legend]
List of all members.

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_objectas_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_launcherlauncher

Static Private Attributes

static Egg_objectediting

Detailed Description

Definition at line 53 of file egg.h.


Member Enumeration Documentation

enum Egg_object::Egg_types

Enumerator:
monster 
jukebox 
soundsfx 
voice 
usecode 
missile 
teleport 
weather 
path 
button 
fire_field 
sleep_field 
poison_field 
caltrops_field 
mirror_object 

Definition at line 69 of file egg.h.

enum Egg_object::Egg_flag_shifts

Enumerator:
nocturnal 
once 
hatched 
auto_reset 

Definition at line 87 of file egg.h.

enum Egg_object::Egg_criteria

Enumerator:
cached_in 
party_near 
avatar_near 
avatar_far 
avatar_footpad 
party_footpad 
something_on 
external_criteria 

Definition at line 93 of file egg.h.


Constructor & Destructor Documentation

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 
)

Definition at line 148 of file egg.cc.

References Ucscript::usecode.

Egg_object::Egg_object ( int  shapenum,
int  framenum,
unsigned int  tilex,
unsigned int  tiley,
unsigned int  lft,
unsigned char  ty 
)

Definition at line 208 of file egg.cc.

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:


Member Function Documentation

void Egg_object::init_field ( unsigned char  ty  )  [inline, protected]

Definition at line 188 of file egg.cc.

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]

Definition at line 115 of file egg.h.

References distance.

int Egg_object::get_criteria (  )  const [inline]

Definition at line 117 of file egg.h.

References criteria.

int Egg_object::get_type (  )  const [inline]

Definition at line 119 of file egg.h.

References type.

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]

Definition at line 125 of file egg.h.

References area.

int Egg_object::is_solid_area (  )  const [inline]

Definition at line 127 of file egg.h.

References solid_area.

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::print_debug (  ) 

Definition at line 775 of file egg.cc.

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]

Reimplemented from Game_object.

Definition at line 144 of file egg.h.

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]

Definition at line 151 of file egg.h.

References flags, and hatched.

virtual Egg_object* Egg_object::as_egg (  )  [inline, virtual]

Reimplemented from Game_object.

Definition at line 154 of file egg.h.


Member Data Documentation

Egg_object * Egg_object::editing [static, private]

Reimplemented from Game_object.

Definition at line 55 of file egg.h.

unsigned char Egg_object::type [protected]

Definition at line 57 of file egg.h.

Referenced by get_type().

unsigned char Egg_object::probability [protected]

Definition at line 58 of file egg.h.

unsigned char Egg_object::criteria [protected]

Definition at line 59 of file egg.h.

Referenced by get_criteria().

unsigned Egg_object::distance [protected]

Definition at line 60 of file egg.h.

Referenced by get_distance().

unsigned Egg_object::flags [protected]

Reimplemented from Ireg_game_object.

Definition at line 61 of file egg.h.

Referenced by reset().

unsigned short Egg_object::data1 [protected]

Definition at line 62 of file egg.h.

unsigned short Egg_object::data2 [protected]

Definition at line 62 of file egg.h.

Rectangle Egg_object::area [protected]

Definition at line 63 of file egg.h.

Referenced by get_area(), and Mirror_object::set_area().

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]

Definition at line 65 of file egg.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:50:21 2007 for ExultEngine by  doxygen 1.5.1