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!"); } }
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; }