Example #1
0
 /// <summary>
 /// A new instance of GameEngine.
 /// </summary>
 public GameEngine()
 {
     GameStates = new Stack<GameState>();
     InputMgr = new InputManager(this);
     DeltaTime = new GameTime();
     Window = new RenderWindow(new VideoMode(1280, 720), "Jeden");
 }
Example #2
0
 /// <summary>
 /// Sets the InputManager that this GameState's ControlMap watches
 /// </summary>
 /// <param name="inputmgr">The watched InputManager</param>
 public void SetInputManager(InputManager inputmgr)
 {
     InputMgr = inputmgr;
 }