예제 #1
0
 public Battlefield()
 {
     _instance = this;
     InitSubmarine();
     InitShip();
     RefreshBattleField();
 }
예제 #2
0
        public Ship(int field_w, int field_h)
        {
            InitShip(field_w, field_h);

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