Example #1
0
        public PlayerRangePkGrid ClonePkGrid()
        {
            var pkGrid = new PlayerRangePkGrid(Grid.Clone());

            pkGrid.GridPkStatus = new GridPkStatus(Grid.Category);
            if (PlayerRangeGridStatus.RankWiseStatus == PlayerRangeGridStatusEnum.Excluded)
            {
                pkGrid.GridPkStatus.RankWiseStatus = PlayerGridPkStatusEnum.NotAvailable;
            }
            SetToPkGrid(pkGrid);

            return(pkGrid);
        }
Example #2
0
        public VillainPkRange()
        {
            Grids = new PlayerRangePkGrid[13, 13];
            RankEnum[] ranks = new[]
            {
                RankEnum.Ace, RankEnum.King, RankEnum.Queen, RankEnum.Jack, RankEnum.Ten, RankEnum.Nine, RankEnum.Eight,
                RankEnum.Seven, RankEnum.Six, RankEnum.Five, RankEnum.Four, RankEnum.Three, RankEnum.Two
            };

            for (int i = 0; i < 13; i++)
            {
                for (int j = 0; j < 13; j++)
                {
                    var playerRangeGrid = new PlayerRangePkGrid(new RangeGrid(ranks[i], ranks[j], j > i));
                    Grids[i, j] = playerRangeGrid;
                }
            }
        }
Example #3
0
        private void SetToPkGrid(PlayerRangePkGrid pkGrid)
        {
            switch (PlayerRangeGridStatus.Category)
            {
            case GridCategoryEnum.Suited:
                if (PlayerRangeGridStatus.SuitedStatus.HeartStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.SuitedStatus.HeartStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.SuitedStatus.SpadeStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.SuitedStatus.SpadeStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.SuitedStatus.DiamondStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.SuitedStatus.DiamondStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.SuitedStatus.ClubStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.SuitedStatus.ClubStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                break;

            case GridCategoryEnum.Paired:
                if (PlayerRangeGridStatus.PairedStatus.HeartSpadeStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.PairedStatus.HeartSpadeStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.PairedStatus.HeartDiamondStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.PairedStatus.HeartDiamondStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.PairedStatus.HeartClubStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.PairedStatus.HeartClubStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.PairedStatus.SpadeDiamondStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.PairedStatus.SpadeDiamondStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.PairedStatus.SpadeClubStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.PairedStatus.SpadeClubStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.PairedStatus.DiamondClubStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.PairedStatus.DiamondClubStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                break;

            case GridCategoryEnum.Offsuit:
                if (PlayerRangeGridStatus.OffsuitStatus.HeartSpadeStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.HeartSpadeStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.HeartDiamondStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.HeartDiamondStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.HeartClubStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.HeartClubStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.SpadeHeartStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.SpadeHeartStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.SpadeDiamondStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.SpadeDiamondStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.SpadeClubStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.SpadeClubStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.DiamondHeartStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.DiamondHeartStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.DiamondSpadeStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.DiamondSpadeStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.DiamondClubStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.DiamondClubStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.ClubHeartStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.ClubHeartStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.ClubSpadeStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.ClubSpadeStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                if (PlayerRangeGridStatus.OffsuitStatus.ClubDiamondStatus == PlayerRangeGridStatusEnum.Excluded)
                {
                    pkGrid.GridPkStatus.OffsuitStatus.ClubDiamondStatus = PlayerGridPkStatusEnum.NotAvailable;
                }
                break;
            }
        }