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

Method get_planet_mut

battlecode-engine/src/world.rs:747–753  ·  view source on GitHub ↗
(&mut self, planet: Planet)

Source from the content-addressed store, hash-verified

745 }
746
747 fn get_planet_mut(&mut self, planet: Planet) -> &mut PlanetInfo {
748 if let Some(planet_info) = self.planet_states.get_mut(&planet) {
749 planet_info
750 } else {
751 unreachable!();
752 }
753 }
754
755 pub(crate) fn get_team(&self, team: Team) -> &TeamInfo {
756 if let Some(team_info) = self.team_states.get(&team) {

Callers 7

process_asteroidsMethod · 0.80
get_unit_mutMethod · 0.80
insert_unitMethod · 0.80
process_researchMethod · 0.80
process_factoriesMethod · 0.80
end_roundMethod · 0.80

Calls

no outgoing calls

Tested by 1