Exemple #1
0
 public void MainMenu(Game game)
 {
     if(mainMenu.StartA)
     {
         currentProgramState = GameState.ProjektA;
         projektBoll = new ProjectA_Boll(game);
         mainMenu.StartA = false;
     }
     else if (mainMenu.StartB)
     {
         currentProgramState = GameState.ProjektB;
         projektBox = new ProjektB_Box(game);
         mainMenu.StartB = false;
     }
     else if (mainMenu.StartC)
     {
         currentProgramState = GameState.ProjektC;
         projektKurva = new ProjektC_Kurva(game);
         mainMenu.StartC = false;
     }
     else if (mainMenu.Exit)
     {
         game.Exit();
     }
 }
Exemple #2
0
 public Form1(ProjectA_Boll game)
 {
     this.project = game;
     InitializeComponent();
 }
Exemple #3
0
 public ProjektAForm(ProjectA_Boll projektA)
 {
     this.project = projektA;
     InitializeComponent();
 }