Beispiel #1
0
        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;
 }
Beispiel #3
0
 public CPassTurn(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
 public CBoardState(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
 public CListLobbies(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
Beispiel #6
0
 public CLeaveLobby(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
 public CListGames(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
 public CStartGame(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
Beispiel #9
0
 public CFindUser(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
Beispiel #10
0
 public CGetPieceInfo(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
 public CGetLobby(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
 public CCreateUser(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
Beispiel #13
0
 public CGetTurnInfo(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
 public CGetPlayerReady(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
Beispiel #15
0
 public CSlotUser(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
Beispiel #16
0
 public CJoinLobby(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
Beispiel #17
0
 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;
 }
Beispiel #22
0
 public CMovePiece(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }
Beispiel #23
0
 public CListUsers(ILudoService ludoService)
 {
     this.ludoService = ludoService;
 }