Пример #1
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
        }
Пример #2
0
 public CampaignController(Game game, MissionController missionController, EffectController effectController)
 {
     MainGame = game;
     MissionController = missionController;
     EffectController = effectController;
 }