Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX: IT belongs in a MODEL!
[troll.git]
/
src
/
main
/
java
/
com
/
codingame
/
game
/
LeagueManager.java
diff --git
a/src/main/java/com/codingame/game/LeagueManager.java
b/src/main/java/com/codingame/game/LeagueManager.java
index
fe2187c
..
78f15f1
100644
(file)
--- a/
src/main/java/com/codingame/game/LeagueManager.java
+++ b/
src/main/java/com/codingame/game/LeagueManager.java
@@
-21,6
+21,9
@@
class LeagueManager {
}
MapLevel mapLevel;
}
MapLevel mapLevel;
+ enum FixLevel { SOMETIMES, NEVER }
+ FixLevel fixLevel;
+
@Inject
LeagueManager(MultiplayerGameManager<AbstractMultiplayerPlayer> gameManager)
{
@Inject
LeagueManager(MultiplayerGameManager<AbstractMultiplayerPlayer> gameManager)
{
@@
-37,5
+40,6
@@
class LeagueManager {
: level <= 2 ? MapLevel.DISCRETE
: MapLevel.CONTINUOUS;
: level <= 2 ? MapLevel.DISCRETE
: MapLevel.CONTINUOUS;
+ fixLevel = level <= 1 ? FixLevel.SOMETIMES : FixLevel.NEVER;
}
}
}
}