//---------------------------------------------------------------------------------------------------------------------------------------------------
//
// Copyright (C)2007 DarkWynter Studios. All rights reserved.
//
//---------------------------------------------------------------------------------------------------------------------------------------------------
// {Contact : darkwynter.com for licensing information
//---------------------------------------------------------------------------------------------------------------------------------------------------
namespace DarkWynter.Engine.Menus.GameScreens
{
#region Using Statements
#endregion
using DarkWynter.Engine.Menus;
using DWGame.Globals;
///
/// The screen which is displayed when the Game is over
///
public class GameOverScreen : GameScreen
{
bool needsUpdate = true;
bool surveyLaunched = false;
///
/// Game Over Screen constructor
///
public GameOverScreen(Enums_Engine.MenuState GameEngineState)
: base(GameEngineState)
{
menu = new GameMenu("Game Over!", 0, 0);
}
public override void Update()
{
// base.Update(objectLibrary);
// Launch Posttest
if (!surveyLaunched)
{
surveyLaunched = true;
//DarkWynterEngine.launchPostTest = true;
}
if (needsUpdate)
{
needsUpdate = false;
// menu.AddLabel("Total Score: " + Statics_Engine.GameSettings.TotalScore());
// menu.AddLabel("");
// menu.AddLabel("");
// menu.AddLabel("Number of Mins: " + Statics_Engine.LevelSettings.gameTimer.Elapsed.Seconds / 60.0f);
// menu.AddLabel("Coins Collected: " + Statics_Engine.PlayerSettings.coinsCollected);
// menu.AddLabel("Experience Points: " + Statics_Engine.GameSettings.experiencePoints);
}
}
}
}