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 gamemap::location &, const gamemap::location &loc, const double) const

Private Attributes

const gamemapmap_


Detailed Description

Definition at line 49 of file actions.cpp.


Constructor & Destructor Documentation

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

Definition at line 51 of file actions.cpp.


Member Function Documentation

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

Implements cost_calculator.

Definition at line 54 of file actions.cpp.

References gamemap::is_castle(), and map_.


Member Data Documentation

Definition at line 63 of file actions.cpp.

Referenced by cost().


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

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