The Battle for Wesnoth  1.15.0-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 (enemy_of, 2, 2)
 

Function Documentation

◆ DEFINE_WFL_FUNCTION() [1/8]

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

◆ DEFINE_WFL_FUNCTION() [2/8]

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/8]

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/8]

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

◆ DEFINE_WFL_FUNCTION() [5/8]

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

◆ DEFINE_WFL_FUNCTION() [6/8]

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

◆ DEFINE_WFL_FUNCTION() [7/8]

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

◆ DEFINE_WFL_FUNCTION() [8/8]

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