Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #3
0
 private void InitTacticalView()
 {
     Tactical = TacticalClass.Create(graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight);
 }