Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
filter
Method · 0.80
place_unit
Method · 0.80
remove_unit
Method · 0.80
insert_unit
Method · 0.80
destroy_unit
Method · 0.80
ok_if_can_move
Method · 0.80
move_robot
Method · 0.80
ok_if_can_attack
Method · 0.80
attack
Method · 0.80
ok_if_can_harvest
Method · 0.80
harvest
Method · 0.80
ok_if_can_blueprint
Method · 0.80
Calls
no outgoing calls
Tested by
1
parse_bananas
Function · 0.64