// DrJava saved history v2 Maze m = MazeGenerator.makeSimpleMaze();//End of Interaction// Room r = m.getStartingRoom();//End of Interaction// Coin c = new Coin();//End of Interaction// Vending v = new Vending(1, 2);//End of Interaction// r.addThing(c);//End of Interaction// r.addThing(v);//End of Interaction// c//End of Interaction// v//End of Interaction// r//End of Interaction// c.useItem()//End of Interaction// v.useItem()//End of Interaction// c.useItem(v, ThingType.POTION, 2)//End of Interaction// Item potion = r.findThing(ThingType.POTION, 0)//End of Interaction// potion.useItem()//End of Interaction// r//End of Interaction// Coin c2 = new Coin();//End of Interaction// r.addThing(c2);//End of Interaction// c2.useItem(v, ThingType.BEER, 3)//End of Interaction// c2.getContainer()//End of Interaction// Item beer = r.findThing(ThingType.BEER, 0)//End of Interaction// beer.useItem()//End of Interaction// beer.getContainer()//End of Interaction//