Changeset d05c484 in network-game for common/MessageProcessor.cpp


Ignore:
Timestamp:
Jan 19, 2014, 7:40:55 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
e5697b1
Parents:
6054f1e
Message:

Some game-specific functions moved from server.cpp to the Game class and a function moved to the MessageProcessor class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageProcessor.cpp

    r6054f1e rd05c484  
    9595}
    9696
     97void MessageProcessor::broadcastMessage(NETWORK_MSG &msg, map<unsigned int, Player*>& players) {
     98   map<unsigned int, Player*>::iterator it;
     99   for (it = players.begin(); it != players.end(); it++) {
     100      this->sendMessage(&msg, &(it->second->addr));
     101   }
     102}
     103
    97104void MessageProcessor::resendUnackedMessages() {
    98105   map<unsigned int, map<unsigned long, MessageContainer> >::iterator it;
Note: See TracChangeset for help on using the changeset viewer.