Beispiel #1
0
        static void Main(string[] args)
        {
            var Impy = new Goblin(Gender.Male, "Impy");
            var Madeline = new Elf(Gender.Female, "Madeline");
            var Rumbolf = new Dwarf(Gender.Male, "Rumbolf");
            var Walter = new Human(Gender.Male, "Walter");

            var eagle = new Eagle(Gender.Female);
            var eagleWithOneFrozenWing = new Eagle(Gender.Female);
            eagleWithOneFrozenWing.Wings[0].Frozen = true;
            var eagleWithOneWingInBadCondition = new Eagle(Gender.Female);
            eagleWithOneWingInBadCondition.Wings[0].Condition = Condition.Bad;
            var eagleWithTwoWingsInBadCondition = new Eagle(Gender.Male);
            eagleWithTwoWingsInBadCondition.Wings[0].Condition = Condition.Bad;
            eagleWithTwoWingsInBadCondition.Wings[1].Condition = Condition.Unusable;

            var isAbleToFlyTest1 = eagleWithOneFrozenWing.IsAbleToFly;
            var isAbleToFlyTest2 = eagleWithOneWingInBadCondition.IsAbleToFly;
            var isAbleToFlyTest3 = eagleWithTwoWingsInBadCondition.IsAbleToFly;

            var entities = new List<Entity>
            {
                Impy,
                Madeline,
                Rumbolf,
                Walter,
                eagle,
                eagleWithOneFrozenWing,
                eagleWithOneWingInBadCondition,
                eagleWithTwoWingsInBadCondition
            };

            var hp = Walter.Hitpoints;
            var mn = Walter.Mana;

            var s = "";
        }
Beispiel #2
0
 public void SetUp()
 {
     this.HumanTestCharacter = new Human(Gender.Male, "Walter", "Di Nero");
 }