Пример #1
0
 public Avacado(float x, float y, float width, float height, int roomId) {
   super(x, y, width, height);
   avacadosMade++;
   this.id = avacadosMade;
   this.roomId = roomId;
   interactDistance = 80;
   AvacadoManager.get().addAvacadoToWorld(this);
   // add this avacado to the world
   collected = false;
 }
Пример #2
0
 @Override
 public void interact(GameObject instance) {
   AvacadoManager.get().pickUpAvacado(this);
 }