TimerComponent class
Simple component which wraps a Timer instance allowing it to be easily used inside a BaseGame game.
Constructors
- TimerComponent(Timer timer)
Properties
Methods
-
destroy(
) → bool -
Whether this should be destroyed or not. [...]
override
-
isHud(
) → bool -
Whether this component is HUD object or not. [...]
inherited
-
loaded(
) → bool -
Whether this component has been loaded yet. If not loaded, BaseGame will not try to render it. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onDestroy(
) → void -
Called right before the component is destroyed and removed from the game
inherited
-
onMount(
) → void -
Called when the component has been added and preperad by the game instance. [...]
inherited
-
priority(
) → int -
Render priority of this component. This allows you to control the order in which your components are rendered. [...]
inherited
-
render(
Canvas canvas) → void -
Renders this component on the provided Canvas
c
.override -
resize(
Size size) → void -
This is a hook called by BaseGame to let this component know that the screen (or flame draw area) has been update. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
update(
double dt) → void -
This method is called periodically by the game engine to request that your component updates itself. [...]
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited