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

Method units_in_space

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

All the units of this team that are in space. You cannot see units on the other team that are in space.

(&self)

Source from the content-addressed store, hash-verified

509 /// All the units of this team that are in space. You cannot see units
510 /// on the other team that are in space.
511 pub fn units_in_space(&self) -> Vec<Unit> {
512 self.my_team().units_in_space.values().map(|u| u.clone()).collect()
513 }
514
515 /// The karbonite at the given location.
516 ///

Callers

nothing calls this directly

Calls 2

my_teamMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected