public void setx(int x, int y) { if (siguiente != null) { siguiente.setx(this.x, this.y); } this.x = x; this.y = y; }
public void movimiento() { cabeza.setx(cabeza.verx() + xdir, cabeza.very() + ydir); }