Public Member Functions | Private Attributes

pathfind::emergency_path_calculator Struct Reference

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

#include <pathfind.hpp>

Inheritance diagram for pathfind::emergency_path_calculator:
Inheritance graph
[legend]
Collaboration diagram for pathfind::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 map_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 247 of file pathfind.hpp.


Constructor & Destructor Documentation

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

Definition at line 696 of file pathfind.cpp.


Member Function Documentation

double pathfind::emergency_path_calculator::cost ( const map_location loc,
const double  so_far 
) const [virtual]

Implements pathfind::cost_calculator.

Definition at line 700 of file pathfind.cpp.

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

Here is the call graph for this function:


Member Data Documentation

Definition at line 254 of file pathfind.hpp.

Referenced by cost().

Definition at line 253 of file pathfind.hpp.

Referenced by cost().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:24:42 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs