// $Id: CMsgOs.htm 119 2004-05-16 00:02:24Z ggs_mburo $ // This is a GGS file, licensed under the GPL
Messages from the Reversi server (/os) are subclasses of CMsgOs.
CMsgOs member functions allow you to access the list of games, matches, and match requests.
Some subclasses have UpdateOs() functions that update the lists. The default message handlers in OsMsgHandlers.cpp and call UpdateOs() if needed, and call CMsgOs::Handle().
The default message handler calls CMsg::Handle(); edit the Handle() code to change this.
Handler | |
void Handle() | Default handler for /os messages (default calls CMsg::Handle()) |
Access to persistent data | |
COsGame* PGame(const string& idg) const | Return a pointer to a game, or NULL if no such game |
COsMatch* PMatch(const string& idm) const | Return a pointer to a match, or NULL if no such match |
COsRequest* PRequest(const string& idr) const | Return a pointer to a match request, or NULL if no such request |
COs& Os() const | Return the COs object that holds the games, matches, and requests. |