The Battle for Wesnoth  1.19.7+dev
Functions
wfl::gamestate Namespace Reference

Functions

 DEFINE_WFL_FUNCTION (adjacent_locs, 1, 1)
 
 DEFINE_WFL_FUNCTION (locations_in_radius, 2, 2)
 
 DEFINE_WFL_FUNCTION (get_unit_type, 1, 1)
 
 DEFINE_WFL_FUNCTION (unit_at, 1, 1)
 
 DEFINE_WFL_FUNCTION (defense_on, 2, 2)
 
 DEFINE_WFL_FUNCTION (chance_to_hit, 2, 2)
 
 DEFINE_WFL_FUNCTION (movement_cost, 2, 2)
 
 DEFINE_WFL_FUNCTION (vision_cost, 2, 2)
 
 DEFINE_WFL_FUNCTION (jamming_cost, 2, 2)
 
 DEFINE_WFL_FUNCTION (enemy_of, 2, 2)
 
 DEFINE_WFL_FUNCTION (resistance_on, 3, 4)
 
 DEFINE_WFL_FUNCTION (tod_bonus, 0, 2)
 
 DEFINE_WFL_FUNCTION (base_tod_bonus, 0, 2)
 

Function Documentation

◆ DEFINE_WFL_FUNCTION() [1/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( adjacent_locs  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [2/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( base_tod_bonus  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [3/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( chance_to_hit  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [4/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( defense_on  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [5/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( enemy_of  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [6/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( get_unit_type  ,
,
 
)

Definition at line 79 of file function_gamestate.cpp.

References wfl::add_debug_info(), unit_type_data::find(), and unit_types.

◆ DEFINE_WFL_FUNCTION() [7/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( jamming_cost  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [8/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( locations_in_radius  ,
,
 
)

Definition at line 48 of file function_gamestate.cpp.

References resources::gameboard, get_tiles_in_radius(), loc, and n.

◆ DEFINE_WFL_FUNCTION() [9/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( movement_cost  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [10/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( resistance_on  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [11/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( tod_bonus  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [12/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( unit_at  ,
,
 
)

◆ DEFINE_WFL_FUNCTION() [13/13]

wfl::gamestate::DEFINE_WFL_FUNCTION ( vision_cost  ,
,
 
)