Changeset 9bfc1cb in network-game for common/MessageContainer.h


Ignore:
Timestamp:
Dec 27, 2013, 8:55:07 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
3ff2bd7
Parents:
f63aa57
Message:

The ATTACK message has been removed and the START_ATTACK message has been renamed to ATTACK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageContainer.h

    rf63aa57 r9bfc1cb  
    2626#define MSG_TYPE_DROP_FLAG         11
    2727#define MSG_TYPE_SCORE             12
    28 #define MSG_TYPE_START_ATTACK      13
    29 #define MSG_TYPE_ATTACK            14
    30 #define MSG_TYPE_PROJECTILE        15
    31 #define MSG_TYPE_REMOVE_PROJECTILE 16
    32 #define MSG_TYPE_CREATE_GAME       17
    33 #define MSG_TYPE_JOIN_GAME         18
    34 #define MSG_TYPE_LEAVE_GAME        19
    35 #define MSG_TYPE_GAME_INFO         20
    36 #define MSG_TYPE_JOIN_GAME_SUCCESS 21
    37 #define MSG_TYPE_JOIN_GAME_FAILURE 22
    38 #define MSG_TYPE_JOIN_GAME_ACK     23
    39 #define MSG_TYPE_PLAYER_JOIN_GAME  24
    40 #define MSG_TYPE_FINISH_GAME       25
     28#define MSG_TYPE_ATTACK            13
     29#define MSG_TYPE_PROJECTILE        14
     30#define MSG_TYPE_REMOVE_PROJECTILE 15
     31#define MSG_TYPE_CREATE_GAME       16
     32#define MSG_TYPE_JOIN_GAME         17
     33#define MSG_TYPE_LEAVE_GAME        18
     34#define MSG_TYPE_GAME_INFO         19
     35#define MSG_TYPE_JOIN_GAME_SUCCESS 20
     36#define MSG_TYPE_JOIN_GAME_FAILURE 21
     37#define MSG_TYPE_JOIN_GAME_ACK     22
     38#define MSG_TYPE_PLAYER_JOIN_GAME  23
     39#define MSG_TYPE_FINISH_GAME       24
    4140
    4241typedef struct
     
    8180         case MSG_TYPE_DROP_FLAG: return "MSG_TYPE_DROP_FLAG";
    8281         case MSG_TYPE_SCORE: return "MSG_TYPE_SCORE";
    83          case MSG_TYPE_START_ATTACK: return "MSG_TYPE_START_ATACK";
    8482         case MSG_TYPE_ATTACK: return "MSG_TYPE_ATTACK";
    8583         case MSG_TYPE_PROJECTILE: return "MSG_TYPE_PROJECTILE";
    8684         case MSG_TYPE_REMOVE_PROJECTILE: return "MSG_TYPE_REMOVE_PROJECTILE";
     85         case MSG_TYPE_CREATE_GAME: return "MSG_TYPE_CREATE_GAME";
     86         case MSG_TYPE_JOIN_GAME: return "MSG_TYPE_JOIN_GAME";
     87         case MSG_TYPE_LEAVE_GAME: return "MSG_TYPE_LEAVE_GAME";
     88         case MSG_TYPE_GAME_INFO: return "MSG_TYPE_GAME_INFO";
     89         case MSG_TYPE_JOIN_GAME_SUCCESS: return "MSG_TYPE_JOIN_GAME_SUCCESS";
     90         case MSG_TYPE_JOIN_GAME_FAILURE: return "MSG_TYPE_JOIN_GAME_FAILURE";
     91         case MSG_TYPE_JOIN_GAME_ACK: return "MSG_TYPE_JOIN_GAME_ACK";
     92         case MSG_TYPE_PLAYER_JOIN_GAME: return "MSG_TYPE_PLAYER_JOIN_GAME";
     93         case MSG_TYPE_FINISH_GAME: return "MSG_TYPE_FINISH_GAME";
    8794         default: return "Unknown";
    8895      }
Note: See TracChangeset for help on using the changeset viewer.