Zombie Class Reference

#include <Zombie.h>

Inheritance diagram for Zombie:

Inheritance graph
[legend]
Collaboration diagram for Zombie:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Zombie (int major_incr=1)
virtual int NewPath (Tile_coord s, Tile_coord d, Pathfinder_client *client)
virtual int GetNextStep (Tile_coord &n, bool &done)
virtual int get_num_steps ()
virtual ~Zombie ()

Private Attributes

int major_distance
int major_frame_incr
Tile_coord cur
short * major_coord
short * minor_coord
int major_dir
int minor_dir
int major_delta
int minor_delta
int sum

Detailed Description

Definition at line 26 of file Zombie.h.


Constructor & Destructor Documentation

Zombie::Zombie ( int  major_incr = 1  )  [inline]

Definition at line 41 of file Zombie.h.

Zombie::~Zombie (  )  [virtual]

Definition at line 123 of file Zombie.cc.


Member Function Documentation

int Zombie::NewPath ( Tile_coord  s,
Tile_coord  d,
Pathfinder_client client 
) [virtual]

Implements PathFinder.

Definition at line 31 of file Zombie.cc.

References cur, Tile_coord::delta(), PathFinder::dest, major_coord, major_delta, major_dir, major_distance, minor_coord, minor_delta, minor_dir, s, PathFinder::src, sum, Tile_coord::tx, and Tile_coord::ty.

Referenced by Fast_pathfinder_client::is_straight_path(), and Actor_action::walk_to_tile().

Here is the call graph for this function:

int Zombie::GetNextStep ( Tile_coord n,
bool &  done 
) [virtual]

Implements PathFinder.

Definition at line 93 of file Zombie.cc.

References c_num_tiles, cur, major_coord, major_delta, major_dir, major_distance, major_frame_incr, minor_coord, minor_delta, minor_dir, and sum.

Referenced by Fast_pathfinder_client::is_straight_path().

virtual int Zombie::get_num_steps (  )  [inline, virtual]

Implements PathFinder.

Definition at line 52 of file Zombie.h.

References major_distance, and major_frame_incr.


Member Data Documentation

int Zombie::major_distance [private]

Definition at line 28 of file Zombie.h.

Referenced by get_num_steps(), GetNextStep(), and NewPath().

int Zombie::major_frame_incr [private]

Definition at line 29 of file Zombie.h.

Referenced by get_num_steps(), and GetNextStep().

Tile_coord Zombie::cur [private]

Definition at line 30 of file Zombie.h.

Referenced by GetNextStep(), and NewPath().

short* Zombie::major_coord [private]

Definition at line 32 of file Zombie.h.

Referenced by GetNextStep(), and NewPath().

short * Zombie::minor_coord [private]

Definition at line 32 of file Zombie.h.

Referenced by GetNextStep(), and NewPath().

int Zombie::major_dir [private]

Definition at line 33 of file Zombie.h.

Referenced by GetNextStep(), and NewPath().

int Zombie::minor_dir [private]

Definition at line 33 of file Zombie.h.

Referenced by GetNextStep(), and NewPath().

int Zombie::major_delta [private]

Definition at line 34 of file Zombie.h.

Referenced by GetNextStep(), and NewPath().

int Zombie::minor_delta [private]

Definition at line 34 of file Zombie.h.

Referenced by GetNextStep(), and NewPath().

int Zombie::sum [private]

Definition at line 39 of file Zombie.h.

Referenced by GetNextStep(), and NewPath().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:06:20 2007 for ExultEngine by  doxygen 1.5.1