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

Method units_by_id

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

All the units within the vision range, by ID. Does not include units in space.

(&self)

Source from the content-addressed store, hash-verified

497 /// All the units within the vision range, by ID.
498 /// Does not include units in space.
499 pub fn units_by_id(&self) -> FnvHashMap<UnitID, Unit> {
500 self.my_planet().units.clone()
501 }
502
503 /// All the units within the vision range, by location.
504 /// Does not include units in garrisons or in space.

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.80
my_planetMethod · 0.80

Tested by

no test coverage detected