
class mygame {
public:
void startgame(); // returns immediately
};
now whenever the game is finished, the class wants to tell the others
about this. this can be done by events, overloading or other ill concepts.
in signals and slots way of doing things, mygame would emit a signal
called gameterminated() and if someone is connected to the signal
he will receive the information in his slot function.
This explanation was just for filtering out uninterested users ;) you should
read the documentation of libsigc++ (see below) for much better explanation.
| (erikyyy at erikyyy dot de, Erik Thiele) | back |