Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Facade the SDK's GameManager out
[troll.git]
/
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
(file)
--- 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);
}
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();
void victory() {
gameManager.addToGameSummary(GameManager.formatSuccessMessage(nicknameToken + " wins."));
View.this.endgameFrame();
@@
-274,6
+278,8
@@
class View {
void init(Model m) {
model = m;
void init(Model m) {
model = m;
+
+ gameManager.setFrameDuration(2000);
drawBackground();
/*
drawBackground();
/*