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

Method get_team

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

Source from the content-addressed store, hash-verified

753 }
754
755 pub(crate) fn get_team(&self, team: Team) -> &TeamInfo {
756 if let Some(team_info) = self.team_states.get(&team) {
757 team_info
758 } else {
759 unreachable!();
760 }
761 }
762
763 fn get_team_mut(&mut self, team: Team) -> &mut TeamInfo {
764 if let Some(team_info) = self.team_states.get_mut(&team) {

Callers 10

filterMethod · 0.80
process_karboniteMethod · 0.80
get_unitMethod · 0.80
get_unit_mutMethod · 0.80
create_unitMethod · 0.80
process_factoriesMethod · 0.80
process_rocketsMethod · 0.80
are_all_units_deadMethod · 0.80
is_game_overMethod · 0.80
apply_turnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected