Messages |
detect | string | set the type of node to detect |
Events |
enter | node | the node has entered the space |
exit | node | the node has exited the space |
Debugs |
inside |
Comments |
constructor nodeTrigger
destructor ~nodeTrigger
method reset
1 clear set of nodes previously inside
method message
1 set the type of node to detect
method setDetectType
method app
1 for each node of detect type in the world
1.1 if node is within the space2 for each node previously inside
1.1.1 add to set of nodes inside
1.1.2 if inside but not previously then generate enter event
1.1.2.1 the node has entered the space
2.1 if not currently inside then generate exit event3 the node has exited the space