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

Method location

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

The location of the unit.

(&self)

Source from the content-addressed store, hash-verified

364
365 /// The location of the unit.
366 pub fn location(&self) -> Location {
367 self.location
368 }
369
370 /// The current health.
371 pub fn health(&self) -> u32 {

Callers 15

filterMethod · 0.80
place_unitMethod · 0.80
remove_unitMethod · 0.80
insert_unitMethod · 0.80
destroy_unitMethod · 0.80
ok_if_can_moveMethod · 0.80
move_robotMethod · 0.80
ok_if_can_attackMethod · 0.80
attackMethod · 0.80
ok_if_can_harvestMethod · 0.80
harvestMethod · 0.80
ok_if_can_blueprintMethod · 0.80

Calls

no outgoing calls

Tested by 1

parse_bananasFunction · 0.64