public void actionPerformed(ActionEvent ev) { ThingCreator tc = new ThingCreator(e); if (e.nonPerishableFood.equals(ev.getActionCommand())) { food = tc.createThing(Constants.categoryNPFOOD, x, y); PFoodRadio.setEnabled(false); } else { // perishable food food = tc.createThing(Constants.categoryPFOOD, x, y); NPFoodRadio.setEnabled(false); } newCreatureButton.setEnabled(false); newJewelButton.setEnabled(false); setFood(food); }
public void placeJewelHere(double mouseXini, double mouseYini) { ThingCreator tc = new ThingCreator(e); jewel = tc.createThing(Constants.categoryJEWEL, x, y); }