#include <world.h>
Public Member Functions | |
| World () | |
| ~World () | |
| void | Register (const string &name, Node &newnode) |
| Add a node to our server. | |
| void | Broadcast (const string &id, Signal &sig) |
| Send signal and identifier to all nodes. | |
| void | SendSignal (const string &name, const string &id, Signal &sig) |
| Same as broadcast, except a specific node can be signalled. | |
Private Attributes | |
| map< string, Node * > | nodes |
| Nodes are stored in a hash (named array). | |
This is the main server, whereby each section of the program has to register with this class, to enable signalling with the other 'nodes'.
|
|
|
|
|
|
|
||||||||||||
|
Send signal and identifier to all nodes. An example could be Broadcast("KeyPress",buttons_pressed) |
|
||||||||||||
|
Add a node to our server.
|
|
||||||||||||||||
|
Same as broadcast, except a specific node can be signalled.
|
|
|
Nodes are stored in a hash (named array).
|
1.3.8