Ejemplo n.º 1
0
 public Rectangle getRight() {
   return new Rectangle((int) x + texture.getWidth() - 4, (int) y + 6, 4, texture.getHeight() - 6);
 }
Ejemplo n.º 2
0
 public Rectangle getTop() {
   return new Rectangle((int) x + 6, (int) y, texture.getWidth() - 6, 4);
 }
Ejemplo n.º 3
0
 public Rectangle getBottom() {
   return new Rectangle((int) x + 6, (int) y + texture.getHeight() - 4, texture.getWidth() - 6, 4);
 }
Ejemplo n.º 4
0
 public Rectangle getBounds() {
   return new Rectangle((int) x, (int) y, texture.getWidth(), texture.getHeight());
 }