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

Method GetFlagsInSphere

src/lua/LuaSpatial.cpp:708–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706
707
708int LuaSpatial::GetFlagsInSphere(lua_State* L) {
709 SphereData sphere;
710 ParseSphere(L, sphere);
711 std::vector<const Flag*> hits;
712 CheckFlags(FlagInSphere, sphere, hits);
713 PushFlags(L, hits);
714 return 1;
715}
716
717
718int LuaSpatial::GetFlagsInCylinder(lua_State* L) {

Callers

nothing calls this directly

Calls 3

ParseSphereFunction · 0.85
CheckFlagsFunction · 0.85
PushFlagsFunction · 0.85

Tested by

no test coverage detected