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);
        }
        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);
        }
        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);
        }
 public ApplyTemporaryEffectGetStrategy(ITemporaryEffect effect)
 {
     _effect = effect;
     _standardGet = new StandardGetStrategy();
 }
Exemple #5
0
 public ApplyTemporaryEffectGetStrategy(ITemporaryEffect effect)
 {
     _effect      = effect;
     _standardGet = new StandardGetStrategy();
 }