#include <monsters.h>
Inheritance diagram for Monster_actor:
Public Member Functions | |
Monster_actor (const std::string &nm, int shapenum, int num=-1, int uc=-1) | |
virtual | ~Monster_actor () |
Monster_actor * | get_next_in_world () |
virtual int | move_aside (Actor *for_actor, int dir) |
virtual void | paint () |
virtual int | step (Tile_coord t, int frame) |
virtual void | remove_this (int nodel=0) |
virtual void | move (int newtx, int newty, int newlift) |
virtual bool | add (Game_object *obj, bool dont_check=false, bool combine=false) |
virtual int | get_armor_points () |
virtual Weapon_info * | get_weapon (int &points, int &shape) |
virtual int | is_monster () |
virtual void | die (Actor *attacker) |
void | write (DataSource *nfile) |
Static Public Member Functions | |
static Monster_actor * | create (int shnum) |
static Monster_actor * | create (int shnum, Tile_coord pos, int sched=-1, int align=(int) Actor::neutral, bool tempoary=true, bool equipment=true) |
static Monster_actor * | get_first_in_world () |
static void | delete_all () |
static void | give_up () |
Private Member Functions | |
void | link_in () |
void | link_out () |
Private Attributes | |
Monster_actor * | next_monster |
Monster_actor * | prev_monster |
Animator * | animator |
Static Private Attributes | |
static Monster_actor * | in_world |
Definition at line 30 of file monsters.h.
Monster_actor::Monster_actor | ( | const std::string & | nm, | |
int | shapenum, | |||
int | num = -1 , |
|||
int | uc = -1 | |||
) |
Definition at line 116 of file monsters.cc.
References Animator::create(), and Exult_server::info.
Here is the call graph for this function:
Monster_actor::~Monster_actor | ( | ) | [virtual] |
Definition at line 135 of file monsters.cc.
void Monster_actor::link_in | ( | ) | [private] |
Definition at line 82 of file monsters.cc.
void Monster_actor::link_out | ( | ) | [private] |
Definition at line 98 of file monsters.cc.
Monster_actor * Monster_actor::create | ( | int | shnum | ) | [static] |
Definition at line 181 of file monsters.cc.
References GAME_BG.
Referenced by Game_window::attack_avatar(), Game_window::call_guards(), Actor::clone(), Create_monster(), Game_window::read_npcs(), Usecode_internal::UI_create_new_object(), and Usecode_internal::UI_summon().
Monster_actor * Monster_actor::create | ( | int | shnum, | |
Tile_coord | pos, | |||
int | sched = -1 , |
|||
int | align = (int) Actor::neutral , |
|||
bool | tempoary = true , |
|||
bool | equipment = true | |||
) | [static] |
Definition at line 199 of file monsters.cc.
References Monster_info::alignment, c_any_qual, Monster_info::combat, Actor::combat, Container_game_object::create_quantity(), Monster_info::dexterity, Actor::dexterity, Equip_record::elements, Monster_info::equip, Monster_info::equip_cnt, Monster_info::equip_offset, Monster_info::ethereal, Find_monster_food(), Monster_info::flags, Monster_info::fly, Monster_info::get_default(), ShapeID::get_info(), Shape_info::get_monster_info(), Actor::health, Monster_info::intelligence, Actor::intelligence, Obj_flags::is_temporary, Schedule::loiter, move(), Actor::neutral, Equip_element::probability, Equip_element::quantity, Actor::set_alignment(), Actor::set_flag(), Game_object::set_invalid(), Actor::set_property(), Actor::set_schedule_type(), Actor::set_type_flag(), Equip_element::shapenum, Monster_info::strength, Actor::strength, Monster_info::swim, Actor::tf_ethereal, Actor::tf_fly, Actor::tf_swim, Actor::tf_walk, Tile_coord::tx, Tile_coord::ty, Tile_coord::tz, and Monster_info::walk.
Here is the call graph for this function:
static Monster_actor* Monster_actor::get_first_in_world | ( | ) | [inline, static] |
Definition at line 48 of file monsters.h.
References in_world.
Referenced by Game_window::write_npcs().
Monster_actor* Monster_actor::get_next_in_world | ( | ) | [inline] |
Definition at line 50 of file monsters.h.
References next_monster.
Referenced by Game_window::write_npcs().
void Monster_actor::delete_all | ( | ) | [static] |
static void Monster_actor::give_up | ( | ) | [inline, static] |
Definition at line 53 of file monsters.h.
References in_world.
Referenced by Game_window::read_npcs().
virtual int Monster_actor::move_aside | ( | Actor * | for_actor, | |
int | dir | |||
) | [inline, virtual] |
void Monster_actor::paint | ( | ) | [virtual] |
Reimplemented from Npc_actor.
Definition at line 293 of file monsters.cc.
References Npc_actor::paint().
Here is the call graph for this function:
int Monster_actor::step | ( | Tile_coord | t, | |
int | frame | |||
) | [virtual] |
Reimplemented from Npc_actor.
Reimplemented in Slime_actor, and Quaking_actor.
Definition at line 310 of file monsters.cc.
References Game_window::add_dirty(), c_tiles_per_chunk, c_tilesize, Game_window::emulate_is_move_allowed(), Game_window::get_camera_actor(), gwin, Obj_flags::paralyzed, Game_window::scroll_if_needed(), Map_chunk::setup_cache(), Tile_coord::tx, Tile_coord::ty, and Tile_coord::tz.
Referenced by Quaking_actor::step(), and Slime_actor::step().
Here is the call graph for this function:
void Monster_actor::remove_this | ( | int | nodel = 0 |
) | [virtual] |
Reimplemented from Npc_actor.
Reimplemented in Slime_actor.
Definition at line 364 of file monsters.cc.
References Npc_actor::remove_this().
Referenced by Slime_actor::remove_this().
Here is the call graph for this function:
void Monster_actor::move | ( | int | newtx, | |
int | newty, | |||
int | newlift | |||
) | [virtual] |
Reimplemented from Npc_actor.
Reimplemented in Slime_actor.
Definition at line 377 of file monsters.cc.
References Npc_actor::move().
Referenced by create(), and Slime_actor::move().
Here is the call graph for this function:
bool Monster_actor::add | ( | Game_object * | obj, | |
bool | dont_check = false , |
|||
bool | combine = false | |||
) | [virtual] |
Reimplemented from Actor.
Definition at line 395 of file monsters.cc.
References Container_game_object::add(), Actor::add(), and Exult_server::obj.
Here is the call graph for this function:
int Monster_actor::get_armor_points | ( | ) | [virtual] |
Reimplemented from Actor.
Definition at line 414 of file monsters.cc.
References Monster_info::armor, and Actor::get_armor_points().
Here is the call graph for this function:
Weapon_info * Monster_actor::get_weapon | ( | int & | points, | |
int & | shape | |||
) | [virtual] |
Reimplemented from Actor.
Definition at line 427 of file monsters.cc.
References Weapon_info::get_damage(), Actor::get_weapon(), and Monster_info::weapon.
Here is the call graph for this function:
virtual int Monster_actor::is_monster | ( | ) | [inline, virtual] |
void Monster_actor::die | ( | Actor * | attacker | ) | [virtual] |
Reimplemented from Actor.
Definition at line 455 of file monsters.cc.
References Actor::die().
Here is the call graph for this function:
void Monster_actor::write | ( | DataSource * | nfile | ) |
Reimplemented from Actor.
Definition at line 640 of file actorio.cc.
References Actor::is_dead(), and Actor::write().
Here is the call graph for this function:
Monster_actor * Monster_actor::in_world [static, private] |
Monster_actor* Monster_actor::next_monster [private] |
Monster_actor * Monster_actor::prev_monster [private] |
Definition at line 34 of file monsters.h.
Animator* Monster_actor::animator [private] |
Definition at line 35 of file monsters.h.