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