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

Method current_duration_of_flight

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

The current duration of flight if a rocket were to be launched this round. Does not take into account any research done on rockets.

(&self)

Source from the content-addressed store, hash-verified

644 /// The current duration of flight if a rocket were to be launched this
645 /// round. Does not take into account any research done on rockets.
646 pub fn current_duration_of_flight(&self) -> Rounds {
647 self.orbit.duration(self.round)
648 }
649
650 fn process_asteroids(&mut self) {
651 if self.asteroids.has_asteroid(self.round) {

Callers

nothing calls this directly

Calls 1

durationMethod · 0.80

Tested by

no test coverage detected