Beispiel #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;
 }
Beispiel #2
0
 public ImpassibleObject(GameScreen screen)
     : base(screen)
 {
     BarrierType = null;
 }
Beispiel #3
0
 /// <summary>
 /// This is a 3d object in game, that we can pick up
 /// </summary>
 public CollectableItem(GameScreen screen)
     : base(screen)
 {
     Retrieved = false;
 }
Beispiel #4
0
 public Player(GameScreen screen)
     : base(screen)
 {
     ForwardDirection = 0.0f;
     MaxRange = GameConstants.MaxRange;
 }
Beispiel #5
0
 public GameObject(GameScreen screen)
 {
     Screen = screen;
 }
Beispiel #6
0
 /// <summary>
 /// Basic blank Constructor
 /// </summary>
 public GameObject2D(GameScreen screen)
     : base(screen)
 {
     ObjectState = new State();
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #9
0
 public Status(GameScreen screen)
     : base(screen)
 {
 }
Beispiel #10
0
 /// <summary>
 /// A base 3d game object
 /// </summary>
 public GameObject3D(GameScreen screen)
     : base(screen)
 {
 }