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

Method GetShotTeam

src/lua/LuaCallOuts.cpp:2768–2775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2766
2767
2768int LuaCallOuts::GetShotTeam(lua_State* L) {
2769 const ShotPath* shot = ParseShot(L, 1);
2770 if (shot == NULL) {
2771 return luaL_pushnil(L);
2772 }
2773 lua_pushinteger(L, shot->getTeam());
2774 return 1;
2775}
2776
2777
2778int LuaCallOuts::GetShotPosition(lua_State* L) {

Callers

nothing calls this directly

Calls 4

ParseShotFunction · 0.85
luaL_pushnilFunction · 0.85
lua_pushintegerFunction · 0.50
getTeamMethod · 0.45

Tested by

no test coverage detected