Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Randomize defeated avatar rotation direction
[troll.git]
/
src
/
main
/
java
/
com
/
codingame
/
game
/
Referee.java
diff --git
a/src/main/java/com/codingame/game/Referee.java
b/src/main/java/com/codingame/game/Referee.java
index
b56cade
..
166344b
100644
(file)
--- a/
src/main/java/com/codingame/game/Referee.java
+++ b/
src/main/java/com/codingame/game/Referee.java
@@
-35,6
+35,7
@@
public class Referee extends AbstractReferee {
}
view.init(model);
}
view.init(model);
+
gameManager.getPlayer(0).view = view.p0;
gameManager.getPlayer(1).view = view.p1;
gameManager.getPlayer(0).view = view.p0;
gameManager.getPlayer(1).view = view.p1;
@@
-45,6
+46,8
@@
public class Referee extends AbstractReferee {
public void gameTurn(int turn) {
// System.err.println("Starting turn " + turn);
public void gameTurn(int turn) {
// System.err.println("Starting turn " + turn);
+ view.startTurn();
+
boolean disqual = false;
boolean victory = false;
boolean exhausted = false;
boolean disqual = false;
boolean victory = false;
boolean exhausted = false;
@@
-61,6
+64,8
@@
public class Referee extends AbstractReferee {
player.execute();
}
player.execute();
}
+ // SDK @#%^&! arbitrary sequence point: last input < first output
+
for (Player player : gameManager.getActivePlayers()) {
Model.Player p = player.model;
for (Player player : gameManager.getActivePlayers()) {
Model.Player p = player.model;
@@
-87,6
+92,7
@@
public class Referee extends AbstractReferee {
}
else if (stones > 0) {
player.view.animateStones(stones);
}
else if (stones > 0) {
player.view.animateStones(stones);
+ player.view.updateStoneCounter();
}
}
catch (InvalidAction e) {
}
}
catch (InvalidAction e) {