API Docs for: 0.0.2
Show:

Atlantis.DrawableGameComponent Class

Module: Framework
Parent Module: Atlantis

Create a drawable game component.

Constructor

Atlantis.DrawableGameComponent

(
  • game
)

Parameters:

Methods

@setEnabled

(
  • enabled
)

Gets the status of the component.

Parameters:

  • enabled Boolean

    Sets to true to enable

add

(
  • A
)

Add a component to the collection

Parameters:

draw

(
  • gameTime
  • context
)

Draw the component on screen.

Parameters:

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.

isInitialized

() Boolean

Flags used to determine if the initialization processes is done.

Returns:

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.

setVisible

(
  • visible
)

Set the component visible or invisible

Parameters:

unloadContent

()

Unload and dispose all assets of the component.

unloadContent

()

Unload assets

update

(
  • gameTime
)

Update all components

Parameters: