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

Method my_planet

battlecode-engine/src/world.rs:703–710  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

701 // ************************************************************************
702
703 fn my_planet(&self) -> &PlanetInfo {
704 let planet = self.planet();
705 if let Some(planet_info) = self.planet_states.get(&planet) {
706 planet_info
707 } else {
708 unreachable!();
709 }
710 }
711
712 fn my_planet_mut(&mut self) -> &mut PlanetInfo {
713 let planet = self.planet();

Callers 15

unit_refMethod · 0.80
unit_mutMethod · 0.80
unitMethod · 0.80
units_refMethod · 0.80
unitsMethod · 0.80
units_by_idMethod · 0.80
units_by_locMethod · 0.80
karbonite_atMethod · 0.80
sense_nearby_unitsMethod · 0.80
my_unitMethod · 0.80

Calls 1

planetMethod · 0.45

Tested by

no test coverage detected