C# Class Project290.Clock.GameClock

GameClock is used to statically keep track of the game time. It can be called from anywhere without any references needed.
Show file Open project: scastle/Solitude

Public Methods

Method Description
IsPaused ( ) : bool

Determines whether this instance is paused.

Pause ( ) : void

Pauses this instance.

Reset ( ) : void

Resets this instance.

Unpause ( ) : void

Unpauses this instance.

Update ( ) : void

Updates this instance. This needs to be called every game cycle.

Method Details

IsPaused() public static method

Determines whether this instance is paused.
public static IsPaused ( ) : bool
return bool

Pause() public static method

Pauses this instance.
public static Pause ( ) : void
return void

Reset() public static method

Resets this instance.
public static Reset ( ) : void
return void

Unpause() public static method

Unpauses this instance.
public static Unpause ( ) : void
return void

Update() public static method

Updates this instance. This needs to be called every game cycle.
public static Update ( ) : void
return void