Exemple #1
0
 void updateLocation(int id, double x, double y, double t)
 {
     ObjectLocation location = null;
     if (this.objectLocations.ContainsKey(id))
     {
         location = this.objectLocations[id];
         location.Id = id;
         location.X = x;
         location.Y = y;
         location.T = t;
     }
     else
     {
         location = new ObjectLocation(id, x, y, t);
         this.objectLocations.Add(id, location);
     }
 }
Exemple #2
0
 public ObjectLocationQueryReplyField(int obj, ObjectLocation l)
 {
     this.obj = obj;
     if(l!=null)
         this.location = new ObjectLocation(l.Id,l.X, l.Y, l.T);
 }