Messages |
when | string, multiple string | configure messages to send in response to an event |
addChild | string | add the given node as a child |
removeChild | string | add the given node as a child |
debug | string, [bool] | turn debuging on and off |
multiple string | print the arguments to standard output | |
reset | reset and send initial messages | |
event | string, [multiple string] | generate an event with arguments of the form "arg=val" |
unreliablekey | string | create an unreliable key |
reliablekey | string | create a reliable key |
resetTree | reset the tree from this node down | |
create | string, [string] | create a new child node with optional name |
message | string | receive net messages |
Events |
msg.stringArg(0) | msg.stringArg(i) | process event messages with arguments |
msg.stringArg(0) | process event messages without arguments |
Debugs |
NetMessages | print out all messages sent over the network |
Messages | print out all messages received |
Comments |
constructor ygNode
1 if createPfNode flag set then create a new group node
2 print out all messages sent over the network
3 print out all messages received
4 distribute list of children nodes
5 distribute network messages
destructor ~ygNode
method reset
1 clear event messages
2 send intitial messages
method sendInitMessages
method message
1 configure messages to send in response to an event
2 add the given node as a child
3 turn debuging on and off
4 print the arguments to standard output
5 reset and send initial messages
6 generate an event with arguments of the form "arg=val"
6.0.0.1 process event messages with arguments
6.0.0.1 process event messages without arguments7 create an unreliable key
8 create a reliable key
9 reset the tree from this node down
10 create a new child node with optional name
11 receive net messages
method when
method clearEventMessages
method unreliableMessage
method reliableMessage
method resetTree
1 reset this node
2 call resetTree recursively on all children
method appTraverse
1 start timing
2 execute app method
3 call appTraverse recursively on all children
4 end timing
method eventOccurred
1 add new event to events queue
method app
1 while events queue not empty
1.1 respond to front event, pop, and delete
method updateDebug
method parent
method numChildren
method child
method addChild
1 if net master or doLocal is set
1.1 if child has a parent have it remove the child2 else, generate an addChild message and send
1.2 set the parent of the child to this node
1.3 bubble up the changes mask
1.4 push the child to the back of children vector
1.5 establish parent/child relationship for associated pfnodes
1.6 set and bubble up child changed mask
method removeChild
1 if net master or doLocal is set
1.1 while searching children2 else, generate a removeChild message and send
1.2 if child is found
1.2.1 remove child
1.2.2 undo parent/child relationship for associated pfnodes
1.2.3 set changed mask
method setClassName
method className
method classDerivation
method isOfClass
method netClassName
method name
method addInitMessage
method clearInitMessages
method getInitMessages
method getNetMessages
method setPfNode
method setChanged
method isChanged
method pfnode
method debugFlag
method origin
1 if node is given get position relative to the node
2 else, get absolute position of this node
method getTransform
method getParentTransform
method removeAllChildren
method updateChildrenMessage
method addNetMessage
method addNetMessageMap
method resetNetMessage
method sendNetMessage
method sendNetMessage
method receiveNetMessage
method getNetMessageArg
method sendMessage
method parseNetMessage
method netMessageChanged
method dontSendNetMessage
method doSendNetMessage
method dontSaveNetMessage
method requestNetMessages
method isNetMaster
method timingBegin
method timingAppDone
method timingEnd
method printMessages
method printTimingStats