using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework.Graphics; namespace Game.Astropolis.HackerHavoc { /// /// This class will store all the rooms for one level. /// It will also be responsible displaying the correct rooms. /// class Level { List mRooms; //Stores all the rooms for the level. Room curRoom = null; //int mLevelDifficulty; //The levels difficulty. public Level(String pIn, Viewport pDrawSpace){ if (pIn.Equals("Default")) { mRooms = new List(); pDrawSpace.Width = 600; pDrawSpace.Height = 468; mRooms.Add(new Room("Default", pDrawSpace)); curRoom = mRooms[0]; } } public void Update() { curRoom.Update(); } public void Draw(SpriteBatch pBatch) { if (curRoom != null) { curRoom.Draw(pBatch); } } } }