コード例 #1
0
ファイル: EditFoodFrame.java プロジェクト: CST-Group/ws3d
  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
ファイル: EditFoodFrame.java プロジェクト: CST-Group/ws3d
    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
ファイル: EditFoodFrame.java プロジェクト: CST-Group/ws3d
  public void placeJewelHere(double mouseXini, double mouseYini) {

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