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

Method GetVisibleShots

src/lua/LuaSpatial.cpp:932–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930
931
932int LuaSpatial::GetVisibleShots(lua_State* L) {
933 PlanesData planes;
934 if (!GetViewPlanes(planes)) {
935 lua_newtable(L);
936 return 1;
937 }
938 std::vector<const ShotPath*> hits;
939 CheckShots(ShotInPlanes, planes, hits);
940 PushShots(L, hits);
941 return 1;
942}
943
944
945int LuaSpatial::GetRadarShots(lua_State* L) {

Callers

nothing calls this directly

Calls 3

GetViewPlanesFunction · 0.85
CheckShotsFunction · 0.85
PushShotsFunction · 0.70

Tested by

no test coverage detected