1 package com.codingame.game;
3 import com.codingame.gameengine.core.MultiplayerGameManager;
4 import com.codingame.gameengine.core.AbstractMultiplayerPlayer;
5 import com.google.inject.Inject;
6 import com.google.inject.Singleton;
16 CheatLevel cheatLevel;
19 LeagueManager(MultiplayerGameManager<AbstractMultiplayerPlayer> gameManager)
21 int level = gameManager.getLeagueLevel();
22 cheatLevel = level <= 1 ? CheatLevel.ALLOWED
23 : level <= 2 ? CheatLevel.TOLERATED
24 : CheatLevel.FORBIDDEN;