The Battle for Wesnoth  1.19.0-dev
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:

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_
 
const teamviewing_team_
 
const gamemapmap_
 

Additional Inherited Members

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

Detailed Description

Definition at line 224 of file pathfind.hpp.

Constructor & Destructor Documentation

◆ move_type_path_calculator()

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 823 of file pathfind.cpp.

Member Function Documentation

◆ cost()

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

Member Data Documentation

◆ map_

const gamemap& pathfind::move_type_path_calculator::map_
private

Definition at line 234 of file pathfind.hpp.

Referenced by cost().

◆ movement_left_

const int pathfind::move_type_path_calculator::movement_left_
private

Definition at line 231 of file pathfind.hpp.

Referenced by cost().

◆ movement_type_

const movetype& pathfind::move_type_path_calculator::movement_type_
private

Definition at line 230 of file pathfind.hpp.

Referenced by cost().

◆ total_movement_

const int pathfind::move_type_path_calculator::total_movement_
private

Definition at line 232 of file pathfind.hpp.

Referenced by cost().

◆ viewing_team_

const team& pathfind::move_type_path_calculator::viewing_team_
private

Definition at line 233 of file pathfind.hpp.

Referenced by cost().


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