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

Method first_array

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

Get the most recent version of this planet's team array.

(&self, planet: Planet)

Source from the content-addressed store, hash-verified

74
75 /// Get the most recent version of this planet's team array.
76 pub fn first_array(&self, planet: Planet) -> &TeamArray {
77 self.get_arrays(planet).front().unwrap()
78 }
79
80 /// Get the oldest version of this planet's team array.
81 pub fn last_array(&self, planet: Planet) -> &TeamArray {

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