예제 #1
0
파일: Game.cs 프로젝트: ITCareer-Lom/code
        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);
        }