Changeset 8dad966 in network-game for common/Message.h


Ignore:
Timestamp:
Jun 3, 2013, 11:05:20 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
d03ec0f
Parents:
8a4ed74
Message:

Added server support for player attack animations and cooldowns and firing projectiles for ranged attacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Message.h

    r8a4ed74 r8dad966  
    22#define _MESSAGE_H
    33
    4 #define MSG_TYPE_REGISTER      1
    5 #define MSG_TYPE_LOGIN         2
    6 #define MSG_TYPE_LOGOUT        3
    7 #define MSG_TYPE_CHAT          4
    8 #define MSG_TYPE_PLAYER        5  // server sends this to update player positions
    9 #define MSG_TYPE_PLAYER_MOVE   6  // client sends this when a player wants to move
    10 #define MSG_TYPE_OBJECT        7
    11 #define MSG_TYPE_REMOVE_OBJECT 8
    12 #define MSG_TYPE_PICKUP_FLAG   9
    13 #define MSG_TYPE_DROP_FLAG     10
    14 #define MSG_TYPE_SCORE         11
    15 #define MSG_TYPE_START_ATTACK  12
    16 #define MSG_TYPE_ATTACK        13
     4#define MSG_TYPE_REGISTER          1
     5#define MSG_TYPE_LOGIN             2
     6#define MSG_TYPE_LOGOUT            3
     7#define MSG_TYPE_CHAT              4
     8#define MSG_TYPE_PLAYER            5  // server sends this to update player positions
     9#define MSG_TYPE_PLAYER_MOVE       6  // client sends this when a player wants to move
     10#define MSG_TYPE_OBJECT            7
     11#define MSG_TYPE_REMOVE_OBJECT     8
     12#define MSG_TYPE_PICKUP_FLAG       9
     13#define MSG_TYPE_DROP_FLAG         10
     14#define MSG_TYPE_SCORE             11
     15#define MSG_TYPE_START_ATTACK      12
     16#define MSG_TYPE_ATTACK            13
     17#define MSG_TYPE_PROJECTILE        14
     18#define MSG_TYPE_REMOVE_PROJECTILE 14
    1719
    1820typedef struct
Note: See TracChangeset for help on using the changeset viewer.