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

Method GetShotPlayer

src/lua/LuaCallOuts.cpp:2758–2765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2756
2757
2758int LuaCallOuts::GetShotPlayer(lua_State* L) {
2759 const ShotPath* shot = ParseShot(L, 1);
2760 if (shot == NULL) {
2761 return luaL_pushnil(L);
2762 }
2763 lua_pushinteger(L, shot->getPlayer());
2764 return 1;
2765}
2766
2767
2768int LuaCallOuts::GetShotTeam(lua_State* L) {

Callers

nothing calls this directly

Calls 4

ParseShotFunction · 0.85
luaL_pushnilFunction · 0.85
getPlayerMethod · 0.80
lua_pushintegerFunction · 0.50

Tested by

no test coverage detected