Esempio n. 1
0
 // SETTERS
 public void setBody(ColorRect body) {
   if (this.body != null) {
     if (body.getColor() == null) {
       body.setColor(this.body.getColor());
     }
   }
   this.body = body;
   this.sizeXMAX = this.body.getSizeX();
 }
Esempio n. 2
0
 @Override
 public void draw(Graphics g, ColorRect body) {
   if (body.getMinX() != -1) {
     if (this.body != null && body.getColor() == null) {
       body.setColor(this.body.getColor());
     }
     body.draw(g);
     if (this.animatorController != null && this.animatorController.isPrintable()) {
       Pair<Float, Float> position = this.getChoicePosition(body);
       g.drawAnimation(
           this.animatorController.currentAnimation(), position.getV1(), position.getV2());
     }
   }
 }