using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace CastleMaster.Graphics { public class Camera { private int xOffs = 0, yOffs = 0; private Vector2 mouseWorldPos = Vector2.Zero; private Point oldMousePos = Point.Zero; public Camera() { } #region Properties public int XLeft { get { return xOffs; } set { xOffs = value; } } public int YTop { get { return yOffs; } set { yOffs = value; } } public int XRight { get { return xOffs + Game.WIDTH; } set { xOffs = value - Game.WIDTH; } } public int YBottom { get { return yOffs + Game.HEIGHT; } set { yOffs = value - Game.HEIGHT; } } #endregion public void Update() { } } }