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

Method end_turn

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

Ends the current turn. Returns the list of changes made in this turn. Mainly for testing purposes; use next_turn().

(&mut self)

Source from the content-addressed store, hash-verified

239 /// Ends the current turn. Returns the list of changes made in this turn.
240 /// Mainly for testing purposes; use next_turn().
241 fn end_turn(&mut self) -> TurnMessage {
242 self.world.flush_viewer_changes();
243 self.turn.clone()
244 }
245
246 // ************************************************************************
247 // ************************** GENERAL METHODS *****************************

Callers 2

run_game_ansiFunction · 0.45
test_turnFunction · 0.45

Calls 2

flush_viewer_changesMethod · 0.80
cloneMethod · 0.80

Tested by 1

test_turnFunction · 0.36