MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / get_arrays

Method get_arrays

battlecode-engine/src/team_array.rs:39–45  ·  view source on GitHub ↗
(&self, planet: Planet)

Source from the content-addressed store, hash-verified

37 }
38
39 fn get_arrays(&self, planet: Planet) -> &VecDeque<TeamArray> {
40 if let Some(array) = self.history.get(&planet) {
41 array
42 } else {
43 unreachable!();
44 }
45 }
46
47 fn get_arrays_mut(&mut self, planet: Planet) -> &mut VecDeque<TeamArray> {
48 if let Some(array) = self.history.get_mut(&planet) {

Callers 4

filterMethod · 0.80
first_arrayMethod · 0.80
last_arrayMethod · 0.80
end_roundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected