Esempio n. 1
0
 public GetGameCheat(GameCheat gameCheat)
 {
     CheatCallSuccessful = gameCheat.CheatCallSuccessful;
     CheatCaller         = new GetGameUser(gameCheat.CheatCaller);
     LastClaimUser       = new GetGameUser(gameCheat.LastClaimUser);
     PreCheatClaims      = gameCheat.PreCheatClaims.ApiGetGameClaims();
 }
Esempio n. 2
0
        public GetGameState(GameState gameState)
        {
            UserTurn = new GetGameUser(gameState.UserTurn);
            Hand     = gameState.User.Hand.ApiGetGameCard();
            Players  = gameState.Players.ApiGetGameUsers();
            Claims   = gameState.Claims.ApiGetGameClaims();

            LowerBoundRank  = gameState.LowerBoundRank;
            UpperBoundRank  = gameState.UpperBoundRank;
            MiddleBoundRank = gameState.MiddleBoundRank;

            CurrentGamePhase         = (int)gameState.CurrentGamePhase;
            TurnPhaseDuration        = gameState.TurnPhaseDuration;
            CallPhaseDuration        = gameState.CallPhaseDuration;
            PreparationPhaseDuration = gameState.PreparationPhaseDuration;

            ActionHistory = gameState.ActionHistory;
        }
Esempio n. 3
0
 public GetGameClaim(GameClaim gameClaim)
 {
     Claims    = gameClaim.Claims.ApiGetGameCard();
     Actual    = gameClaim.Actual.ApiGetGameCard();
     ClaimUser = new GetGameUser(gameClaim.ClaimUser);
 }