#include <actions.h>
Inheritance diagram for Actor_action:
Public Member Functions | |
Actor_action () | |
virtual | ~Actor_action () |
void | set_get_party (bool tf=true) |
int | handle_event_safely (Actor *actor, bool &deleted) |
virtual int | handle_event (Actor *actor)=0 |
virtual void | stop (Actor *actor) |
virtual Actor_action * | walk_to_tile (Actor *npc, Tile_coord src, Tile_coord dest, int dist=0) |
virtual int | get_dest (Tile_coord &dest) |
virtual int | following_smart_path () |
virtual If_else_path_actor_action * | as_usecode_path () |
Static Public Member Functions | |
static Actor_action * | create_action_sequence (Actor *actor, Tile_coord dest, Actor_action *when_there, bool from_off_screen=false) |
Protected Attributes | |
bool | get_party |
long | seq |
Static Private Attributes | |
static long | seqcnt |
Definition at line 36 of file actions.h.
Actor_action::Actor_action | ( | ) | [inline] |
void Actor_action::set_get_party | ( | bool | tf = true |
) | [inline] |
int Actor_action::handle_event_safely | ( | Actor * | actor, | |
bool & | deleted | |||
) |
Definition at line 50 of file actions.cc.
References Actor::get_action(), and seq.
Here is the call graph for this function:
virtual int Actor_action::handle_event | ( | Actor * | actor | ) | [pure virtual] |
Implemented in Null_action, Path_walking_actor_action, Approach_actor_action, If_else_path_actor_action, Move_actor_action, Activate_actor_action, Frames_actor_action, Usecode_actor_action, Sequence_actor_action, Object_animate_actor_action, Pickup_actor_action, Face_pos_actor_action, and Sit_actor_action.
virtual void Actor_action::stop | ( | Actor * | actor | ) | [inline, virtual] |
Actor_action * Actor_action::walk_to_tile | ( | Actor * | npc, | |
Tile_coord | src, | |||
Tile_coord | dest, | |||
int | dist = 0 | |||
) | [virtual] |
Reimplemented in Path_walking_actor_action.
Definition at line 76 of file actions.cc.
References Zombie::NewPath().
Referenced by Actor::approach_another(), create_action_sequence(), and Dance_schedule::now_what().
Here is the call graph for this function:
Actor_action * Actor_action::create_action_sequence | ( | Actor * | actor, | |
Tile_coord | dest, | |||
Actor_action * | when_there, | |||
bool | from_off_screen = false | |||
) | [static] |
Definition at line 103 of file actions.cc.
References Game_object::get_tile(), Sequence_actor_action::set_speed(), Tile_coord::tx, Tile_coord::ty, and walk_to_tile().
Referenced by Schedule::set_action_sequence().
Here is the call graph for this function:
virtual int Actor_action::get_dest | ( | Tile_coord & | dest | ) | [inline, virtual] |
virtual int Actor_action::following_smart_path | ( | ) | [inline, virtual] |
Reimplemented in Path_walking_actor_action.
Definition at line 66 of file actions.h.
Referenced by Actor::follow().
virtual If_else_path_actor_action* Actor_action::as_usecode_path | ( | ) | [inline, virtual] |
long Actor_action::seqcnt [static, private] |
bool Actor_action::get_party [protected] |
long Actor_action::seq [protected] |