Esempio n. 1
0
 public void action() {
   MouseInfo mouse = Greenfoot.getMouseInfo();
   if (!clickingInventory()) {
     if (mouse != null) {
       if (mouse.getButton() == 1) {
         toolbar.action(getX(), getY());
       }
       if (mouse.getButton() == 3) {
         toolbar.altAction(getX(), getY());
       }
     }
   }
 }
Esempio n. 2
0
 public void changeAction(int action) {
   toolbar.changeAction(action);
 }
Esempio n. 3
0
 public void setID(int newID) {
   toolbar.setID(newID);
 }