示例#1
0
  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);
  }
示例#2
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);
    }
示例#3
0
  public void placeJewelHere(double mouseXini, double mouseYini) {

    ThingCreator tc = new ThingCreator(e);
    jewel = tc.createThing(Constants.categoryJEWEL, x, y);
  }