class PartA { public static void main(String[] args) { Dragon puff = new Dragon("purple"); Dragon d1; Monster m1, wyrm = new Monster(30,40,2); Being fred = new Being(14,25); Weapon excalibur = new Weapon("sword",50); Weapon w1 = new Weapon("sword",20), w2 = new Weapon("spear",30); Hero h1 = new Hero(50,100,200,"Arthur",excalibur); Hero h2 = new Hero(30,200,150,"Merlin"); Hero h3; System.out.println("Part a)"); System.out.println(excalibur); System.out.println("Part b)"); System.out.println(puff); System.out.println("Part c)"); System.out.println(h1); System.out.println("Part d)"); m1 = new Dragon("blue"); System.out.println(m1); System.out.println("Part e)"); h1.pickUp(w2); System.out.println(h1); System.out.println("Part f)"); h3=h2; h2 = new Hero(70,100,100,"Percival"); h2.pickUp(w2); System.out.println(h3); System.out.println("Part g)"); System.out.println(fred.morale()); System.out.println("Part h)"); wyrm.attack(fred); System.out.println(fred.morale()); System.out.println("Part i)"); m1=wyrm; Being wilma = new Being(12,20); h1.attack(m1,w1); wyrm.attack(wilma); System.out.println(wilma.morale()); System.out.println("Part j)"); d1 = new Dragon("red"); h3 = new Hero(40,50,70,"Bedivere"); d1.attack(h3); System.out.println(h3.morale()); } }