#include <paths.h>
Inheritance diagram for Actor_pathfinder_client:
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 |
Actor * | npc |
Definition at line 36 of file paths.h.
Actor_pathfinder_client::Actor_pathfinder_client | ( | Actor * | npc, | |
int | d = 0 | |||
) |
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:
int Actor_pathfinder_client::dist [private] |
Actor* Actor_pathfinder_client::npc [private] |