Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
main
Method · 0.95
main
Method · 0.95
insert_unit
Method · 0.80
process_rangers
Method · 0.80
process_factories
Method · 0.80
get_viewer_units
Method · 0.80
start_turn
Method · 0.80
test_replicate
Function · 0.80
test_rockets
Function · 0.80
examplefuncsplayer
Function · 0.80
Calls
no outgoing calls
Tested by
2
test_replicate
Function · 0.64
test_rockets
Function · 0.64