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