#include <string>
Go to the source code of this file.
Namespaces | |
lua_team | |
This namespace contains bindings for lua to hold a pointer to a team, and to access and modify it. | |
Functions | |
std::string | lua_team::register_metatable (lua_State *L) |
void | luaW_pushteam (lua_State *, team &) |
Create a full userdata containing a pointer to the team. More... | |
team * | luaW_toteam (lua_State *, int) |
Test if the top stack element is a team, and if so, return it. More... | |
team & | luaW_checkteam (lua_State *, int) |
Test if the top stack element is a team, and if not, error. More... | |
team & | luaW_checkteam (lua_State *L, int idx, class game_board &board) |
Get a team either from a direct userdata or from a side number. More... | |
team& luaW_checkteam | ( | lua_State * | L, |
int | idx | ||
) |
Test if the top stack element is a team, and if not, error.
Definition at line 543 of file lua_team.cpp.
Referenced by lua_object_traits< team >::get(), impl_side_tostring(), game_lua_kernel::intf_get_fog_or_shroud(), game_lua_kernel::intf_get_label(), game_lua_kernel::intf_override_shroud(), and game_lua_kernel::intf_toggle_shroud().
team& luaW_checkteam | ( | lua_State * | L, |
int | idx, | ||
class game_board & | board | ||
) |
Get a team either from a direct userdata or from a side number.
Definition at line 548 of file lua_team.cpp.
void luaW_pushteam | ( | lua_State * | L, |
team & | tm | ||
) |
Create a full userdata containing a pointer to the team.
Definition at line 536 of file lua_team.cpp.
Referenced by game_lua_kernel::intf_get_side(), game_lua_kernel::intf_get_sides(), luaW_pushfaivariant(), and game_lua_kernel::run_filter().
team* luaW_toteam | ( | lua_State * | L, |
int | idx | ||
) |
Test if the top stack element is a team, and if so, return it.
Definition at line 562 of file lua_team.cpp.
Referenced by intf_append_ai(), intf_debug_ai(), lua_formula_bridge::intf_eval_formula(), game_lua_kernel::intf_is_enemy(), game_lua_kernel::intf_match_side(), intf_modify_ai(), game_lua_kernel::intf_set_side_id(), intf_switch_ai(), game_lua_kernel::intf_toggle_fog(), and luaW_tofaivariant().