The Battle for Wesnoth  1.15.2+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)
 

Function Documentation

◆ DEFINE_WFL_FUNCTION() [1/11]

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

◆ DEFINE_WFL_FUNCTION() [2/11]

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

Definition at line 45 of file function_gamestate.cpp.

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

◆ DEFINE_WFL_FUNCTION() [3/11]

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

Definition at line 76 of file function_gamestate.cpp.

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

◆ DEFINE_WFL_FUNCTION() [4/11]

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

◆ DEFINE_WFL_FUNCTION() [5/11]

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

◆ DEFINE_WFL_FUNCTION() [6/11]

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

◆ DEFINE_WFL_FUNCTION() [7/11]

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

◆ DEFINE_WFL_FUNCTION() [8/11]

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

◆ DEFINE_WFL_FUNCTION() [9/11]

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

◆ DEFINE_WFL_FUNCTION() [10/11]

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

◆ DEFINE_WFL_FUNCTION() [11/11]

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