// $Id: HandleOsMatchDelta.htm 119 2004-05-16 00:02:24Z ggs_mburo $ // This is a GGS file, licensed under the GPL
ggsstream::HandleOsMatchDelta(const CMsgOsMatchDelta* pmsg)
/os sends this message when a match begins or ends. End-of-match messages are sent even if the match terminates abnormally (e.g. one player leaves).
Override this function in CODKStream:
BaseOsMatchDelta() updates the match list. For match end messages it also calls HandleOsGameOver() which deletes the games from the games list. Therefore call BaseOsMatchDelta() after you have done any game-specific processing. Learning is better handled in HandleOsGameOver() as you will get one message per game rather than one message per match.
StartMatch is a user-defined function:
void CODKStream::HandleOsMatchDelta(const CMsgOsMatchDelta* pmsg) { if (pmsg->fPlus) { StartMatch(pmsg->match); } BaseOsMatchDelta(pmsg); }