Atlantis.DrawableGameComponent Class
Create a drawable game component.
Constructor
Item Index
Methods
@setEnabled
(
-
enabled
Gets the status of the component.
Parameters:
-
enabled
BooleanSets to true to enable
add
(
-
A
Add a component to the collection
Parameters:
-
A
Atlantis.GameComponentcomponent or drawable gameComponent to add.
draw
(
-
gameTime
-
context
Draw the component on screen.
Parameters:
-
gameTime
Atlantis.GameTime -
context
ObjectThe canvas context.
draw
()
Draw all components
get
()
Get a component from the collection
initialize
()
Initialize logic.
isEnabled
()
Boolean
Gets the status of the component.
Returns:
Boolean:
The status of the component.
isVisible
()
Boolean
Gets the visibility of the component.
Returns:
Boolean:
Return true if visible otherwise return false
loadContent
()
Load assets of the component.
loadContent
()
Load assets
remove
()
Boolean
Remove a component from the collection
Returns:
Boolean:
Return true if the component has been successfully removed.
unloadContent
()
Unload and dispose all assets of the component.
unloadContent
()
Unload assets