Actor_action Class Reference

#include <actions.h>

Inheritance diagram for Actor_action:

Inheritance graph
[legend]
Collaboration diagram for Actor_action:

Collaboration graph
[legend]
List of all members.

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_actionwalk_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_actionas_usecode_path ()

Static Public Member Functions

static Actor_actioncreate_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

Detailed Description

Definition at line 36 of file actions.h.


Constructor & Destructor Documentation

Actor_action::Actor_action (  )  [inline]

Definition at line 44 of file actions.h.

References seq, and seqcnt.

virtual Actor_action::~Actor_action (  )  [inline, virtual]

Definition at line 46 of file actions.h.


Member Function Documentation

void Actor_action::set_get_party ( bool  tf = true  )  [inline]

Definition at line 47 of file actions.h.

References get_party.

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]

Reimplemented in Path_walking_actor_action.

Definition at line 52 of file actions.h.

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]

Reimplemented in Path_walking_actor_action.

Definition at line 63 of file actions.h.

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]

Reimplemented in If_else_path_actor_action.

Definition at line 68 of file actions.h.


Member Data Documentation

long Actor_action::seqcnt [static, private]

Definition at line 38 of file actions.h.

Referenced by Actor_action().

bool Actor_action::get_party [protected]

Definition at line 40 of file actions.h.

Referenced by set_get_party().

long Actor_action::seq [protected]

Definition at line 42 of file actions.h.

Referenced by Actor_action(), and handle_event_safely().


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