Esempio n. 1
0
        public void SetActiveAbility(string s)
        {
            switch (s)
            {
            case "1":
                this.activeAbility = ActiveAbilityEnum.FirstAbility;
                break;

            case "2":
                this.activeAbility = ActiveAbilityEnum.SecondAbility;
                break;

            case "3":
                throw new NotImplementedException();

            default:
                throw new ArgumentException("No such ability!");
            }
        }
Esempio n. 2
0
 protected CharacterUnit(int x, int y, int sizeX, int sizeY, int currentHp, int maxHp,
                         int attackPoints, int defensePoints, int movementSpeed, SpriteType spriteType)
     : base(x, y, sizeX, sizeY, currentHp, maxHp, attackPoints, defensePoints, movementSpeed, spriteType)
 {
     this.activeAbility = ActiveAbilityEnum.FirstAbility;
 }