Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2008, 7:40:47 PM (16 years ago)
Author:
scheusso
Message:

merged network branch back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/Client.h

    r1735 r1907  
    7373    bool closeConnection();
    7474    bool queuePacket(ENetPacket *packet, int clientID);
    75     bool processChat(packet::Chat *message, unsigned int clientID);
     75    bool processChat(std::string message, unsigned int playerID);
     76    virtual bool chat(std::string message);
    7677    //bool sendChat(packet::Chat *chat);
    7778   
    7879//    static void Chat( std::string message );
    7980   
    80     unsigned int shipID(){return shipID_;}
    81     int playerID(){return clientID_;}
    8281    //static void setShipID( unsigned int shipID){ dynamic_cast<Client *>(instance_)->shipID_=shipID; }
    8382    static void setClientID( unsigned int clientID){ dynamic_cast<Client *>(instance_)->clientID_=clientID; }
     
    8685
    8786  private:
     87    virtual bool isServer_(){return false;}
    8888   
    8989    ClientConnection client_connection;
     
    9191    bool isConnected;
    9292    bool isSynched_;
    93 
    94     bool sendChat( std::string message );
    9593   
    96     // implement data processing functions of PacketDecoder
    97 //     void processChat( chat *data, int clientId );
    98     int clientID_;     // this is the id the server gave to us
    99     int shipID_;
    10094    bool gameStateFailure_;
    10195  };
Note: See TracChangeset for help on using the changeset viewer.