Ejemplo n.º 1
0
 public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario, MainGameScreen mainGameScreen)
 {
     this.screen        = mainGameScreen;
     this.mainMapLayer  = mainMapLayer;
     this.Architectures = scenario.Architectures;
     this.gameScenario  = scenario;
 }
 public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario, MainGameScreen mainGameScreen)
 {
     this.mainMapLayer  = mainMapLayer;
     this.Architectures = scenario.Architectures;
     this.gameScenario  = scenario;
     //this.huangditupian = huangditupian;
 }
Ejemplo n.º 3
0
        public void Initialize(MainMapLayer mainMapLayer, MainGameScreen screen)
        {
            this.mainMapLayer = mainMapLayer;
            this.screen       = screen;
            //this.Conment = new FreeText(screen.GraphicsDevice, new System.Drawing.Font("宋体", 10f), Color.White);
            this.Conment       = new FreeText(screen.GraphicsDevice, new System.Drawing.Font("宋体", 10f), Color.White);
            this.Conment.Align = TextAlign.Middle;

            this.currentPositionTexture = screen.Textures.TileFrameTextures[0];
            this.EffectingAreaTexture   = screen.Textures.TileFrameTextures[4];
        }
Ejemplo n.º 4
0
        public MainGameScreen(MainGame game)
            : base(game)
        {
            this.Player = new WindowsMediaPlayerClass();
            this.Textures = new GameTextures();
            this.mainMapLayer = new MainMapLayer();
            this.architectureLayer = new ArchitectureLayer();
            this.mapVeilLayer = new MapVeilLayer();
            this.troopLayer = new TroopLayer();
            this.selectingLayer = new SelectingLayer();
            this.tileAnimationLayer = new TileAnimationLayer();
            this.routewayLayer = new RoutewayLayer();
            this.Plugins = new GamePlugin();
            this.SelectorTroops = new TroopList();
            this.scrollSpeedScale = 1f;
            this.scrollSpeedScaleDefault = 1f;
            this.scrollSpeedScaleSpeedy = 1.7f;
            this.oldScrollWheelValue = 0;
            this.EnableLaterMouseLeftDownEvent = true;
            this.EnableLaterMouseLeftUpEvent = true;
            this.EnableLaterMouseRightDownEvent = true;
            this.EnableLaterMouseRightUpEvent = true;
            this.EnableLaterMouseMoveEvent = true;
            this.EnableLaterMouseScrollEvent = true;
            this.frameRate = 0;
            this.frameCounter = 0;
            this.elapsedTime = TimeSpan.Zero;
            this.UpdateCount = 0;
            this.thisGame = game;
            this.screenManager = new ScreenManager(this);
            base.Scenario = new GameScenario(this);
            this.LoadCommonData();
            base.Game.Window.ClientSizeChanged += new EventHandler(this.Window_ClientSizeChanged);
            base.Game.Activated += new EventHandler(this.Game_Activated);
            base.Game.Deactivated += new EventHandler(this.Game_Deactivated);
            base.Scenario.OnAfterLoadScenario += new GameScenario.AfterLoadScenario(this.Scenario_OnAfterLoadScenario);
            base.Scenario.OnNewFactionAppear += new GameScenario.NewFactionAppear(this.Scenario_OnNewFactionAppear);
            base.Scenario.Date.OnDayStarting += new GameDate.DayStartingEvent(this.Date_OnDayStarting);
            base.Scenario.Date.OnDayPassed += new GameDate.DayPassedEvent(this.Date_OnDayPassed);
            base.Scenario.Date.OnMonthPassed += new GameDate.MonthPassedEvent(this.Date_OnMonthPassed);
            base.Scenario.Date.OnSeasonChange += new GameDate.SeasonChangeEvent(this.Date_OnSeasonChange);
            base.Scenario.Date.OnYearStarting += new GameDate.YearStartingEvent(this.Date_OnYearStarting);
            base.Scenario.Date.OnYearPassed += new GameDate.YearPassedEvent(this.Date_OnYearPassed);
            //this.Player.add_PlayStateChange(new _WMPOCXEvents_PlayStateChangeEventHandler(this.Player_PlayStateChange));
            this.Player.PlayStateChange+=(new _WMPOCXEvents_PlayStateChangeEventHandler(this.Player_PlayStateChange));
            //this.ShowyoucelanInFrame(UndoneWorkKind.Frame, FrameKind.Architecture, FrameFunction.Jump, false, true, false, false, base.Scenario.CurrentPlayer.Architectures, null, "跳转", "");


        }
Ejemplo n.º 5
0
        public void Initialize(MainMapLayer mainMapLayer, MainGameScreen screen)
        {
            this.mainMapLayer = mainMapLayer;
            this.screen = screen;
            //this.Conment = new FreeText(screen.GraphicsDevice, new System.Drawing.Font("宋体", 10f), Color.White);
            this.Conment = new FreeText(screen.GraphicsDevice,new System.Drawing.Font("宋体", 10f), Color.White);
            this.Conment.Align = TextAlign.Middle;

            this.currentPositionTexture = screen.Textures.TileFrameTextures[0];
            this.EffectingAreaTexture = screen.Textures.TileFrameTextures[4];
        }
 public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario,MainGameScreen mainGameScreen)
 {
     this.screen  = mainGameScreen;
     this.mainMapLayer = mainMapLayer;
     this.Architectures = scenario.Architectures;
     this.gameScenario = scenario;
 }
Ejemplo n.º 7
0
 public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario, MainGameScreen screen)
 {
     this.mainMapLayer = mainMapLayer;
     this.gameScenario = scenario;
     this.screen       = screen;
 }
Ejemplo n.º 8
0
        }//结束DRAW函数

        public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario)
        {
            this.mainMapLayer = mainMapLayer;
            this.scenario = scenario;
        }
Ejemplo n.º 9
0
 public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario, MainGameScreen screen)
 {
     this.mainMapLayer = mainMapLayer;
     this.gameScenario = scenario;
     this.screen = screen;
 }
Ejemplo n.º 10
0
 public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario,MainGameScreen mainGameScreen)
 {
     this.mainMapLayer = mainMapLayer;
     this.Architectures = scenario.Architectures;
     this.gameScenario = scenario;
     //this.huangditupian = huangditupian;
 }
Ejemplo n.º 11
0
        }     //结束DRAW函数

        public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario)
        {
            this.mainMapLayer = mainMapLayer;
            this.scenario     = scenario;
        }
Ejemplo n.º 12
0
 public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario)
 {
     this.mainMapLayer = mainMapLayer;
     this.scenario = scenario;
     this.veilTexture = mainMapLayer.screen.Textures.MapVeilTextures[0];
 }
 public void Initialize(MainMapLayer mainMapLayer, GameScenario scenario)
 {
     this.mainMapLayer = mainMapLayer;
     this.scenario     = scenario;
     this.veilTexture  = mainMapLayer.screen.Textures.MapVeilTextures[0];
 }