Esempio n. 1
0
        /// <summary>
        /// 
        /// </summary>
        private GameLoop()
        {
            this.gameStillRunning = true;

            this.sceneManager = null;
            this.sceneBrain = null;
            this.spawnerManager = null;
            this.updateRenderer = null;
            this.timerManager = null;
            this.collisionManager = null;

            gameLoopThread = new Thread(new ThreadStart(this.runLoop));
            gameLoopThread.SetApartmentState(ApartmentState.STA);
            gameLoopThread.Name = "GameLoopThread";
            gameLoopThread.IsBackground = true; //ensures that will be terminated on application close
        }
Esempio n. 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sceneBrain"></param>
 public void setSceneBrain(ISceneBrain sceneBrain)
 {
     this.sceneBrain = sceneBrain;
 }