Ejemplo n.º 1
0
 /**
  * Positioniere Sprite an Position lastPos
  *
  * @param lastPos
  */
 public void setLocation(Point lastPos) {
   sprite.setLocation(lastPos);
 }
Ejemplo n.º 2
0
 /**
  * Positioniere Sprite an Position (x,y)
  *
  * @param x
  * @param y
  */
 public void setLocation(int x, int y) {
   if (sprite != null) sprite.setLocation(x, y);
   this.x = x;
   this.y = y;
 }