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

Method all

battlecode-engine/src/rockets.rs:88–97  ·  view source on GitHub ↗

All rocket landings, ordered by round.

(&self)

Source from the content-addressed store, hash-verified

86
87 /// All rocket landings, ordered by round.
88 pub fn all(&self) -> Vec<(Rounds, RocketLanding)> {
89 let mut all_landings: Vec<(Rounds, RocketLanding)> = vec![];
90 for (round, landings) in self.landings.clone().into_iter() {
91 all_landings.extend(
92 landings.into_iter().map(|landing| (round, landing))
93 );
94 }
95 all_landings.sort();
96 all_landings
97 }
98
99 /// All rocket landings, grouped by round but in no particular order.
100 pub fn all_grouped(&self) -> FnvHashMap<Rounds, Vec<RocketLanding>> {

Callers 1

test_rocket_landingsFunction · 0.45

Calls 1

cloneMethod · 0.80

Tested by 1

test_rocket_landingsFunction · 0.36