Represents a timer used in a game.
Creates a new Timer instance.
The game object.
Optional
The initial time value for the timer.
The time value for the timer.
Gets the percentage of time remaining for the timer.
The percentage value between 0 and 100.
Gets the elapsed time since the timer was set.
The elapsed time in milliseconds.
Checks if the timer is active.
True if the timer is active, false otherwise.
Checks if the timer is done.
True if the timer is done, false otherwise.
Checks if the timer is set.
True if the timer is set, false otherwise.
Sets the time value for the timer.
The time value to set.
Unsets the time value for the timer.
Represents a timer used in a game.