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

Method units

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

All the units within the vision range, in no particular order. Does not include units in space.

(&self)

Source from the content-addressed store, hash-verified

491 /// All the units within the vision range, in no particular order.
492 /// Does not include units in space.
493 pub fn units(&self) -> Vec<Unit> {
494 self.my_planet().units.values().map(|u| u.clone()).collect()
495 }
496
497 /// All the units within the vision range, by ID.
498 /// Does not include units in space.

Callers

nothing calls this directly

Calls 2

my_planetMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected