Exemple #1
0
        public bool Play(HeroActionType action) // TEST изиграваме хода и определяме какъв е резултата
        {
            bool success = true;

            switch (action)
            {
            case HeroActionType.Fight:
                success = MyHero.Fight(Opponent as Enemy);
                break;

            case HeroActionType.Deal:
                success = MyHero.Deal(Opponent as Helper);
                break;
            }
            return(success);
        }