Esempio n. 1
0
        public LevelEngine(GameEngine gameEngine, XLevelInfo levelInfo, XLevelScore levelScore)
			: base(gameEngine, levelInfo.File)
		{
            this.LevelInfo = levelInfo;
			this.LevelScore = levelScore;
			this.cps = new EventRateCounter(TimeSpan.FromSeconds(game.GameObject.CpsTimeSpan));
		}
Esempio n. 2
0
        public void CopyTo(XLevelScore other)
        {
            other.availablePoints = this.availablePoints;
            other.score           = this.score;
            other.time            = this.time;
            other.health          = this.health;

            other.calculated = false;
        }
Esempio n. 3
0
		public void SaveNewScore(XLevelScore newScore)
		{
			if (newScore.TotalScore < this.LevelScore.TotalScore)
				return;
			
			newScore.CopyTo(this.LevelScore);
			
			game.SaveScore();
		}
Esempio n. 4
0
		public void CopyTo(XLevelScore other)
		{
			other.availablePoints = this.availablePoints;
			other.score = this.score;
			other.time = this.time;
			other.health = this.health;
			
			other.calculated = false;
		}