public UserInterfaceController(CampaignController campaignController, UserInterface userInterface)
 {
     curState = Keyboard.GetState();
     mouseCurState = Mouse.GetState();
     CampaignController = campaignController;
     UserInterface = userInterface;
 }
Beispiel #2
0
        public Display(GraphicsDeviceManager graphicsDeviceManager, UserInterface userInterface, CampaignController campaignController)
        {
            graphics = graphicsDeviceManager;
            graphicsDevice = graphics.GraphicsDevice;

            UserInterface = userInterface;
            CampaignController = campaignController;
            particleEffectTexturer = new ParticleEffectTexturer();
            renderTargetManager = new RenderTargetManager(graphicsDevice);

            graphicsDeviceManager.DeviceReset += new EventHandler<EventArgs>(DeviceReset);
        }
Beispiel #3
0
        public Game()
        {
            GraphicsDeviceManager = new GraphicsDeviceManager(this);
            GraphicsDeviceManager.SynchronizeWithVerticalRetrace = true;
            GraphicsDeviceManager.ApplyChanges();
            Content.RootDirectory = "Content";

            UserInterface = new UserInterface();

            EffectController = new EffectController(this);
            MissionController = new MissionController(this);
            CampaignController = new CampaignController(this, MissionController, EffectController);

            Camera = new Camera(new Vector3(244, 0, 154),MissionController);

            UserInterfaceController = new UserInterfaceController(CampaignController,UserInterface);

            UnitCommander = new UnitCommander();

            # if DEBUG
            GraphicsDeviceManager.PreparingDeviceSettings += new System.EventHandler<PreparingDeviceSettingsEventArgs>(OnPreparingDeviceSettings);
            #endif
        }
Beispiel #4
0
 public DisplayController(GraphicsDeviceManager graphicsDeviceManager, UserInterface userInterface, Camera camera, CampaignController campaignController)
 {
     Camera = camera;
     display = new Display(graphicsDeviceManager, userInterface, campaignController);
     Projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, graphicsDeviceManager.GraphicsDevice.Viewport.AspectRatio, 1.0f, 600.0f);
 }