/// <summary> /// Start the game and run it, causing it to block until the game exits. /// Fails if the game has already been started. /// </summary> public static void StartGame() { if (Game == null) { Game = new VTank(); Game.Run(); } else { throw new Exception("The game has already been started."); } }
public CTank( int iPosX, int iPosY) { SetModel(new MTank(iPosX, iPosY)); mView = new VTank(); mView.Controller = this; mHitPoints = new CHitPoints(); mHitPoints.ParentTank = this; mFortress = new CFortress(); mFortress.ParentTank = this; mMissiles = new LinkedList <CMissile>(); }