Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2008, 1:37:39 PM (16 years ago)
Author:
dumenim
Message:

some functions for clientID↔objectID mapping added

File:
1 edited

Legend:

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

    r790 r880  
    2020#include "PacketBuffer.h"
    2121#include "PacketManager.h"
     22#include "map"
    2223
    2324namespace std
     
    7374    bool quit; // quit-variable (communication with threads)
    7475    ClientInformation *head_;
     76   
     77    //functions to map what object every clients uses
     78    std::map<int, std::string> clientsShip;
     79    void regClientsObjectID( int clientID, std::string objectID );
     80    std::string getClientsShipID( int clientID );
     81    int getObjectsClientID( std::string objectID );
     82    void deleteClientIDReg( int clientID );
     83    void deleteObjectIDReg( std::string objectID );
    7584  };
    76 
    77 
    78 
    79 
    80 
    81 
    82 
    83 
    8485}
    8586
Note: See TracChangeset for help on using the changeset viewer.