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

Method get_planet

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

Source from the content-addressed store, hash-verified

737 }
738
739 fn get_planet(&self, planet: Planet) -> &PlanetInfo {
740 if let Some(planet_info) = self.planet_states.get(&planet) {
741 planet_info
742 } else {
743 unreachable!();
744 }
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) {

Callers 8

filterMethod · 0.80
process_asteroidsMethod · 0.80
get_unitMethod · 0.80
get_unit_mutMethod · 0.80
process_factoriesMethod · 0.80
are_all_units_deadMethod · 0.80
is_game_overMethod · 0.80
get_viewer_unitsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected