X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/1b8132031651654d02bd60fd5dc3a6fd1b724236..2032e4c0fbf3f7a170640aecdf41698f85dd9753:/src/main/java/com/codingame/game/View.java diff --git a/src/main/java/com/codingame/game/View.java b/src/main/java/com/codingame/game/View.java index 40aae3d..cdc4428 100644 --- a/src/main/java/com/codingame/game/View.java +++ b/src/main/java/com/codingame/game/View.java @@ -153,6 +153,10 @@ class View { graphicEntityModule.commitEntityState(0.0, stoneReminder); } + void disqualify(String message) { + gameManager.addToGameSummary(GameManager.formatErrorMessage(nicknameToken + " " + message)); + } + void victory() { gameManager.addToGameSummary(GameManager.formatSuccessMessage(nicknameToken + " wins.")); View.this.endgameFrame(); @@ -274,6 +278,8 @@ class View { void init(Model m) { model = m; + + gameManager.setFrameDuration(2000); drawBackground(); /*