public void draw(SpriteBatch spriteBatch, GameTime gameTime) { switch (state) { case State.START: start.draw(spriteBatch, sStart, new Vector2(0, 0)); break; case State.LOAD: load.draw(spriteBatch, sLoad, new Vector2(0, 0)); break; case State.PLAY: play.draw(spriteBatch, font, frogImage, deadImage, mapImages, objectImages, backgroundImage, lastCrocImage, dummyImage, displayOrigin, gameTime); break; case State.MENU: menu.draw(spriteBatch, menuFont, sMenu, new Vector2(0, 0)); break; case State.CLEAR: clear.draw(spriteBatch, sClear, new Vector2(0, 0)); break; case State.FAIL: fail.draw(spriteBatch, sFail, new Vector2(0, 0)); break; } }