Ejemplo n.º 1
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.º 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);

            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.º 3
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);
        }