/* * MiniGame.cs * Authors: August Zinsser * * Copyright Matthew Belmonte 2007 */ #region Using Statements using System; using System.Diagnostics; using System.Collections.Generic; 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 tAC_Engine; #endregion namespace Astropolis { /// /// Parent class for all minigames /// All minigames must be able to update and draw themselves /// The concept of Modes is only in Colony (not Engine), so Minigame is appropriately in the Colony_Simulator namespace /// public abstract class MiniGame { protected AstroScoreCard mScore; // Use this to transfer resources from the MiniGame to another game. Use the inherited mStockpile // to store resources that will NOT be transfered to the another game once this MiniGame is over. public AstroScoreCard Score { get { return mScore; } } public MiniGame() { mScore = new AstroScoreCard(); } // Function Stubs public virtual void LoadGraphicsContent(bool loadAllContent) { } public virtual void Update() { } public virtual void Draw() { } /// /// Returns a string with info that may be useful in locating a crash. Each minigame can override this to write data /// to ErrorLog.txt when an unhandled exception occurs. /// /// public virtual string DebugInfo() { return ""; } } }