public Battlefield() { _instance = this; InitSubmarine(); InitShip(); RefreshBattleField(); }
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(); }