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

Method start_game

battlecode-engine/src/controller/mod.rs:1112–1116  ·  view source on GitHub ↗

Get the first message to send to each player and initialize the world. DO NOT CALL THIS FUNCTION UNLESS YOU ARE THE MANAGER!

(&self, player: Player)

Source from the content-addressed store, hash-verified

1110 ///
1111 /// DO NOT CALL THIS FUNCTION UNLESS YOU ARE THE MANAGER!
1112 pub fn start_game(&self, player: Player) -> StartGameMessage {
1113 StartGameMessage {
1114 world: self.world.cached_world(player).clone(),
1115 }
1116 }
1117
1118 /// Given a TurnMessage from a player, apply those changes.
1119 /// Receives the StartTurnMessage for the next player.

Callers 2

run_game_ansiFunction · 0.45
test_turnFunction · 0.45

Calls 2

cloneMethod · 0.80
cached_worldMethod · 0.80

Tested by 1

test_turnFunction · 0.36