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

Method landings_on

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

Get the rocket landings on this round.

(&self, round: Rounds)

Source from the content-addressed store, hash-verified

77
78 /// Get the rocket landings on this round.
79 pub fn landings_on(&self, round: Rounds) -> Vec<RocketLanding> {
80 if let Some(landings) = self.landings.get(&round) {
81 landings.clone()
82 } else {
83 vec![]
84 }
85 }
86
87 /// All rocket landings, ordered by round.
88 pub fn all(&self) -> Vec<(Rounds, RocketLanding)> {

Callers 1

process_rocketsMethod · 0.80

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected