Beispiel #1
0
        public Ship(int field_w, int field_h)
        {
            InitShip(field_w, field_h);

            bf = Battlefield.Instance;
            su = Submarine.Instance;
            _instance = this;
        }
 public MainWindow()
 {
     InitializeComponent();
     bf = new Battlefield();
     bf = Battlefield.Instance;
     su = Submarine.Instance;
     sh = Ship.Instance;
     buttons = new Button[bf.w, bf.h];
     InitField();
     FillField();
 }
Beispiel #3
0
 private void InitShip()
 {
     Ship s = new Ship(w, h);
     sh = Ship.Instance;
 }