#include <actors.h>
Inheritance diagram for Npc_actor:
Public Member Functions | |
Npc_actor (const std::string &nm, int shapenum, int num=-1, int uc=-1) | |
~Npc_actor () | |
void | set_nearby () |
void | clear_nearby () |
bool | is_nearby () const |
virtual void | set_schedules (Schedule_change *list, int cnt) |
virtual void | set_schedule_time_type (int time, int type) |
virtual void | set_schedule_time_location (int time, int x, int y) |
virtual void | remove_schedule (int time) |
virtual void | get_schedules (Schedule_change *&list, int &cnt) |
void | movef (Map_chunk *old_chunk, Map_chunk *new_chunk, int new_sx, int new_sy, int new_frame, int new_lift) |
virtual void | update_schedule (int hour3, int backwards=0, int delay=-1) |
virtual void | paint () |
virtual void | activate (int event=1) |
virtual void | handle_event (unsigned long curtime, long udata) |
virtual int | step (Tile_coord t, int frame) |
virtual void | remove_this (int nodel=0) |
virtual void | switched_chunks (Map_chunk *olist, Map_chunk *nlist) |
virtual void | move (int newtx, int newty, int newlift) |
virtual Npc_actor * | as_npc () |
Protected Member Functions | |
int | find_schedule_change (int hour3) |
Protected Attributes | |
unsigned char | num_schedules |
Schedule_change * | schedules |
Private Attributes | |
unsigned char | nearby |
Definition at line 542 of file actors.h.
Npc_actor::Npc_actor | ( | const std::string & | nm, | |
int | shapenum, | |||
int | num = -1 , |
|||
int | uc = -1 | |||
) |
int Npc_actor::find_schedule_change | ( | int | hour3 | ) | [protected] |
void Npc_actor::clear_nearby | ( | ) | [inline] |
bool Npc_actor::is_nearby | ( | ) | const [inline] |
void Npc_actor::set_schedules | ( | Schedule_change * | list, | |
int | cnt | |||
) | [virtual] |
Reimplemented from Actor.
Definition at line 3722 of file actors.cc.
Referenced by remove_schedule(), set_schedule_time_location(), and set_schedule_time_type().
void Npc_actor::set_schedule_time_type | ( | int | time, | |
int | type | |||
) | [virtual] |
Reimplemented from Actor.
Definition at line 3736 of file actors.cc.
References Schedule_change::get_pos(), Schedule_change::get_time(), Schedule_change::get_type(), num_schedules, schedules, Schedule_change::set(), set_schedules(), Tile_coord::tx, and Tile_coord::ty.
Here is the call graph for this function:
void Npc_actor::set_schedule_time_location | ( | int | time, | |
int | x, | |||
int | y | |||
) | [virtual] |
Reimplemented from Actor.
Definition at line 3769 of file actors.cc.
References Schedule_change::get_time(), Schedule_change::get_type(), num_schedules, schedules, Schedule_change::set(), and set_schedules().
Here is the call graph for this function:
void Npc_actor::remove_schedule | ( | int | time | ) | [virtual] |
Reimplemented from Actor.
Definition at line 3799 of file actors.cc.
References Schedule_change::get_time(), Schedule_change::get_type(), num_schedules, schedules, Schedule_change::set(), set_schedules(), Tile_coord::tx, and Tile_coord::ty.
Here is the call graph for this function:
void Npc_actor::get_schedules | ( | Schedule_change *& | list, | |
int & | cnt | |||
) | [virtual] |
void Npc_actor::movef | ( | Map_chunk * | old_chunk, | |
Map_chunk * | new_chunk, | |||
int | new_sx, | |||
int | new_sy, | |||
int | new_frame, | |||
int | new_lift | |||
) |
Reimplemented from Actor.
Definition at line 3848 of file actors.cc.
References Actor::movef(), and switched_chunks().
Here is the call graph for this function:
void Npc_actor::update_schedule | ( | int | hour3, | |
int | backwards = 0 , |
|||
int | delay = -1 | |||
) | [virtual] |
void Npc_actor::paint | ( | ) | [virtual] |
Reimplemented from Actor.
Reimplemented in Monster_actor.
Definition at line 3918 of file actors.cc.
References Time_queue::add(), Game_window::add_nearby_npc(), Schedule::follow_avatar, Game::get_ticks(), Game_window::get_tqueue(), gwin, Actor::paint(), and Time_queue::remove().
Referenced by Monster_actor::paint().
Here is the call graph for this function:
void Npc_actor::activate | ( | int | event = 1 |
) | [virtual] |
Reimplemented from Actor.
Definition at line 3942 of file actors.cc.
References Actor::activate(), Game::get_game_type(), and SERPENT_ISLE.
Here is the call graph for this function:
void Npc_actor::handle_event | ( | unsigned long | curtime, | |
long | udata | |||
) | [virtual] |
Implements Time_sensitive.
Definition at line 3973 of file actors.cc.
References Time_queue::add(), Game_window::get_tqueue(), gwin, and Game_window::is_time_stopped().
Here is the call graph for this function:
int Npc_actor::step | ( | Tile_coord | t, | |
int | frame | |||
) | [virtual] |
Reimplemented from Game_object.
Reimplemented in Slime_actor, Quaking_actor, and Monster_actor.
Definition at line 4013 of file actors.cc.
References Map_chunk::activate_eggs(), Game_window::add_dirty(), c_tiles_per_chunk, c_tilesize, Game_window::get_camera_actor(), gwin, Obj_flags::paralyzed, Obj_flags::poisoned, Game_window::scroll_if_needed(), Actor::set_flag(), Schedule::street_maintenance, Schedule::talk, Tile_coord::tx, Tile_coord::ty, and Tile_coord::tz.
Here is the call graph for this function:
void Npc_actor::remove_this | ( | int | nodel = 0 |
) | [virtual] |
Reimplemented from Container_game_object.
Reimplemented in Slime_actor, and Monster_actor.
Definition at line 4083 of file actors.cc.
References Game_window::get_tqueue(), gwin, Time_queue::remove(), Game_window::remove_nearby_npc(), Container_game_object::remove_this(), and switched_chunks().
Referenced by Monster_actor::remove_this().
Here is the call graph for this function:
void Npc_actor::move | ( | int | newtx, | |
int | newty, | |||
int | newlift | |||
) | [virtual] |
Reimplemented from Ireg_game_object.
Reimplemented in Slime_actor, and Monster_actor.
Definition at line 4120 of file actors.cc.
References Ireg_game_object::move(), and switched_chunks().
Referenced by Monster_actor::move().
Here is the call graph for this function:
virtual Npc_actor* Npc_actor::as_npc | ( | ) | [inline, virtual] |
unsigned char Npc_actor::nearby [private] |
Definition at line 544 of file actors.h.
Referenced by clear_nearby(), is_nearby(), and set_nearby().
unsigned char Npc_actor::num_schedules [protected] |
Definition at line 547 of file actors.h.
Referenced by remove_schedule(), set_schedule_time_location(), and set_schedule_time_type().
Schedule_change* Npc_actor::schedules [protected] |
Definition at line 548 of file actors.h.
Referenced by remove_schedule(), set_schedule_time_location(), and set_schedule_time_type().