public void mover(int x, int y) { if (next != null) { next.mover(this.x, this.y); } this.x = x; this.y = y; }
public void movimientos() { head.mover(head.getx() + direcx, head.gety() + direcy); }