X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/9656502aaa68fb88bfc0664b0d60e8ed25a9acb0..HEAD:/src/main/java/com/codingame/game/View.java?ds=sidebyside 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(); /*