The Battle for Wesnoth  1.19.1+dev
Namespaces | Functions
lua_unit_attacks.hpp File Reference
#include <string>
#include "units/attack_type.hpp"
Include dependency graph for lua_unit_attacks.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.




void push_unit_attacks_table (lua_State *L, int idx)
std::string lua_units::register_attacks_metatables (lua_State *L)
void luaW_pushweapon (lua_State *L, attack_ptr weapon)
void luaW_pushweapon (lua_State *L, const_attack_ptr weapon)
const_attack_ptr luaW_toweapon (lua_State *L, int idx)
attack_typeluaW_checkweapon (lua_State *L, int idx)
int intf_create_attack (lua_State *L)

Function Documentation

◆ intf_create_attack()

int intf_create_attack ( lua_State *  L)

Definition at line 350 of file lua_unit_attacks.cpp.

References luaW_checkconfig(), and luaW_pushweapon().

Referenced by game_lua_kernel::game_lua_kernel().

◆ luaW_checkweapon()

attack_type& luaW_checkweapon ( lua_State *  L,
int  idx 

Definition at line 83 of file lua_unit_attacks.cpp.

References attack_ref::attack, and luaW_checkweapon_ref().

Referenced by impl_unit_attack_set().

◆ luaW_pushweapon() [1/2]

void luaW_pushweapon ( lua_State *  L,
attack_ptr  weapon 

◆ luaW_pushweapon() [2/2]

void luaW_pushweapon ( lua_State *  L,
const_attack_ptr  weapon 

Definition at line 60 of file lua_unit_attacks.cpp.

References uattackKey.

◆ luaW_toweapon()

const_attack_ptr luaW_toweapon ( lua_State *  L,
int  idx 

◆ push_unit_attacks_table()

void push_unit_attacks_table ( lua_State *  L,
int  idx 

Definition at line 40 of file lua_unit_attacks.cpp.

References uattacksKey.

Referenced by impl_unit_type_get().