コード例 #1
0
        public Warrior() : base("Warrior")
        {
            CharacterAttributes myAttributes = new CharacterAttributes();

            myAttributes._basehealth = 10;
            myAttributes._health     = 10;
            myAttributes._baseEnergy = 25;
            myAttributes._energy     = 25;
            myAttributes._basePower  = 5;
            myAttributes._power      = 5;
            myAttributes.SetIsGoodGuy(true);
            myAttributes.SetActiveAttack(new WarriorAttack1());
        }
コード例 #2
0
        public Gargoyle() : base("Gargoyle")
        {
            CharacterAttributes myAttributes = new CharacterAttributes();

            myAttributes._basehealth = 120;
            myAttributes._health     = 120;
            myAttributes._baseEnergy = 50;
            myAttributes._energy     = 50;
            myAttributes._power      = 1;
            myAttributes._armor      = 1;
            myAttributes.SetIsGoodGuy(false);

            SetAttributes(myAttributes);

            //Add the abilities this concrete GameCharacter has by default
            base.GetAttributes().AddAttack(new GargoyleStare());
            base.GetAttributes().AddDefense(new GargoyleFreeze());
        }
コード例 #3
0
        public LandShark()
            : base("Land Shark")
        {
            CharacterAttributes myAttributes = new CharacterAttributes();

            myAttributes._basehealth = 100;
            myAttributes._health     = 100;
            myAttributes._baseEnergy = 20;
            myAttributes._energy     = 20;
            myAttributes._power      = 1;
            myAttributes._armor      = 1;
            myAttributes.SetIsGoodGuy(false);

            SetAttributes(myAttributes);

            //Add the abilities this concrete GameCharacter has by default
            base.GetAttributes().AddAttack(new LandSharkChomp());
            base.GetAttributes().AddDefense(new LandSharkEvade());
        }
コード例 #4
0
        public Leprachaun()
            : base("Leprachaun")
        {
            CharacterAttributes myAttributes = new CharacterAttributes();

            myAttributes._basehealth = 90;
            myAttributes._health     = 90;
            myAttributes._baseEnergy = 20;
            myAttributes._energy     = 20;
            myAttributes._power      = 1;
            myAttributes._armor      = 1;
            myAttributes.SetIsGoodGuy(false);

            SetAttributes(myAttributes);

            //Add the abilities this concrete GameCharacter has by default
            base.GetAttributes().AddAttack(new LeprachaunThrowGold());
            base.GetAttributes().AddDefense(new LeprachaunDisappear());
        }
コード例 #5
0
        public Warrior() : base("Warrior")
        {
            CharacterAttributes myAttributes = new CharacterAttributes();

            myAttributes._baseXP     = new int[] { 10, 20, 30, 40 };
            myAttributes._basehealth = 100;
            myAttributes._health     = 100;
            myAttributes._baseEnergy = 50;
            myAttributes._energy     = 50;
            myAttributes._power      = 1;
            myAttributes._armor      = 1;
            myAttributes.SetIsGoodGuy(true);

            SetAttributes(myAttributes);

            //Add the abilities this concrete GameCharacter has by default
            base.GetAttributes().AddAttack(new WarriorSlash());
            base.GetAttributes().AddDefense(new WarriorLiftShield());
        }
コード例 #6
0
        public Scout()
            : base("Scout")
        {
            CharacterAttributes myAttributes = new CharacterAttributes();

            myAttributes._baseXP     = new int[] { 10, 20, 30, 40 };
            myAttributes._basehealth = 50;
            myAttributes._health     = 50;
            myAttributes._baseEnergy = 20;
            myAttributes._energy     = 20;
            myAttributes._power      = 1;
            myAttributes._armor      = 1;
            myAttributes.SetIsGoodGuy(true);

            SetAttributes(myAttributes);

            //Add the abilities this concrete GameCharacter has by default
            base.GetAttributes().AddAttack(new ScoutShootPlainArrow());
            base.GetAttributes().AddDefense(new ScoutRoll());
        }
コード例 #7
0
        public Mage()
            : base("Mage")
        {
            CharacterAttributes myAttributes = new CharacterAttributes();

            myAttributes._baseXP     = new int[] { 10, 20, 30, 40 };
            myAttributes._basehealth = 100;
            myAttributes._health     = 100;
            myAttributes._baseEnergy = 50;
            myAttributes._energy     = 50;
            myAttributes._power      = 1;
            myAttributes._armor      = 1;
            myAttributes.SetIsGoodGuy(true);

            SetAttributes(myAttributes);

            //Add the abilities this concrete GameCharacter has by default
            base.GetAttributes().AddAttack(new MageShootLightning());
            base.GetAttributes().AddDefense(new MageCastShield());
        }