Class

Module: engine.game

Base class that every class extends from.

Methods

extend(prop) Class Static

Extend class.

Parameters:

  • prop Object
init(arguments) Boolean

Called, when creating new instance of class.

Parameters:

  • arguments Array

return true, to skip adding class with update function automatically to the scene.

inject(prop) Static

Inject class.

Parameters:

  • prop Object
staticInit(arguments) Boolean

Called before init.

Parameters:

  • arguments Array

return true, to skip init function.

Attributes

_extend String

Name of the class that this class is extended from.

_name String

Name of the class.