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

Namespaces

 lua_units
 

Functions

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)
 

Function Documentation

◆ 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, luaL_argerror(), 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 
)

◆ 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 
)