Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2007, 12:42:46 PM (16 years ago)
Author:
scheusso
Message:

extended gamestatehandling for diffed and not diffed gamestates (initial states, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/ConnectionManager.h

    r400 r436  
    2323#include <boost/bind.hpp>
    2424// headerfiles
     25#include "ClientInformation.h"
    2526#include "ConnectionManager.h"
    2627#include "PacketBuffer.h"
     
    4748  class ConnectionManager{
    4849    public:
    49     ConnectionManager();
    50     ConnectionManager(int port, const char *address);
    51     ConnectionManager(int port, std::string address);
     50    ConnectionManager(ClientInformation *head);
     51    ConnectionManager(int port, const char *address, ClientInformation *head);
     52    ConnectionManager(int port, std::string address, ClientInformation *head);
    5253    ENetPacket *getPacket(ENetAddress &address); // thread1
    5354    ENetPacket *getPacket(int &clientID);
     
    6061    bool sendPackets(ENetEvent *event);
    6162    bool sendPackets();
    62     private:
     63  private:
    6364    bool clientDisconnect(ENetPeer *peer);
    64     bool clientDisconnect(ENetPeer peer);
     65    //bool clientDisconnect(ENetPeer peer);
    6566    bool processData(ENetEvent *event);
    6667    bool addClient(ENetEvent *event);
     
    7071    int getClientID(ENetAddress address);
    7172    void syncClassid(int clientID);
    72     ENetPeer getClientPeer(int clientID);
     73    ENetPeer *getClientPeer(int clientID);
    7374    PacketBuffer buffer;
    7475    PacketGenerator packet_gen;
     
    7879   
    7980    bool quit; // quit-variable (communication with threads)
    80     std::map<ENetAddress, int> clientMap;
    81     std::map<ENetAddress, ENetPeer> peerMap;
    82     std::vector<ENetAddress> clientVector;
     81    ClientInformation *head_;
    8382  };
    8483
Note: See TracChangeset for help on using the changeset viewer.