public static Error GetIngame(this ILudoService service, string gameId, out IngamePhase ingame) { ingame = null; var g = service.Games.TryGet(Id.Partial(gameId)); if (g == null) { return(Error.Codes.E01GameNotFound); } ingame = g.Phase.Ingame; return(ingame == null ? Error.Codes.E07NotInGamePhase : Error.Codes.E00NoError); }
public LobbyGameController( ILudoService ludoService, IIsKnown isKnown, IGetLobby getLobby, IJoinLobby joinLobby, IStartGame startGame, ILeaveLobby leaveLobby, IGetPlayerReady getPlayerReady, ISlotUser slotUser) { this.ludoService = ludoService; this.isKnown = isKnown; this.getLobby = getLobby; this.joinLobby = joinLobby; this.startGame = startGame; this.leaveLobby = leaveLobby; this.getPlayerReady = getPlayerReady; this.slotUser = slotUser; }
public CPassTurn(ILudoService ludoService) { this.ludoService = ludoService; }
public CBoardState(ILudoService ludoService) { this.ludoService = ludoService; }
public CListLobbies(ILudoService ludoService) { this.ludoService = ludoService; }
public CLeaveLobby(ILudoService ludoService) { this.ludoService = ludoService; }
public CListGames(ILudoService ludoService) { this.ludoService = ludoService; }
public CStartGame(ILudoService ludoService) { this.ludoService = ludoService; }
public CFindUser(ILudoService ludoService) { this.ludoService = ludoService; }
public CGetPieceInfo(ILudoService ludoService) { this.ludoService = ludoService; }
public CGetLobby(ILudoService ludoService) { this.ludoService = ludoService; }
public CCreateUser(ILudoService ludoService) { this.ludoService = ludoService; }
public CGetTurnInfo(ILudoService ludoService) { this.ludoService = ludoService; }
public CGetPlayerReady(ILudoService ludoService) { this.ludoService = ludoService; }
public CSlotUser(ILudoService ludoService) { this.ludoService = ludoService; }
public CJoinLobby(ILudoService ludoService) { this.ludoService = ludoService; }
public CIsKnown(ILudoService ludoService) { this.ludoService = ludoService; }
public CCreateLobby(ILudoService ludoService) { this.ludoService = ludoService; }
public CConcede(ILudoService ludoService) { this.ludoService = ludoService; }
public LudoController(ILudoService ludoService) { }
public CGetCurrent(ILudoService ludoService) { this.ludoService = ludoService; }
public CMovePiece(ILudoService ludoService) { this.ludoService = ludoService; }
public CListUsers(ILudoService ludoService) { this.ludoService = ludoService; }