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

Method has_asteroid

battlecode-engine/src/map/mod.rs:523–525  ·  view source on GitHub ↗

Whether there is an asteroid strike at the given round.

(&self, round: Rounds)

Source from the content-addressed store, hash-verified

521
522 /// Whether there is an asteroid strike at the given round.
523 pub fn has_asteroid(&self, round: Rounds) -> bool {
524 self.pattern.get(&round).is_some()
525 }
526
527 /// Get the asteroid strike at the given round.
528 ///

Callers 1

process_asteroidsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected