public Form1() { gameLogic = new GameLogic(this); if (gameLogic.connectToServer() == false) new CouldNotConnect(gameLogic); bot = new Bottle(this); highView = new highScoreView(this, gameLogic); InitializeComponent(); timer.Tick += new EventHandler(timer_Tick); timer.Interval = 100; //0.1 seconds gameLogic.risePercentage = 20; lostLabel.Hide(); resetButton.Hide(); this.StartPosition = FormStartPosition.CenterScreen; gameLogic.highscoreSaved = false; highView.Hide(); setHighScoreListInfoDictionary(gameLogic.getHighscoresDictionary()); }
public Form1() { gameLogic = new GameLogic(this); networkClient = new NetworkClient(gameLogic, this); gameLogic.setNetworkClient(networkClient); bot = new Bottle(this); highView = new highScoreView(this, gameLogic); InitializeComponent(); timer.Tick += new EventHandler(timer_Tick); timer.Interval = 100; //0.1 seconds gameLogic.risePercentage = 20; lostLabel.Hide(); resetButton.Hide(); this.StartPosition = FormStartPosition.CenterScreen; gameLogic.highscoreSaved = false; highView.Hide(); this.WindowState = FormWindowState.Minimized; setStatus("notConnected"); }
public void update(Bottle bot) { bot.updateWhiteScreenHeight(); }
public void resetFillingBottle(Bottle bot) { bot.resetWhiteHeight(); }