move_cost_calculator Struct Reference

Inheritance diagram for move_cost_calculator:

Inheritance graph
[legend]
Collaboration diagram for move_cost_calculator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 move_cost_calculator (const unit &u, const gamemap &map, const unit_map &units, const gamemap::location &loc, const ai::move_map &dstsrc, const ai::move_map &enemy_dstsrc)
virtual double cost (const gamemap::location &, const gamemap::location &loc, const double) const

Private Attributes

const unitunit_
const gamemapmap_
const unit_mapunits_
const gamemap::location loc_
const ai::move_map dstsrc_
const ai::move_map enemy_dstsrc_
const bool avoid_enemies_


Detailed Description

Definition at line 32 of file ai_move.cpp.


Constructor & Destructor Documentation

move_cost_calculator::move_cost_calculator ( const unit u,
const gamemap map,
const unit_map units,
const gamemap::location loc,
const ai::move_map dstsrc,
const ai::move_map enemy_dstsrc 
) [inline]

Definition at line 34 of file ai_move.cpp.


Member Function Documentation

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


Member Data Documentation

Definition at line 81 of file ai_move.cpp.

Referenced by cost().

Definition at line 82 of file ai_move.cpp.

Referenced by cost().

Definition at line 83 of file ai_move.cpp.

Referenced by cost().

Definition at line 85 of file ai_move.cpp.

Definition at line 86 of file ai_move.cpp.

Definition at line 86 of file ai_move.cpp.

Referenced by cost().

Definition at line 87 of file ai_move.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