Пример #1
0
        private TacticalClass(int W, int H)
        {
            Width  = W;
            Height = H;

            ScreenArea = new Rectangle(0, 0, W, H);

            var scale = new Point(FileFormats.Binary.TMP.TileWidth, FileFormats.Binary.TMP.TileHeight);

            ScreenBounds = new Rectangle(0, 0, W, H); //(int)Math.Ceiling((double)W / scale.X) * scale.X, (int)Math.Ceiling((double)H / scale.Y) * scale.Y);

            _Instance = this;
        }
Пример #2
0
        private TacticalClass(int W, int H)
        {
            Width = W;
            Height = H;

            ScreenArea = new Rectangle(0, 0, W, H);

            var scale = new Point(FileFormats.Binary.TMP.TileWidth, FileFormats.Binary.TMP.TileHeight);

            ScreenBounds = new Rectangle(0, 0, W, H); //(int)Math.Ceiling((double)W / scale.X) * scale.X, (int)Math.Ceiling((double)H / scale.Y) * scale.Y);

            _Instance = this;
        }
Пример #3
0
 private void InitTacticalView()
 {
     Tactical = TacticalClass.Create(graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight);
 }