Example #1
0
        public void mover(int x, int y)
        {
            if (next != null)
            {
                next.mover(this.x, this.y);
            }

            this.x = x;
            this.y = y;
        }
Example #2
0
 public void movimientos()
 {
     head.mover(head.getx() + direcx, head.gety() + direcy);
 }