public void placeCreatureHere(double mouseXini, double mouseYini) { /** * Note that through the edit window the motor system of the robot is always a differential * steering approach. */ ThingCreator tc = new ThingCreator(e); tc.createCreature(true, mouseXini, mouseYini, 0); }
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); }