Example #1
0
        public static SelectModeType Mirror(this SelectModeType selectMode)
        {
            switch (selectMode)
            {
            case SelectModeType.All:
                return(SelectModeType.All);

            case SelectModeType.AllHand:
                return(SelectModeType.AllHand);

            case SelectModeType.AllRow:
                return(SelectModeType.AllRow);

            case SelectModeType.Enemy:
                return(SelectModeType.My);

            case SelectModeType.EnemyHand:
                return(SelectModeType.MyHand);

            case SelectModeType.EnemyRow:
                return(SelectModeType.MyRow);

            case SelectModeType.My:
                return(SelectModeType.Enemy);

            case SelectModeType.MyHand:
                return(SelectModeType.EnemyHand);

            case SelectModeType.MyRow:
                return(SelectModeType.EnemyRow);

            default:
                return(SelectModeType.All);
            }
        }
        public static bool IsHaveRow(this SelectModeType type)
        {
            switch (type)
            {
            case SelectModeType.All:
                return(true);

            case SelectModeType.AllRow:
                return(true);

            case SelectModeType.My:
                return(true);

            case SelectModeType.MyRow:
                return(true);

            case SelectModeType.Enemy:
                return(true);

            case SelectModeType.EnemyRow:
                return(true);

            default:
                return(false);
            }
        }
Example #3
0
        public bool OrderSelect(int index, SelectType select, SelectModeType pool)
        {
            AsyncCommand aCmd = new AsyncCommand(Commands.OrderSelect,
                                                 new object[] { index, select, pool });

            ExecuteCommand(aCmd);
            return((bool)aCmd.Result);
        }
Example #4
0
 public bool OrderSelect(int index, SelectType select, SelectModeType pool)
 {
     throw new NotImplementedException();
 }
Example #5
0
 public static Task <IList <GameCard> > GetSelectPlanceCards(this GameCard card, Func <GameCard, bool> filter = null, SelectModeType selectMode = SelectModeType.AllRow, bool isEnemySwitch = false, CardType selectType = CardType.Unit, int count = 1, int range = 0, bool isHasConceal = false)
 {
     return(card.Game.GetSelectPlaceCards(card, count, isEnemySwitch, filter, selectMode, selectType, range, isHasConceal));
 }