Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            splashScreen = new SplashScreenGameComponent(this);
            endOfTurnGui = new EndOfTurnGui(this);
            zoneGui = new ZoneGui(this);
            soulGui = new SoulGui(this);
            endTurnButton = new EndTurnButtonComponent(this);
            mapComponent = new MapComponent(this);
            pointSystemComponent = new PointSystemComponent(this);
            newgame = new NewGame(this);
            selectionComponent = new SelectionComponent(this);

            //pointAndCurrency is instantiated
            pointAndCurency = new PointAndCurency();

            //tileMap = new TileMap(this);

            gameManager = new GameManager(this, splashScreen, endTurnButton, zoneGui, soulGui, endOfTurnGui, tileMap, mapComponent, pointSystemComponent, selectionComponent,newgame);

            //tileMap.Visible = false;
            //tileMap.Enabled = false;
            //Components.Add(tileMap);

            pointSystemComponent.Visible = false;
            pointSystemComponent.Enabled = false;
            Components.Add(pointSystemComponent);

            mapComponent.Visible = false;
            mapComponent.Enabled = false;
            Components.Add(mapComponent);

            endTurnButton.Visible = false;
            endTurnButton.Enabled = false;
            Components.Add(endTurnButton); //drawn first to be covered by splash screen since hiding it calls the event handler for endTurn button clicked

            Components.Add(splashScreen);

            endOfTurnGui.Visible = false;
            endOfTurnGui.Enabled = false;
            Components.Add(endOfTurnGui);

            zoneGui.Visible = false;
            zoneGui.Enabled = false;
            Components.Add(zoneGui);

            soulGui.Visible = false;
            soulGui.Enabled = false;
            Components.Add(soulGui);

            selectionComponent.Visible = false;
            selectionComponent.Enabled = false;
            Components.Add(selectionComponent);

            newgame.Visible = false;
            newgame.Enabled = false;
            Components.Add(newgame);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            splashScreen         = new SplashScreenGameComponent(this);
            endOfTurnGui         = new EndOfTurnGui(this);
            zoneGui              = new ZoneGui(this);
            soulGui              = new SoulGui(this);
            endTurnButton        = new EndTurnButtonComponent(this);
            mapComponent         = new MapComponent(this);
            pointSystemComponent = new PointSystemComponent(this);

            selectionComponent = new SelectionComponent(this);

            //pointAndCurrency is instantiated
            pointAndCurency = new PointAndCurency();

            //tileMap = new TileMap(this);

            gameManager = new GameManager(this, splashScreen, endTurnButton, zoneGui, soulGui, endOfTurnGui, tileMap, mapComponent, pointSystemComponent, selectionComponent);

            //tileMap.Visible = false;
            //tileMap.Enabled = false;
            //Components.Add(tileMap);


            pointSystemComponent.Visible = false;
            pointSystemComponent.Enabled = false;
            Components.Add(pointSystemComponent);

            mapComponent.Visible = false;
            mapComponent.Enabled = false;
            Components.Add(mapComponent);

            endTurnButton.Visible = false;
            endTurnButton.Enabled = false;
            Components.Add(endTurnButton); //drawn first to be covered by splash screen since hiding it calls the event handler for endTurn button clicked

            Components.Add(splashScreen);

            endOfTurnGui.Visible = false;
            endOfTurnGui.Enabled = false;
            Components.Add(endOfTurnGui);

            zoneGui.Visible = false;
            zoneGui.Enabled = false;
            Components.Add(zoneGui);

            soulGui.Visible = false;
            soulGui.Enabled = false;
            Components.Add(soulGui);

            selectionComponent.Visible = false;
            selectionComponent.Enabled = false;
            Components.Add(selectionComponent);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            splashScreen = new SplashScreenGameComponent(this);
            endOfTurnGui = new EndOfTurnGui(this);
            zoneGui = new ZoneGui(this);
            soulGui = new SoulGui(this);

            gameManager = new GameManager(this, splashScreen);

            //Components.Add(splashScreen);

            //endOfTurnGui.Visible = false;
            //endOfTurnGui.Enabled = false;
            //Components.Add(endOfTurnGui);

            Components.Add(zoneGui);
            //Components.Add(soulGui);
        }
Ejemplo n.º 8
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            splashScreen = new SplashScreenGameComponent(this);
            endOfTurnGui = new EndOfTurnGui(this);
            zoneGui      = new ZoneGui(this);
            soulGui      = new SoulGui(this);

            gameManager = new GameManager(this, splashScreen);



            //Components.Add(splashScreen);

            //endOfTurnGui.Visible = false;
            //endOfTurnGui.Enabled = false;
            //Components.Add(endOfTurnGui);

            Components.Add(zoneGui);
            //Components.Add(soulGui);
        }
Ejemplo n.º 9
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            splashScreen         = new SplashScreenGameComponent(this);
            endOfTurnGui         = new EndOfTurnGui(this);
            zoneGui              = new ZoneGui(this);
            soulGui              = new SoulGui(this);
            endTurnButton        = new EndTurnButtonComponent(this);
            mapComponent         = new MapComponent(this);
            pointSystemComponent = new PointSystemComponent(this);
            newgame              = new NewGame(this);
            selectionComponent   = new SelectionComponent(this);
            difficulty           = new Difficulty(this);
            //pointAndCurrency is instantiated
            pointAndCurency             = new PointAndCurency();
            currencyController          = new CurrencyControllerComponent(this);
            turnComponent               = new TurnComponent(this);
            instructions                = new InstructionsGui(this);
            resultscreen                = new ResultScreen(this);
            highScoreComponent          = new HighScoresComponent(this);
            scoreSubmissionBoxComponent = new ScoreSubmissionBoxComponent(this);

            //tileMap = new TileMap(this);

            gameManager = new GameManager(this, splashScreen, endTurnButton, zoneGui, soulGui, endOfTurnGui, tileMap, mapComponent, pointSystemComponent, selectionComponent, newgame, difficulty, currencyController, turnComponent, instructions, resultscreen, highScoreComponent, scoreSubmissionBoxComponent);

            //tileMap.Visible = false;
            //tileMap.Enabled = false;
            //Components.Add(tileMap);


            pointSystemComponent.Visible = false;
            pointSystemComponent.Enabled = false;
            Components.Add(pointSystemComponent);

            mapComponent.Visible = false;
            mapComponent.Enabled = false;
            Components.Add(mapComponent);

            endTurnButton.Visible = false;
            endTurnButton.Enabled = false;
            Components.Add(endTurnButton); //drawn first to be covered by splash screen since hiding it calls the event handler for endTurn button clicked

            Components.Add(splashScreen);

            endOfTurnGui.Visible = false;
            endOfTurnGui.Enabled = false;
            Components.Add(endOfTurnGui);

            zoneGui.Visible = false;
            zoneGui.Enabled = false;
            Components.Add(zoneGui);

            soulGui.Visible = false;
            soulGui.Enabled = false;
            Components.Add(soulGui);

            selectionComponent.Visible = false;
            selectionComponent.Enabled = false;
            Components.Add(selectionComponent);

            newgame.Visible = false;
            newgame.Enabled = false;
            Components.Add(newgame);

            difficulty.Visible = false;
            difficulty.Enabled = false;
            Components.Add(difficulty);

            currencyController.Visible = false;
            currencyController.Enabled = false;
            Components.Add(currencyController);

            turnComponent.Visible = false;
            turnComponent.Enabled = false;
            Components.Add(turnComponent);

            instructions.Visible = false;
            instructions.Enabled = false;
            Components.Add(instructions);

            resultscreen.Visible = false;
            resultscreen.Enabled = false;
            Components.Add(resultscreen);

            highScoreComponent.Visible = false;
            highScoreComponent.Enabled = true;
            Components.Add(highScoreComponent);

            scoreSubmissionBoxComponent.Visible = false;
            scoreSubmissionBoxComponent.Enabled = false;
            Components.Add(scoreSubmissionBoxComponent);
        }
Ejemplo n.º 10
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            splashScreen = new SplashScreenGameComponent(this);
            endOfTurnGui = new EndOfTurnGui(this);
            zoneGui = new ZoneGui(this);
            soulGui = new SoulGui(this);
            endTurnButton = new EndTurnButtonComponent(this);
            mapComponent = new MapComponent(this);
            pointSystemComponent = new PointSystemComponent(this);
            newgame = new NewGame(this);
            selectionComponent = new SelectionComponent(this);
            difficulty = new Difficulty(this);
            //pointAndCurrency is instantiated
            pointAndCurency = new PointAndCurency();
            currencyController = new CurrencyControllerComponent(this);
            turnComponent = new TurnComponent(this);
            instructions = new InstructionsGui(this);
            resultscreen = new ResultScreen(this);
            highScoreComponent = new HighScoresComponent(this);
            scoreSubmissionBoxComponent = new ScoreSubmissionBoxComponent(this);

            //tileMap = new TileMap(this);

            gameManager = new GameManager(this, splashScreen, endTurnButton, zoneGui, soulGui, endOfTurnGui, tileMap, mapComponent, pointSystemComponent, selectionComponent, newgame, difficulty, currencyController, turnComponent, instructions, resultscreen, highScoreComponent, scoreSubmissionBoxComponent);

            //tileMap.Visible = false;
            //tileMap.Enabled = false;
            //Components.Add(tileMap);

            pointSystemComponent.Visible = false;
            pointSystemComponent.Enabled = false;
            Components.Add(pointSystemComponent);

            mapComponent.Visible = false;
            mapComponent.Enabled = false;
            Components.Add(mapComponent);

            endTurnButton.Visible = false;
            endTurnButton.Enabled = false;
            Components.Add(endTurnButton); //drawn first to be covered by splash screen since hiding it calls the event handler for endTurn button clicked

            Components.Add(splashScreen);

            endOfTurnGui.Visible = false;
            endOfTurnGui.Enabled = false;
            Components.Add(endOfTurnGui);

            zoneGui.Visible = false;
            zoneGui.Enabled = false;
            Components.Add(zoneGui);

            soulGui.Visible = false;
            soulGui.Enabled = false;
            Components.Add(soulGui);

            selectionComponent.Visible = false;
            selectionComponent.Enabled = false;
            Components.Add(selectionComponent);

            newgame.Visible = false;
            newgame.Enabled = false;
            Components.Add(newgame);

            difficulty.Visible = false;
            difficulty.Enabled = false;
            Components.Add(difficulty);

            currencyController.Visible = false;
            currencyController.Enabled = false;
            Components.Add(currencyController);

            turnComponent.Visible = false;
            turnComponent.Enabled = false;
            Components.Add(turnComponent);

            instructions.Visible = false;
            instructions.Enabled = false;
            Components.Add(instructions);

            resultscreen.Visible = false;
            resultscreen.Enabled = false;
            Components.Add(resultscreen);

            highScoreComponent.Visible = false;
            highScoreComponent.Enabled = true;
            Components.Add(highScoreComponent);

            scoreSubmissionBoxComponent.Visible = false;
            scoreSubmissionBoxComponent.Enabled = false;
            Components.Add(scoreSubmissionBoxComponent);
        }