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

Method GetVisibleFlags

src/lua/LuaSpatial.cpp:738–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736
737
738int LuaSpatial::GetVisibleFlags(lua_State* L) {
739 PlanesData planes;
740 if (!GetViewPlanes(planes)) {
741 lua_newtable(L);
742 return 1;
743 }
744 std::vector<const Flag*> hits;
745 CheckFlags(FlagInPlanes, planes, hits);
746 PushFlags(L, hits);
747 return 1;
748}
749
750
751int LuaSpatial::GetRadarFlags(lua_State* L) {

Callers

nothing calls this directly

Calls 3

GetViewPlanesFunction · 0.85
CheckFlagsFunction · 0.85
PushFlagsFunction · 0.85

Tested by

no test coverage detected