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

Method units_ref

battlecode-engine/src/world.rs:487–489  ·  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

485 /// All the units within the vision range, in no particular order.
486 /// Does not include units in space.
487 pub fn units_ref(&self) -> Vec<&Unit> {
488 self.my_planet().units.values().collect::<Vec<&Unit>>()
489 }
490
491 /// All the units within the vision range, in no particular order.
492 /// Does not include units in space.

Callers

nothing calls this directly

Calls 1

my_planetMethod · 0.80

Tested by

no test coverage detected