Example #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Example #2
0
        public GameManager(Game1 game, SplashScreenGameComponent splashScreen)
        {
            this.splashScreen = splashScreen;

            //Handlers
            splashScreen.VisibleChanged +=new EventHandler<EventArgs>(splashScreen_VisibleChanged);
        }
Example #3
0
        public GameManager(Game1 game, SplashScreenGameComponent splashScreen, EndTurnButtonComponent endTurnButton, ZoneGui zoneGui, SoulGui soulGui, EndOfTurnGui endOfTurnGui, TileMap tileMap, MapComponent mapComponent, PointSystemComponent pointSystemComponent, SelectionComponent selectionComponent, NewGame newgame, Difficulty difficulty, CurrencyControllerComponent currencyController, TurnComponent turnComponent, InstructionsGui instructions, ResultScreen resultScreen, HighScoresComponent highScoresComponent, ScoreSubmissionBoxComponent scoreSubmissionboxComponent)
        {
            this.splashScreen = splashScreen;
            this.endTurnButton = endTurnButton;
            this.zoneGui = zoneGui;
            this.soulGui = soulGui;
            this.endOfTurnGui = endOfTurnGui;
            this.mapComponent = mapComponent;
            this.pointSystemComponent = pointSystemComponent;
            this.selectionComponent = selectionComponent;
            this.newgame = newgame;
            this.difficulty = difficulty;
            this.currencyController = currencyController;
            this.turnComponent = turnComponent;
            this.instructions = instructions;
            this.resultscreen = resultScreen;
            this.highScoresComponent = highScoresComponent;
            this.scoreSubmissionboxComponent = scoreSubmissionboxComponent;

            //Handlers
            splashScreen.VisibleChanged += new EventHandler<EventArgs>(splashScreen_VisibleChanged);
            endOfTurnGui.VisibleChanged += new EventHandler<EventArgs>(endOfTurnGui_VisibleChanged);
            endTurnButton.VisibleChanged += new EventHandler<EventArgs>(endTurnButton_VisibleChanged);
            selectionComponent.VisibleChanged += new EventHandler<EventArgs>(selectionComponent_VisibleChanged);
            newgame.VisibleChanged += new EventHandler<EventArgs>(newgame_VisibleChanged);
            difficulty.VisibleChanged += new EventHandler<EventArgs>(difficulty_VisibleChanged);
            instructions.VisibleChanged += new EventHandler<EventArgs>(instructions_VisibleChanged);
            resultscreen.VisibleChanged += new EventHandler<EventArgs>(resultscreen_VisibleChanged);
            scoreSubmissionboxComponent.VisibleChanged += new EventHandler<EventArgs>(scoreSubmissionboxComponent_VisibleChanged);
            highScoresComponent.VisibleChanged += new EventHandler<EventArgs>(highScoresComponent_VisibleChanged);
        }
Example #4
0
        public GameManager(Game1 game, SplashScreenGameComponent splashScreen, EndTurnButtonComponent endTurnButton, ZoneGui zoneGui, SoulGui soulGui, EndOfTurnGui endOfTurnGui, TileMap tileMap, MapComponent mapComponent, PointSystemComponent pointSystemComponent, SelectionComponent selectionComponent)
        {
            this.splashScreen = splashScreen;
            this.endTurnButton = endTurnButton;
            this.zoneGui = zoneGui;
            this.soulGui = soulGui;
            this.endOfTurnGui = endOfTurnGui;
            this.mapComponent = mapComponent;
            this.pointSystemComponent = pointSystemComponent;
            this.selectionComponent = selectionComponent;

            //this.tileMap = tileMap;

            //Handlers
            splashScreen.VisibleChanged += new EventHandler<EventArgs>(splashScreen_VisibleChanged);
            endTurnButton.VisibleChanged += new EventHandler<EventArgs>(endTurnButton_VisibleChanged);
            selectionComponent.VisibleChanged += new EventHandler<EventArgs>(selectionComponent_VisibleChanged);
        }