public GUILauncher( GameToControllerWindowMessagePipe gameToControllerPipe, ControllerToGameMessagePipe controllerToGamePipe, GameApplication app ) { OurGameToControllerPipe = gameToControllerPipe; OurControllerToGamePipe = controllerToGamePipe; OurGameApp = app; threadRunner = new Thread(this.DoWork); messagePumper = new Thread(this.PumpMessages); }
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(); }
public ThemeSelectionMenu( GameApplication app ) { myApp = app; myGame = app.game; }
public SongTest(GameApplication app, Player player, Song song) { myApp = app; myPlayer = player; mySong = song; }
public BlindTest(GameApplication app, Player player, Song song) : base(app, player, song) { player.DidBlindTest = true; }
public SongSelectionMenu(GameApplication app, Player player, Theme theme) { myApp = app; myPlayer = player; myTheme = theme; }