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 }
public CampaignController(Game game, MissionController missionController, EffectController effectController) { MainGame = game; MissionController = missionController; EffectController = effectController; }