Esempio n. 1
0
        public GUILauncher(
            GameToControllerWindowMessagePipe gameToControllerPipe,
            ControllerToGameMessagePipe controllerToGamePipe,
            GameApplication app )
        {
            OurGameToControllerPipe = gameToControllerPipe;
            OurControllerToGamePipe = controllerToGamePipe;
            OurGameApp = app;

            threadRunner = new Thread(this.DoWork);
            messagePumper = new Thread(this.PumpMessages);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            GameToControllerWindowMessagePipe pipeGameToController = new GameToControllerWindowMessagePipe();
            ControllerToGameMessagePipe pipeControllerToGame = new ControllerToGameMessagePipe();

            GameApplication app = new GameApplication(pipeGameToController, pipeControllerToGame);

            GUILauncher guiLauncher = new GUILauncher( pipeGameToController, pipeControllerToGame, app );
            guiLauncher.Run();

            app.Run();

            guiLauncher.Join();
        }
Esempio n. 3
0
 public ThemeSelectionMenu( GameApplication app )
 {
     myApp = app;
     myGame = app.game;
 }
Esempio n. 4
0
 public SongTest(GameApplication app, Player player, Song song)
 {
     myApp = app;
     myPlayer = player;
     mySong = song;
 }
Esempio n. 5
0
 public BlindTest(GameApplication app, Player player, Song song)
     : base(app, player, song)
 {
     player.DidBlindTest = true;
 }
Esempio n. 6
0
 public SongSelectionMenu(GameApplication app, Player player, Theme theme)
 {
     myApp = app;
     myPlayer = player;
     myTheme = theme;
 }