GameObject Class
Game object interface (prototype).
Public Properties
- isDirty
boolean
: Indicates if the object is dirty (needs update).
Public Methods
new(object)
Constructor for use in subclass declaration.
Parameters:
object
table (optional)
: Required for subclassingGameObject
.
Returns:
GameObject
: NewGameObject
object.
class()
Returns the specific class of the object.
Returns:
GameObject
: Class object.
objectInteracted()
Notifies the object of interaction.