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


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.h

    r6054f1e rd05c484  
    55
    66#include "MessageContainer.h"
     7#include "Player.h"
    78
    89using namespace std;
     
    2930   int sendMessage(NETWORK_MSG *msg, struct sockaddr_in *dest);
    3031   int receiveMessage(NETWORK_MSG *msg, struct sockaddr_in *source);
     32   void broadcastMessage(NETWORK_MSG &msg, map<unsigned int, Player*>& players);
    3133   void resendUnackedMessages();
    3234   void cleanAckedMessages();
Note: See TracChangeset for help on using the changeset viewer.