package bridge; public class Bridge { private FlyingEnchantment flyingEnchantment; private SoulEatingEnchantment soulEatingEnchantment; private Hammer hammer; private Sword sword; public Bridge() { flyingEnchantment = new FlyingEnchantment(); soulEatingEnchantment = new SoulEatingEnchantment(); hammer = new Hammer(flyingEnchantment,soulEatingEnchantment); sword = new Sword(soulEatingEnchantment,flyingEnchantment); } public String getSword() { return sword.getValue(); } public String getHammer() { return hammer.getValue(); } public String getSoulEatingEnchantment() { return soulEatingEnchantment.getValue(); } public String getFlyingEnchantment() { return flyingEnchantment.getValue(); } }