MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetShotType

Method GetShotType

src/lua/LuaCallOuts.cpp:2738–2745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2736
2737
2738int LuaCallOuts::GetShotType(lua_State* L) {
2739 const ShotPath* shot = ParseShot(L, 1);
2740 if (shot == NULL) {
2741 return luaL_pushnil(L);
2742 }
2743 lua_pushinteger(L, shot->getShotType());
2744 return 1;
2745}
2746
2747
2748int LuaCallOuts::GetShotFlagType(lua_State* L) {

Callers

nothing calls this directly

Calls 4

ParseShotFunction · 0.85
luaL_pushnilFunction · 0.85
lua_pushintegerFunction · 0.50
getShotTypeMethod · 0.45

Tested by

no test coverage detected