Node

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addChild
Node addChild(Node node)

Add child. Return parent for chaining.

doUpdate
void doUpdate(double deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.
drawOnCanvas
void drawOnCanvas(Canvas* canvas)

Draw Node and its children on this canvas. This call their draw() methods recursively, using each Node2D transform. Usually you would take the one returned by the Game.canvas() call.

getChildren
Node[] getChildren()
Undocumented in source. Be warned that the author may not have intended to support it.
getParent
Node getParent()

Returns the parent node of the current node, or null if the node lacks a parent.

removeChild
void removeChild(Node node)

Removes a child node. The node is NOT deleted and must be deleted manually.

update
void update(double deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta