Ejemplo n.º 1
0
 /// <summary>
 /// Copy constructor used to place independent objects on the grid
 /// </summary>
 /// <param name="obj"></param>
 public AnnoObject(AnnoObject obj)
 {
     Size = obj.Size;
     Color = obj.Color;
     Position = obj.Position;
     Label = obj.Label;
     Icon = obj.Icon;
     Radius = obj.Radius;
     Borderless = obj.Borderless;
     Road = obj.Road;
     // note: this is not really a copy, just a reference, but it is not supposed to change anyway
     //BuildCosts = obj.BuildCosts;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Copy constructor used to place independent objects on the grid
 /// </summary>
 /// <param name="obj"></param>
 public AnnoObject(AnnoObject obj)
 {
     Size       = obj.Size;
     Color      = obj.Color;
     Position   = obj.Position;
     Label      = obj.Label;
     Icon       = obj.Icon;
     Radius     = obj.Radius;
     Borderless = obj.Borderless;
     Road       = obj.Road;
     // note: this is not really a copy, just a reference, but it is not supposed to change anyway
     //BuildCosts = obj.BuildCosts;
 }