![]() |
Gorgon Game Engine
|
This class governs the progress of animations. More...
Public Member Functions | |
virtual | ~Governor () |
Destroys this governor. If it is the active governor, default governor will be activated. More... | |
virtual void | Activate () |
Activates this governor, replacing current one. More... | |
virtual void | Animate () const |
Animates the animations within this governor. More... | |
Static Public Member Functions | |
static Governor & | Active () |
Returns the current governor. More... | |
static Governor & | Default () |
Returns the default governor. More... | |
This class governs the progress of animations.
There might be multiple governors. There is always an active governor. Unless overridden, active governor will progress the animations by the deltatime of the current frame. A governor that is destroyed will move its controllers to the currently active governor. If this governor is active, it will automatically activate the default governor.
|
virtual |
Destroys this governor. If it is the active governor, default governor will be activated.
References Governor::Active().
|
virtual |
Activates this governor, replacing current one.
Reimplemented in Scene.
|
static |
Returns the current governor.
If there is no current active governor, default governor will be returned.
References Governor::Default().
|
virtual |
Animates the animations within this governor.
This function for the animator is called every frame by the main system. Thus calling it second time within the same frame will cause animations to progress twice.
References Gorgon::Time::DeltaTime().
|
static |
Returns the default governor.