예제 #1
0
 public GameStateManager(Game1 game)
 {
     Game = game;
     States = new Dictionary<string, GameState>();
     CurrentState = "";
     NextState = "";
     TransitionSpeed = 1.0f;
 }
예제 #2
0
 public GameState(Game1 game, string name, GameStateManager stateManager)
 {
     Game = game;
     Name = name;
     StateManager = stateManager;
     IsInitialized = false;
     TransitionValue = 0.0f;
     Transitioning = TransitionMode.Entering;
 }
예제 #3
0
 public WinState(Game1 game, GameStateManager GSM, PlayState play)
     : base(game, "PlayState", GSM)
 {
     Play = play;
     SpriteBatch = new SpriteBatch(Game.GraphicsDevice);
 }
예제 #4
0
 public PlayState(Game1 game, GameStateManager GSM)
     : base(game, "PlayState", GSM)
 {
 }