Ejemplo n.º 1
0
 public Camera(GameScreen screen)
 {
     AvatarHeadOffset = new Vector3(0, 7, -15);
     TargetOffset = new Vector3(0, 5, 0);
     ViewMatrix = Matrix.Identity;
     ProjectionMatrix = Matrix.Identity;
     Screen = screen;
 }
Ejemplo n.º 2
0
 public ImpassibleObject(GameScreen screen)
     : base(screen)
 {
     BarrierType = null;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This is a 3d object in game, that we can pick up
 /// </summary>
 public CollectableItem(GameScreen screen)
     : base(screen)
 {
     Retrieved = false;
 }
Ejemplo n.º 4
0
 public Player(GameScreen screen)
     : base(screen)
 {
     ForwardDirection = 0.0f;
     MaxRange = GameConstants.MaxRange;
 }
Ejemplo n.º 5
0
 public GameObject(GameScreen screen)
 {
     Screen = screen;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Basic blank Constructor
 /// </summary>
 public GameObject2D(GameScreen screen)
     : base(screen)
 {
     ObjectState = new State();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Removes a screen from our control
 /// </summary>
 /// <param name="name">The friendly name of the screen</param>
 /// <param name="screen">The GameScreen</param>
 public void RemoveScreen(string name, GameScreen screen)
 {
     // Dont try and remove it if its not there
     if (!Screens.ContainsKey(name)) { return; }
     // Remove the screen
     Screens.Remove(name);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Add a screen under our control
 /// </summary>
 /// <param name="name">The friendly name of the screen</param>
 /// <param name="screen">The GameScreen</param>
 public void AddScreen(string name, GameScreen screen)
 {
     // Dont add a screen duplicate
     if (Screens.ContainsKey(name)) { return; }
     // Add the screen
     Screens.Add(name, screen);
 }
Ejemplo n.º 9
0
 public Status(GameScreen screen)
     : base(screen)
 {
 }
Ejemplo n.º 10
0
 /// <summary>
 /// A base 3d game object
 /// </summary>
 public GameObject3D(GameScreen screen)
     : base(screen)
 {
 }