Actor_pathfinder_client Class Reference

#include <paths.h>

Inheritance diagram for Actor_pathfinder_client:

Inheritance graph
[legend]
Collaboration diagram for Actor_pathfinder_client:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Actor_pathfinder_client (Actor *npc, int d=0)
virtual int get_max_cost (int cost_to_goal)
virtual int get_step_cost (Tile_coord from, Tile_coord &to)
virtual int estimate_cost (Tile_coord &from, Tile_coord &to)
virtual int at_goal (Tile_coord &tile, Tile_coord &goal)

Private Attributes

int dist
Actornpc

Detailed Description

Definition at line 36 of file paths.h.


Constructor & Destructor Documentation

Actor_pathfinder_client::Actor_pathfinder_client ( Actor npc,
int  d = 0 
)

Definition at line 37 of file paths.cc.

References Exult_server::npc.


Member Function Documentation

int Actor_pathfinder_client::get_max_cost ( int  cost_to_goal  )  [virtual]

Reimplemented from Pathfinder_client.

Definition at line 51 of file paths.cc.

References c_tilesize, Game_window::get_instance(), Game_window::get_width(), gwin, and max_cost.

Here is the call graph for this function:

int Actor_pathfinder_client::get_step_cost ( Tile_coord  from,
Tile_coord to 
) [virtual]

Implements Pathfinder_client.

Reimplemented in Offscreen_pathfinder_client.

Definition at line 70 of file paths.cc.

References c_tiles_per_chunk, Game_object::find_door(), Game_map::get_chunk(), Map_chunk::get_flat(), Game_object::get_footprint(), ShapeID::get_framenum(), Game_window::get_instance(), Game_window::get_map(), ShapeID::get_shapenum(), Actor::get_tile_info(), gwin, Rectangle::h, Rectangle::has_point(), Exult_server::npc, Map_chunk::setup_cache(), Tile_coord::tx, Tile_coord::ty, Tile_coord::tz, Rectangle::w, Rectangle::x, and Rectangle::y.

Referenced by Offscreen_pathfinder_client::get_step_cost().

Here is the call graph for this function:

int Actor_pathfinder_client::estimate_cost ( Tile_coord from,
Tile_coord to 
) [virtual]

Implements Pathfinder_client.

Reimplemented in Onecoord_pathfinder_client, and Offscreen_pathfinder_client.

Definition at line 133 of file paths.cc.

References c_num_tiles, Tile_coord::tx, and Tile_coord::ty.

Referenced by Offscreen_pathfinder_client::estimate_cost(), and Onecoord_pathfinder_client::estimate_cost().

int Actor_pathfinder_client::at_goal ( Tile_coord tile,
Tile_coord goal 
) [virtual]

Reimplemented from Pathfinder_client.

Reimplemented in Onecoord_pathfinder_client, and Offscreen_pathfinder_client.

Definition at line 167 of file paths.cc.

References Tile_coord::distance(), and Tile_coord::tz.

Here is the call graph for this function:


Member Data Documentation

int Actor_pathfinder_client::dist [private]

Definition at line 38 of file paths.h.

Actor* Actor_pathfinder_client::npc [private]

Definition at line 39 of file paths.h.


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