Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/battlecode/battlecode-2018
/ planet
Method
planet
battlecode-engine/src/world.rs:406–408 ·
view source on GitHub ↗
The current planet.
(&self)
Source
from the content-addressed store, hash-verified
404
405
/// The current planet.
406
pub fn planet(&self) -> Planet {
407
self.player_to_move.planet
408
}
409
410
/// The team whose turn it is.
411
pub fn team(&self) -> Team {
Callers
9
ok_if_can_sense_location
Method · 0.45
get_team_array
Method · 0.45
write_team_array
Method · 0.45
my_planet
Method · 0.45
my_planet_mut
Method · 0.45
ok_if_can_begin_snipe
Method · 0.45
ok_if_can_launch_rocket
Method · 0.45
end_turn
Method · 0.45
start_turn
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected