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

Method SetPlayerRadarGfxBlock

src/lua/LuaCallOuts.cpp:2043–2050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2041
2042
2043int LuaCallOuts::SetPlayerRadarGfxBlock(lua_State* L) {
2044 // FIXME - remove these 3 const_cast<>s for now const Parse routines ?
2045 Player* player = const_cast<Player*>(ParsePlayer(L, 1));
2046 if (player == NULL) {
2047 return luaL_pushnil(L);
2048 }
2049 return Set_GfxBlock(L, player->getRadarGfxBlock());
2050}
2051
2052
2053int LuaCallOuts::GetPlayerRadarGfxBlock(lua_State* L) {

Callers

nothing calls this directly

Calls 3

ParsePlayerFunction · 0.85
luaL_pushnilFunction · 0.85
Set_GfxBlockFunction · 0.85

Tested by

no test coverage detected