Rev | Line | |
---|
[4512] | 1 | using System; |
---|
| 2 | using System.Collections.Generic; |
---|
| 3 | using System.Linq; |
---|
| 4 | using System.Text; |
---|
| 5 | using Microsoft.Xna.Framework; |
---|
| 6 | |
---|
| 7 | namespace CastleMaster.Graphics |
---|
| 8 | { |
---|
| 9 | public class Camera |
---|
| 10 | { |
---|
| 11 | private int xOffs = 0, yOffs = 0; |
---|
| 12 | private Vector2 mouseWorldPos = Vector2.Zero; |
---|
| 13 | private Point oldMousePos = Point.Zero; |
---|
| 14 | |
---|
| 15 | public Camera() |
---|
| 16 | { |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | #region Properties |
---|
| 20 | public int XLeft |
---|
| 21 | { |
---|
| 22 | get { return xOffs; } |
---|
| 23 | set { xOffs = value; } |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | public int YTop |
---|
| 27 | { |
---|
| 28 | get { return yOffs; } |
---|
| 29 | set { yOffs = value; } |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | public int XRight |
---|
| 33 | { |
---|
| 34 | get { return xOffs + Game.WIDTH; } |
---|
| 35 | set { xOffs = value - Game.WIDTH; } |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | public int YBottom |
---|
| 39 | { |
---|
| 40 | get { return yOffs + Game.HEIGHT; } |
---|
| 41 | set { yOffs = value - Game.HEIGHT; } |
---|
| 42 | } |
---|
| 43 | #endregion |
---|
| 44 | |
---|
| 45 | public void Update() |
---|
| 46 | { |
---|
| 47 | |
---|
| 48 | } |
---|
| 49 | } |
---|
| 50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.