Beispiel #1
0
 private void btnGameSetup_Click(object sender, EventArgs e)
 {
     GameSetup gameSetup = new GameSetup();
     if (DialogResult.OK == gameSetup.ShowDialog())
     {
         m_level = gameSetup.GetLevelSetup();
         panel1.Width = m_level.N * 40;
         panel1.Height = m_level.M * 40;
         //m_level.PutTanks();
         gameSetup.Dispose();
         panel1.Invalidate();
     }
     else
     {
         gameSetup.Dispose();
     }
 }
Beispiel #2
0
 public GameController(Level level)
 {
     m_level = level;
 }