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

Method GetPlayersInBox

src/lua/LuaSpatial.cpp:588–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586
587
588int LuaSpatial::GetPlayersInBox(lua_State* L) {
589 BoxData box;
590 ParseBox(L, box);
591 std::vector<const Player*> hits;
592 CheckPlayers(PlayerInBox, box, hits);
593 PushPlayers(L, hits);
594 return 1;
595}
596
597
598int LuaSpatial::GetVisiblePlayers(lua_State* L) {

Callers

nothing calls this directly

Calls 3

ParseBoxFunction · 0.85
CheckPlayersFunction · 0.85
PushPlayersFunction · 0.70

Tested by

no test coverage detected