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

Method process_rockets

battlecode-engine/src/world.rs:2018–2027  ·  view source on GitHub ↗
(&mut self, team: Team)

Source from the content-addressed store, hash-verified

2016 }
2017
2018 fn process_rockets(&mut self, team: Team) {
2019 let landings = self.get_team(team).rocket_landings.landings_on(self.round);
2020 for landing in landings.iter() {
2021 self.land_rocket(landing.rocket_id, landing.destination);
2022 self.viewer_changes.push(ViewerDelta::RocketLanding {
2023 rocket_id: landing.rocket_id,
2024 location: landing.destination
2025 });
2026 }
2027 }
2028
2029 // ************************************************************************
2030 // ***************************** MANAGER API ******************************

Callers 1

end_turnMethod · 0.80

Calls 3

landings_onMethod · 0.80
get_teamMethod · 0.80
land_rocketMethod · 0.45

Tested by

no test coverage detected