The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

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

Definition at line 32 of file function_gamestate.cpp.

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

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

Definition at line 63 of file function_gamestate.cpp.

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

wfl::gamestate::DEFINE_WFL_FUNCTION ( unit_at  ,
,
 
)
wfl::gamestate::DEFINE_WFL_FUNCTION ( defense_on  ,
,
 
)
wfl::gamestate::DEFINE_WFL_FUNCTION ( chance_to_hit  ,
,
 
)
wfl::gamestate::DEFINE_WFL_FUNCTION ( movement_cost  ,
,
 
)
wfl::gamestate::DEFINE_WFL_FUNCTION ( enemy_of  ,
,
 
)