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

Method GetShotFlagType

src/lua/LuaCallOuts.cpp:2748–2755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2746
2747
2748int LuaCallOuts::GetShotFlagType(lua_State* L) {
2749 const ShotPath* shot = ParseShot(L, 1);
2750 if (shot == NULL) {
2751 return luaL_pushnil(L);
2752 }
2753 lua_pushstring(L, shot->getFlagType()->flagAbbv.c_str());
2754 return 1;
2755}
2756
2757
2758int LuaCallOuts::GetShotPlayer(lua_State* L) {

Callers

nothing calls this directly

Calls 5

ParseShotFunction · 0.85
luaL_pushnilFunction · 0.85
c_strMethod · 0.80
lua_pushstringFunction · 0.50
getFlagTypeMethod · 0.45

Tested by

no test coverage detected