Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 31, 2007, 7:40:23 PM (16 years ago)
Author:
rgrieder
Message:
  • added dll support to the network library
  • improved header file dependency in network
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/PacketTypes.h

    r673 r777  
    1414#define _PacketTypes_H__
    1515
    16 namespace network{
    17 enum packet_id {
    18   ACK,
    19   MOUSE,
    20   KEYBOARD,
    21   CHAT,
    22   GAMESTATE ,
    23   CLASSID
    24 };
     16#include "NetworkPrereqs.h"
     17
     18namespace network
     19{
     20  enum packet_id {
     21    ACK,
     22    MOUSE,
     23    KEYBOARD,
     24    CHAT,
     25    GAMESTATE ,
     26    CLASSID
     27  };
    2528
    2629
    2730  /**
    28    * This struct defines a gamestate:
    29    * size: total size of the data in *data
    30    * data: pointer to the data allocated in the memory
    31    */
     31  * This struct defines a gamestate:
     32  * size: total size of the data in *data
     33  * data: pointer to the data allocated in the memory
     34  */
    3235  struct GameState{
    3336    int id;
     
    3942
    4043  /**
    41    * this struct defines a gamestate:
    42    * compsize is the size of the compressed data
    43    * normsize is the size of the uncompressed data
    44    * data are the gamestates
    45    */
     44  * this struct defines a gamestate:
     45  * compsize is the size of the compressed data
     46  * normsize is the size of the uncompressed data
     47  * data are the gamestates
     48  */
    4649  struct GameStateCompressed{
    4750    int id;
     
    7679    char press;
    7780  };
    78         //only in this class, not PacketGenerator, used as pattern to put incoming
    79         //bytes inside
     81  //only in this class, not PacketGenerator, used as pattern to put incoming
     82  //bytes inside
    8083  struct chat {
    8184    int id;
Note: See TracChangeset for help on using the changeset viewer.