#region CPL License /* Nuclex Framework Copyright (C) 2002-2009 Nuclex Development Labs This library is free software; you can redistribute it and/or modify it under the terms of the IBM Common Public License as published by the IBM Corporation; either version 1.0 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the IBM Common Public License for more details. You should have received a copy of the IBM Common Public License along with this library */ #endregion using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; namespace Nuclex.Ninject.Xna { /// Common services offered by the XNA Game class public interface IGame : IDisposable { /// Raised when the game gains focus event EventHandler Activated; /// Raised when the game loses focus event EventHandler Deactivated; /// Raised when the game is being disposed event EventHandler Disposed; /// Raised when the game is exiting event EventHandler Exiting; /// The underlying operating system window GameWindow Window { get; } /// Resets the elapsed time counter void ResetElapsedTime(); /// Exits the game void Exit(); /// /// Call this method to initialize the game, begin running the game loop, and /// start processing events for the game. Reference page contains code sample. /// void Run(); /// /// Controls whether the mouse cursor is visible on top of the game window /// bool IsMouseVisible { get; set; } /// /// Suppresses calls to until the next /// ran through void SuppressDraw(); /// /// Updates the game's clock and calls /// and /// void Tick(); } } // namespace Nuclex.Ninject.Xna