예제 #1
0
 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;
 }
예제 #2
0
        public Form1()
        {
            InitializeComponent();

            int width  = 50;
            int heigth = 100;

            Map = new ShipMap.ShipMap(width, heigth);
            shipMap.ColumnCount = width;
            shipMap.Rows.Add(heigth);
        }
예제 #3
0
 public Tile(ShipMap map) : base(map, 1, 1)
 {
 }
예제 #4
0
 public AirGenerator(ShipMap map) : base(map, 8, 4)
 {
     Ports.Add(new AirPipePort(new Point(0, 0)));
     Ports.Add(new CablePort(new Point(1, 0)));
 }
예제 #5
0
 public Ventipane(ShipMap map) : base(map, 1, 1)
 {
     Ports.Add(new AirPipePort(new Point(0, 0)));
 }
예제 #6
0
 public DeckObject(ShipMap map, int width, int height) : base(map, width, height)
 {
     Ports = new List <Port>();
 }
예제 #7
0
 public AirPipe(ShipMap map) : base(map)
 {
 }
예제 #8
0
파일: Cable.cs 프로젝트: palich12/Covenant
 public Cable(ShipMap map) : base(map)
 {
 }
예제 #9
0
 public Communication(ShipMap map) : base(map, 1, 1)
 {
 }
예제 #10
0
 public FloorTile(ShipMap map) : base(map, 1, 1)
 {
 }