#include <node.h>
Inheritance diagram for Node:
Public Member Functions | |
Node (World *par) | |
update class pointer to parent | |
~Node () | |
virtual void | RecieveSignal (const string &id, Signal &sig) |
Recieve and Interpret a signal. | |
Protected Member Functions | |
void | Broadcast (const string &id, Signal &sig) |
Send a signal to parent to broadcast. | |
void | SendSignal (const string &name, const string &id, Signal &sig) |
Send a signal to parent to relay. | |
Private Attributes | |
World * | parent |
Node's Parent. |
This class is the class inherited by each node. Node's are different part's of the application, and can be thought of as little clients. Signals are recieved and sent as strings.
|
update class pointer to parent
|
|
|
|
Send a signal to parent to broadcast. Broadcast should not be overriden as it is used to communicate with the other nodes, via the parent |
|
Recieve and Interpret a signal. RecieveSignal should be overriden, by all derived node classes Reimplemented in AreaNode, BackgroundNode, and StartUpResourceNode.
|
|
Send a signal to parent to relay. SendSignal should not be overriden as it is used to communicate with the other nodes, via the parent |
|
Node's Parent.
|