Beispiel #1
0
        public static IWeapon CreateSword(Vector2 worldIndex, World world)
        {
            IUseStrategy useStrategy = new StandardEquipWeaponStrategy();
            IGetStrategy getStrategy = new StandardGetStrategy();
            IGiveStrategy giveStrategy = new StandardGiveStrategy();
            List<IAttackStrategy> attacks = new List<IAttackStrategy>();
            attacks.Add(new PhysicalAttack(1, 6, 90));

            return new Weapon("Sword",
                worldIndex,
                world,
                useStrategy,
                getStrategy,
                giveStrategy,
                attacks,
                1);
        }
Beispiel #2
0
        public static IWeapon CreateBow(Vector2 worldIndex, World world)
        {
            IUseStrategy useStrategy = new StandardEquipWeaponStrategy();
            IGetStrategy getStrategy = new StandardGetStrategy();
            IGiveStrategy giveStrategy = new StandardGiveStrategy();
            List<IAttackStrategy> attacks = new List<IAttackStrategy>();
            attacks.Add(new ProjectileAttackStrategy(1, 3, 75));

            return new Weapon("Fire Bow",
                worldIndex,
                world,
                useStrategy,
                getStrategy,
                giveStrategy,
                attacks,
                10);
        }
Beispiel #3
0
        public static IWeapon CreateGiantAxe(Vector2 worldIndex, World world)
        {
            IUseStrategy useStrategy = new StandardEquipWeaponStrategy();
            IGetStrategy getStrategy = new StandardGetStrategy();
            IGiveStrategy giveStrategy = new StandardGiveStrategy();
            List<IAttackStrategy> attacks = new List<IAttackStrategy>();
            attacks.Add(new PhysicalAttack(1, 6, 90));
            attacks.Add(new ApplyTemporaryEffectToAttacker(new Creatures.Temporary_Effects.ReducedVisionTemporaryEffect(18, 1)));

            return new Weapon("Giant Axe Of Blinding Rage",
                worldIndex,
                world,
                useStrategy,
                getStrategy,
                giveStrategy,
                attacks,
                1);
        }