gbrainy.Core.Main.GameSessionHistoryExtended.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
        public override void Clear()
        {
            base.Clear ();
            LogicPlayed = LogicWon = LogicRawScore = 0;
            MathPlayed = MathWon = MathRawScore = 0;
            MemoryPlayed = MemoryWon = MemoryRawScore = 0;
            VerbalPlayed = VerbalWon = VerbalRawScore = 0;
        }

Usage Example

Ejemplo n.º 1
0
        public void New()
        {
            if (Type == Types.None)
            {
                throw new InvalidOperationException("You have to setup the GameSession type");
            }

            id++;
            if (Status != SessionStatus.NotPlaying)
            {
                End();
            }

            history.Clear();
            game_time = TimeSpan.Zero;
            timer.SynchronizingObject = SynchronizingObject;
            EnableTimer = true;
        }
GameSessionHistoryExtended