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

Method cached_world

battlecode-engine/src/world.rs:2033–2039  ·  view source on GitHub ↗
(&self, player: Player)

Source from the content-addressed store, hash-verified

2031 // ************************************************************************
2032
2033 pub(crate) fn cached_world(&self, player: Player) -> &GameWorld {
2034 if let Some(world) = self.cached_world.get(&player) {
2035 world
2036 } else {
2037 unreachable!();
2038 }
2039 }
2040
2041 pub(crate) fn initial_start_turn_message(&self, time_left_ms: i32) -> StartTurnMessage {
2042 let initial_player = Player::first_to_move();

Callers 5

test_end_turn_trivialFunction · 0.80
test_filter_visibilityFunction · 0.80
start_gameMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_end_turn_trivialFunction · 0.64
test_filter_visibilityFunction · 0.64