#include <Zombie.h>
Inheritance diagram for Zombie:


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 |
Definition at line 26 of file Zombie.h.
| 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.
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] |
Tile_coord Zombie::cur [private] |
short* Zombie::major_coord [private] |
short * Zombie::minor_coord [private] |
int Zombie::major_dir [private] |
int Zombie::minor_dir [private] |
int Zombie::major_delta [private] |
int Zombie::minor_delta [private] |
int Zombie::sum [private] |
1.5.1