MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / units_by_loc

Method units_by_loc

battlecode-engine/src/world.rs:505–507  ·  view source on GitHub ↗

All the units within the vision range, by location. Does not include units in garrisons or in space.

(&self)

Source from the content-addressed store, hash-verified

503 /// All the units within the vision range, by location.
504 /// Does not include units in garrisons or in space.
505 pub fn units_by_loc(&self) -> FnvHashMap<MapLocation, UnitID> {
506 self.my_planet().units_by_loc.clone()
507 }
508
509 /// All the units of this team that are in space. You cannot see units
510 /// on the other team that are in space.

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.80
my_planetMethod · 0.80

Tested by

no test coverage detected