Beispiel #1
0
 public bool itsInside(avatar av) //et diu si un avatar esta dins d'aquest obstacle
 {
     if ((av.posx <= this.posx + size / 2) && (av.posx >= this.posx - size / 2) && (av.posy <= this.posy + size / 2) && (av.posy >= this.posy - size / 2))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public void AddFlightPlan(avatar avatar)
 {
     this.lista_avatars.Add(avatar);
 }