Home
last modified time | relevance | path

Searched refs:attack_ref (Results 1 – 1 of 1) sorted by relevance

/dports/games/wesnoth/wesnoth-1.14.17/src/scripting/
H A Dlua_unit_attacks.cpp33 struct attack_ref { struct
36 attack_ref(attack_ptr atk) : attack(atk), cattack(atk) {} in attack_ref() argument
37 attack_ref(const_attack_ptr atk) : cattack(atk) {} in attack_ref() function
53 new(L) attack_ref(weapon); in luaW_pushweapon()
63 new(L) attack_ref(weapon); in luaW_pushweapon()
70 static attack_ref& luaW_checkweapon_ref(lua_State* L, int idx) in luaW_checkweapon_ref()
78 return static_cast<attack_ref*>(p)->cattack; in luaW_toweapon()
85 attack_ref& atk = luaW_checkweapon_ref(L, idx); in luaW_checkweapon()
251 attack_ref& atk_ref = luaW_checkweapon_ref(L, 1); in impl_unit_attack_get()
331 attack_ref* atk = static_cast<attack_ref*>(luaL_checkudata(L, 1, uattackKey)); in impl_unit_attack_collect()
[all …]