Fast_pathfinder_client Class Reference

#include <paths.h>

Inheritance diagram for Fast_pathfinder_client:

Inheritance graph
[legend]
Collaboration diagram for Fast_pathfinder_client:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Fast_pathfinder_client (int d=0, int mf=1<< 5)
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)

Static Public Member Functions

static int is_grabable (Tile_coord from, Tile_coord to)
static int is_straight_path (Tile_coord from, Tile_coord to)

Private Attributes

int dist

Detailed Description

Definition at line 92 of file paths.h.


Constructor & Destructor Documentation

Fast_pathfinder_client::Fast_pathfinder_client ( int  d = 0  )  [inline]

Definition at line 96 of file paths.h.

References Pathfinder_client::set_move_flags().

Here is the call graph for this function:


Member Function Documentation

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

Reimplemented from Pathfinder_client.

Reimplemented in Monster_pathfinder_client.

Definition at line 351 of file paths.cc.

References max_cost.

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

Implements Pathfinder_client.

Reimplemented in Monster_pathfinder_client.

Definition at line 371 of file paths.cc.

References c_tiles_per_chunk, Game_map::get_chunk(), Game_window::get_instance(), Game_window::get_map(), gwin, Map_chunk::is_blocked(), Map_chunk::setup_cache(), Tile_coord::tx, Tile_coord::ty, and Tile_coord::tz.

Here is the call graph for this function:

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

Implements Pathfinder_client.

Definition at line 400 of file paths.cc.

References Tile_coord::distance().

Here is the call graph for this function:

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

Reimplemented from Pathfinder_client.

Reimplemented in Monster_pathfinder_client.

Definition at line 413 of file paths.cc.

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

Here is the call graph for this function:

int Fast_pathfinder_client::is_grabable ( Tile_coord  from,
Tile_coord  to 
) [static]

Definition at line 429 of file paths.cc.

References Tile_coord::distance(), Game_window::get_instance(), and Astar::NewPath().

Referenced by Game_window::double_clicked(), Game_window::drop_at_lift(), Combat_schedule::ending(), Game_window::find_witness(), Talk_schedule::now_what(), and Dragging_info::start().

Here is the call graph for this function:

int Fast_pathfinder_client::is_straight_path ( Tile_coord  from,
Tile_coord  to 
) [static]

Definition at line 450 of file paths.cc.

References Zombie::GetNextStep(), Map_chunk::is_blocked(), Zombie::NewPath(), and Tile_coord::tz.

Referenced by Missile_launcher::handle_event(), and Combat_schedule::start_strike().

Here is the call graph for this function:


Member Data Documentation

int Fast_pathfinder_client::dist [private]

Definition at line 94 of file paths.h.


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