Public Member Functions | Private Attributes

castle_cost_calculator Struct Reference

Inheritance diagram for castle_cost_calculator:
Inheritance graph
[legend]
Collaboration diagram for castle_cost_calculator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 castle_cost_calculator (const gamemap &map)
virtual double cost (const map_location &loc, const double) const

Private Attributes

const gamemapmap_

Detailed Description

Definition at line 53 of file actions.cpp.


Constructor & Destructor Documentation

castle_cost_calculator::castle_cost_calculator ( const gamemap map  )  [inline]

Definition at line 55 of file actions.cpp.


Member Function Documentation

virtual double castle_cost_calculator::cost ( const map_location loc,
const   double 
) const [inline, virtual]

Implements pathfind::cost_calculator.

Definition at line 58 of file actions.cpp.

References gamemap::is_castle(), and map_.

Here is the call graph for this function:


Member Data Documentation

Definition at line 67 of file actions.cpp.

Referenced by cost().


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

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