#include <actors.h>
Inheritance diagram for Main_actor:
Public Member Functions | |
Main_actor (const std::string &nm, int shapenum, int num=-1, int uc=-1) | |
virtual void | handle_event (unsigned long curtime, long udata) |
void | get_followers () |
virtual int | step (Tile_coord t, int frame) |
virtual void | switched_chunks (Map_chunk *olist, Map_chunk *nlist) |
virtual void | move (int newtx, int newty, int newlift) |
virtual void | die (Actor *attacker) |
Definition at line 520 of file actors.h.
Main_actor::Main_actor | ( | const std::string & | nm, | |
int | shapenum, | |||
int | num = -1 , |
|||
int | uc = -1 | |||
) | [inline] |
void Main_actor::handle_event | ( | unsigned long | curtime, | |
long | udata | |||
) | [virtual] |
Implements Time_sensitive.
Definition at line 3329 of file actors.cc.
References Time_queue::add(), Game_window::get_tqueue(), and gwin.
Here is the call graph for this function:
void Main_actor::get_followers | ( | ) |
Definition at line 3356 of file actors.cc.
References Obj_flags::asleep, Schedule::combat, Schedule::follow_avatar, Game_window::get_npc(), gwin, Schedule::loiter, Exult_server::npc, and Schedule::wait.
Here is the call graph for this function:
int Main_actor::step | ( | Tile_coord | t, | |
int | frame | |||
) | [virtual] |
Reimplemented from Game_object.
Definition at line 3389 of file actors.cc.
References Map_chunk::activate_eggs(), c_tiles_per_chunk, Game_object::find_blocking(), gwin, Map_chunk::has_dungeon(), Map_chunk::is_dungeon(), Map_chunk::is_ice_dungeon(), Map_chunk::is_roof(), Game_object::move_aside(), Actor::movef(), Obj_flags::poisoned, Game_window::scroll_if_needed(), Game_window::set_above_main_actor(), Game_window::set_all_dirty(), Actor::set_flag(), Game_window::set_ice_dungeon(), Game_window::set_in_dungeon(), switched_chunks(), Tile_coord::tx, and Tile_coord::ty.
Here is the call graph for this function:
Reimplemented from Actor.
Definition at line 3453 of file actors.cc.
References c_num_chunks, Game_window::emulate_cache(), Map_chunk::get_cx(), Map_chunk::get_cy(), and gwin.
Referenced by move(), and step().
Here is the call graph for this function:
void Main_actor::move | ( | int | newtx, | |
int | newty, | |||
int | newlift | |||
) | [virtual] |
Reimplemented from Ireg_game_object.
Definition at line 3515 of file actors.cc.
References gwin, Map_chunk::has_dungeon(), Map_chunk::is_dungeon(), Map_chunk::is_ice_dungeon(), Map_chunk::is_roof(), Ireg_game_object::move(), Game_window::set_above_main_actor(), Game_window::set_ice_dungeon(), Game_window::set_in_dungeon(), and switched_chunks().
Here is the call graph for this function:
void Main_actor::die | ( | Actor * | attacker | ) | [virtual] |
Reimplemented from Actor.
Definition at line 3541 of file actors.cc.
References BLACK_GATE, Obj_flags::dead, Usecode_machine::died, Game::get_game_type(), gwin, Game_window::in_combat(), Actor::set_flag(), Game_window::toggle_combat(), and Usecode_machine::weapon.
Here is the call graph for this function: