/*
* StartUp.cs
* Authors: August Zinsser
*
* Copyright Matthew Belmonte 2007
*/
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Nuclex.Fonts;
using Pina3D;
using tAC_Engine;
namespace Astropolis
{
///
/// Performs startup tasks
///
public class StartUp : MiniGame
{
private bool mInitialized; // Don't start doing anything until initialized
///
/// Do things to get the game to the main menu
/// Initialization and loading are all done in GenericGameManager, not here
///
public StartUp()
{
mInitialized = false;
}
///
/// Initializes the startup sequence, informing it to start running
///
private void Initialize()
{
// Run splash screens
GenericBaseApplication.GameManager.InterpretLuaFile(@"GeneralScripts\SplashScreens.lua");
// Run the opening cutscene
// TODO: Put cutscene file here
// Switch to the main menu (won't take effect until the cutscenes are all finished)
AstroBaseApplication.SwitchMode(AstroBaseApplication.Modes.ModeSelector);
mInitialized = true;
}
///
/// Basic logic update
///
///
public override void Update()
{
if (!mInitialized && GenericBaseApplication.GameManager.IsInitialized)
{
Initialize();
}
base.Update();
}
///
/// Basic drawing function
///
///
public override void Draw()
{
}
}
}