The Battle for Wesnoth  1.17.0+dev
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

Public Attributes

double val
double TYPE target_type
double value
TYPE type

Detailed Description

Definition at line 30 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")   
) const &

Member Data Documentation

◆ target_type

double TYPE ai::target::target_type
Initial value:
=TYPE::VILLAGE) : loc(pos), value(val), type(target_type)

Definition at line 41 of file contexts.hpp.

◆ type

TYPE ai::target::type

◆ val

double ai::target::val

Definition at line 41 of file contexts.hpp.

◆ value

double ai::target::value

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