Exemple #1
0
        /// <summary>
        /// Creates a new game logic instance and initialize it.
        /// </summary>
        protected override void Initialize()
        {
            mGameLogic = GameLogic.GetInstance();

              mHumanView = HumanView.GetInstance();
              mHumanView.Init(mGraphics, Content);
              CodeTest.Init(mGraphics, this);

              // TEST CASES (if you call them here, only the non-graphical ones will work):
            #if DEBUG
              //CodeTest.CallTests();
            #endif

              // set an empty placeholder map
              mGameLogic.SetMap(new Map(1, 1));
              base.Initialize();
        }
Exemple #2
0
 public static HumanView GetInstance()
 {
     return sUniqueInstance ?? (sUniqueInstance = new HumanView());
 }