Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 5, 2008, 1:19:22 AM (16 years ago)
Author:
scheusso
Message:

a lot of changes in order to make it possible to have mulpiple clients with each one a new ship
camera changes
object changes
synchronisable: backsyncronisation should be possible now
gamestatemanager/gamestateclient: functions for backsyncronisation
some changes in order to get the input system (the old one) on the client working
TODO something with the camera position is wrong at the moment (clientside)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/network/PacketManager.h

    r1168 r1232  
    5454    //call one of this functions out of an instance of PacketGenerator to create a packet
    5555    ENetPacket* acknowledgement( int state, int reliable = ENET_PACKET_FLAG_RELIABLE );
     56    ENetPacket* command( int dataLength, void *data, int reliable = ENET_PACKET_FLAG_RELIABLE );
    5657    ENetPacket* mousem( double x, double y, int reliable = ENET_PACKET_FLAG_RELIABLE );
    5758    ENetPacket* keystrike( char press, int reliable = ENET_PACKET_FLAG_RELIABLE );
     
    5960    ENetPacket* gstate( GameStateCompressed *states, int reliable = ENET_PACKET_FLAG_RELIABLE );
    6061    ENetPacket* clid( int classid, std::string classname, int reliable = ENET_PACKET_FLAG_RELIABLE );
     62    ENetPacket* generateWelcome( int clientID,int shipID, bool allowed, int reliable = ENET_PACKET_FLAG_RELIABLE );
     63    ENetPacket* generateConnectRequest( int reliable = ENET_PACKET_FLAG_RELIABLE );
    6164  private:
    6265  };
     
    8588
    8689    void acknowledgement( ENetPacket* packet, int clientId = CLIENTID_CLIENT );
     90    bool command( ENetPacket* packet, int clientId );
    8791    void mousem( ENetPacket* packet, int clientId = CLIENTID_CLIENT );
    8892    void keystrike( ENetPacket* packet, int clientId = CLIENTID_CLIENT );
     
    9094    void gstate( ENetPacket* packet );
    9195    void clid( ENetPacket *packet);
     96    bool decodeWelcome( ENetPacket* packet, int clientID = CLIENTID_CLIENT );
     97    bool decodeConnectRequest( ENetPacket *packet, int clientID = CLIENTID_CLIENT );
    9298
    9399    //process data
     
    96102    virtual void processAck( ack *data, int clientID);
    97103    virtual void processClassid( classid *cid);
     104    virtual bool processWelcome( welcome *w );
     105    virtual bool processConnectRequest( connectRequest *con, int clientID );
    98106    //virtual void processAck( ack *data);
    99107
Note: See TracChangeset for help on using the changeset viewer.