The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
pathfind::move_type_path_calculator Struct Reference

#include <pathfind.hpp>

Inheritance diagram for pathfind::move_type_path_calculator:
Inheritance graph

Public Member Functions

 move_type_path_calculator (const movetype &mt, int movement_left, int total_movement, const team &t, const gamemap &map)
 
virtual double cost (const map_location &loc, const double so_far) const
 
- Public Member Functions inherited from pathfind::cost_calculator
 cost_calculator ()
 
virtual ~cost_calculator ()
 

Private Attributes

const movetypemovement_type_
 
const int movement_left_
 
const int total_movement_
 
team const & viewing_team_
 
gamemap const & map_
 

Additional Inherited Members

- Static Public Member Functions inherited from pathfind::cost_calculator
static double getNoPathValue ()
 

Detailed Description

Definition at line 223 of file pathfind.hpp.

Constructor & Destructor Documentation

pathfind::move_type_path_calculator::move_type_path_calculator ( const movetype mt,
int  movement_left,
int  total_movement,
const team t,
const gamemap map 
)

Definition at line 778 of file pathfind.cpp.

Member Function Documentation

double pathfind::move_type_path_calculator::cost ( const map_location loc,
const double  so_far 
) const
virtual

Member Data Documentation

gamemap const& pathfind::move_type_path_calculator::map_
private

Definition at line 233 of file pathfind.hpp.

Referenced by cost().

const int pathfind::move_type_path_calculator::movement_left_
private

Definition at line 230 of file pathfind.hpp.

Referenced by cost().

const movetype& pathfind::move_type_path_calculator::movement_type_
private

Definition at line 229 of file pathfind.hpp.

Referenced by cost().

const int pathfind::move_type_path_calculator::total_movement_
private

Definition at line 231 of file pathfind.hpp.

Referenced by cost().

team const& pathfind::move_type_path_calculator::viewing_team_
private

Definition at line 232 of file pathfind.hpp.

Referenced by cost().


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