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

#include <contexts.hpp>

Public Member Functions

 MAKE_ENUM (TYPE,(VILLAGE,"village")(LEADER,"leader")(EXPLICIT,"explicit")(THREAT,"threat")(BATTLE_AID,"battle aid")(MASS,"mass")(SUPPORT,"support"))
 
 target (const map_location &pos, double val, TYPE target_type=TYPE::VILLAGE)
 

Public Attributes

map_location loc
 
double value
 
TYPE type
 

Detailed Description

Definition at line 41 of file contexts.hpp.

Constructor & Destructor Documentation

ai::target::target ( const map_location pos,
double  val,
TYPE  target_type = TYPE::VILLAGE 
)
inline

Definition at line 52 of file contexts.hpp.

Member Function Documentation

ai::target::MAKE_ENUM ( TYPE  ,
(VILLAGE,"village")(LEADER,"leader")(EXPLICIT,"explicit")(THREAT,"threat")(BATTLE_AID,"battle aid")(MASS,"mass")(SUPPORT,"support")   
)

Member Data Documentation

map_location ai::target::loc
TYPE ai::target::type

Definition at line 57 of file contexts.hpp.

Referenced by ai::ai_default_rca::move_to_targets_phase::rate_target().

double ai::target::value

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