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

Method id

battlecode-engine/src/unit.rs:346–348  ·  view source on GitHub ↗

The unique ID of a unit.

(&self)

Source from the content-addressed store, hash-verified

344
345 /// The unique ID of a unit.
346 pub fn id(&self) -> UnitID {
347 self.id
348 }
349
350 /// The team the unit belongs to.
351 pub fn team(&self) -> Team {

Callers 10

mainMethod · 0.95
mainMethod · 0.95
insert_unitMethod · 0.80
process_rangersMethod · 0.80
process_factoriesMethod · 0.80
get_viewer_unitsMethod · 0.80
start_turnMethod · 0.80
test_replicateFunction · 0.80
test_rocketsFunction · 0.80
examplefuncsplayerFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_replicateFunction · 0.64
test_rocketsFunction · 0.64