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

Method last_array

battlecode-engine/src/team_array.rs:81–83  ·  view source on GitHub ↗

Get the oldest version of this planet's team array.

(&self, planet: Planet)

Source from the content-addressed store, hash-verified

79
80 /// Get the oldest version of this planet's team array.
81 pub fn last_array(&self, planet: Planet) -> &TeamArray {
82 self.get_arrays(planet).back().unwrap()
83 }
84
85 /// Writes the value at the index of this planet's team array.
86 ///

Callers 3

test_array_readFunction · 0.80
test_array_writeFunction · 0.80
get_team_arrayMethod · 0.80

Calls 1

get_arraysMethod · 0.80

Tested by 2

test_array_readFunction · 0.64
test_array_writeFunction · 0.64