public ShipElement(ShipMap map, int width, int height) { if (map == null) { throw (new Exception("Can't create ShipElement without ShipMap")); } Map = map; _Width = width; _Height = height; }
public Form1() { InitializeComponent(); int width = 50; int heigth = 100; Map = new ShipMap.ShipMap(width, heigth); shipMap.ColumnCount = width; shipMap.Rows.Add(heigth); }
public Tile(ShipMap map) : base(map, 1, 1) { }
public AirGenerator(ShipMap map) : base(map, 8, 4) { Ports.Add(new AirPipePort(new Point(0, 0))); Ports.Add(new CablePort(new Point(1, 0))); }
public Ventipane(ShipMap map) : base(map, 1, 1) { Ports.Add(new AirPipePort(new Point(0, 0))); }
public DeckObject(ShipMap map, int width, int height) : base(map, width, height) { Ports = new List <Port>(); }
public AirPipe(ShipMap map) : base(map) { }
public Cable(ShipMap map) : base(map) { }
public Communication(ShipMap map) : base(map, 1, 1) { }
public FloorTile(ShipMap map) : base(map, 1, 1) { }