public BunkerPosition(Bunker bunker, int x, int y, int r) { this.bunker = bunker; this.x = x; this.y = y; this.r = r; }
public virtual void AddBunker(Bunker bunker, int x, int y, int r) { if (this.field == null) { throw new Exception("First select a field"); } if (x > this.field.Width || y > this.field.Height) { //TODO: Hacer que reconozca la escala a la que habria que bajar las posiciones throw new Exception("The bunker is out of the field"); } this.bunkerPositions.Add(new BunkerPosition(bunker, x, y, r)); }
public virtual void AddBunker(Bunker bunker, int x, int y, int r) { this.bunkerPositions.Add(new BunkerPosition(bunker, x, y, r)); }