Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2007, 5:20:23 PM (16 years ago)
Author:
nicolasc
Message:

merge network

File:
1 edited

Legend:

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

    r278 r332  
    33
    44#include <enet/enet.h>
     5#include <network/GameStateManager.h>
    56
    67//enum netowk generaly used to set the type ID of a packet
     
    1112        MOUSE,
    1213        KEYBOARD,
    13         CHAT
     14        CHAT,
     15        GAMESTATE
    1416};
    1517
     
    1719 * class to generate packets
    1820 *
    19  * Autor: Dumeni Manatschal
     21 * @autor: Dumeni Manatschal
    2022 *
    2123*/
     
    2931        ENetPacket* keystrike( char press, int reliable = ENET_PACKET_FLAG_RELIABLE );
    3032        ENetPacket* chatMessage( const char* message, int reliable = ENET_PACKET_FLAG_RELIABLE );
     33        ENetPacket* gstate( GameState* states, int reliable = ENET_PACKET_FLAG_RELIABLE );
    3134private:
    3235        //used to set the bytes in the right order
     
    5154 * class used to decode incoming packets
    5255 *
    53  * Autor: Dumeni Manatschal
     56 * @autor: Dumeni Manatschal
    5457 *
    5558*/
     
    8790        void keystrike( ENetPacket* packet );
    8891        void chatMessage( ENetPacket* packet );
     92        void gstate( ENetPacket* packet );
    8993       
    9094        //print functions
     
    9397        void printKey( keyboard* data );
    9498        void printChat( chat* data );
    95         void printPeer( ENetPeer* peer );
     99        void printGamestate( GameState* data );
    96100};
    97101}
Note: See TracChangeset for help on using the changeset viewer.