Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2007, 12:28:19 AM (16 years ago)
Author:
scheusso
Message:

PacketDecoder:

Extended Class to make inheriting easier…

-added virtual function, that can be implemented by lower classes

Client:

Added some function, changed some things (input, gamestate, connectionhandling)

Server:

same as client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/PacketDecoder.cc

    r341 r369  
    100100        enet_packet_destroy( packet );
    101101       
    102         printChat( chatting ); //debug info
     102        processChat( chatting ); //debug info
    103103       
    104104}
     
    118118        //copy the gamestate data
    119119        memcpy( (void*)(currentState->data), (const void*)(data+3*sizeof( int )), currentState->size );
    120        
     120 
    121121        //clean memory
    122122        enet_packet_destroy( packet );
     123  //run processGamestate
     124  processGamestate(currentState);
     125}
     126
     127// now the data processing functions:
     128
     129void PacketDecoder::processChat( chat *data){
     130  printChat(data);
    123131}
    124132
Note: See TracChangeset for help on using the changeset viewer.