public LevelMenu(SpriteLoaderFlyweight textureLoader, ViewSpriteFactory spriteFactory, string scoreFont) { _isShown = false; //number of milliseconds for which to show the menu; this will almost certainly go away... _showtime_ms = 5000; _scoreFont = scoreFont; _viewSpriteFactory = spriteFactory; _textureLoader = textureLoader; _waitHandle = new AutoResetEvent(false); }
public GameOverMenu(SpriteLoaderFlyweight textureLoader, ViewSpriteFactory spriteFactory, string bannerFontPath, string buttonFontPath) { _spriteFactory = spriteFactory; _explosionSprites = new List<ExplosionSprite>(); _elapsed_ms = 0; _shown = false; _runningAnimation = true; _getUserInfo = false; _textureLoader = textureLoader; _spriteFactory = spriteFactory; _bannerFontPath = bannerFontPath; _buttonFontPath = buttonFontPath; _waitHandle = new AutoResetEvent(true); _retry = false; _initializeAnimation(); }