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

Method my_team_mut

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

Source from the content-addressed store, hash-verified

728 }
729
730 fn my_team_mut(&mut self) -> &mut TeamInfo {
731 let team = self.team();
732 if let Some(team_info) = self.team_states.get_mut(&team) {
733 team_info
734 } else {
735 unreachable!();
736 }
737 }
738
739 fn get_planet(&self, planet: Planet) -> &PlanetInfo {
740 if let Some(planet_info) = self.planet_states.get(&planet) {

Callers 15

unit_mutMethod · 0.80
write_team_arrayMethod · 0.80
my_unit_mutMethod · 0.80
move_to_spaceMethod · 0.80
move_from_spaceMethod · 0.80
destroy_unitMethod · 0.80
my_research_mutMethod · 0.80
harvestMethod · 0.80
blueprintMethod · 0.80
replicateMethod · 0.80
produce_robotMethod · 0.80
launch_rocketMethod · 0.80

Calls 1

teamMethod · 0.45

Tested by 2

test_factory_productionFunction · 0.64
test_replicateFunction · 0.64