/** * Constructs a new <code>GameState</code> being managed by * the specified <code>StateManager</code> class. * * @param manager The state manager to manage this state. * @param game XNA's game class to get accesses to * resource managers and devices. */ public GameState(IStateManager manager, DroughtGame game) { this.game = game; stateManager = manager; this.content = new ContentManager(game.Services); this.content.RootDirectory = "Content"; this.graphics = game.getGraphics(); this.spriteBatch = game.getSpriteBatch(); }