emergency_path_calculator Struct Reference

Function which only uses terrain, ignoring shroud, enemies, etc. More...

#include <pathfind.hpp>

Inheritance diagram for emergency_path_calculator:

Inheritance graph
[legend]
Collaboration diagram for emergency_path_calculator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 emergency_path_calculator (const unit &u, const gamemap &map)
virtual double cost (const gamemap::location &src, const gamemap::location &loc, const double so_far) const

Private Attributes

unit const & unit_
gamemap const & map_


Detailed Description

Function which only uses terrain, ignoring shroud, enemies, etc.

Required by move_unit_fake if the normal path fails.

Definition at line 160 of file pathfind.hpp.


Constructor & Destructor Documentation

emergency_path_calculator::emergency_path_calculator ( const unit u,
const gamemap map 
)

Definition at line 368 of file pathfind.cpp.


Member Function Documentation

double emergency_path_calculator::cost ( const gamemap::location src,
const gamemap::location loc,
const double  so_far 
) const [virtual]

Implements cost_calculator.

Definition at line 373 of file pathfind.cpp.

References map_, unit::movement_cost(), gamemap::on_board(), and unit_.


Member Data Documentation

Definition at line 166 of file pathfind.hpp.

Referenced by cost().

Definition at line 167 of file pathfind.hpp.

Referenced by cost().


The documentation for this struct was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs