Changeset b35b2b2 in network-game for common/MessageContainer.cpp


Ignore:
Timestamp:
Jul 29, 2013, 10:32:59 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
d05086b
Parents:
297682c
Message:

Added a basic ingame debug console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageContainer.cpp

    r297682c rb35b2b2  
    4848   this->timeAcked = time;
    4949}
     50
     51/*
     52string getMsgTypeString(int msgType) {
     53   switch(msgType) {
     54      case MSG_TYPE_ACK: return "MSG_TYPE_ACK";
     55      case MSG_TYPE_REGISTER: return "MSG_TYPE_REGISTER";
     56      case MSG_TYPE_LOGIN: return "MSG_TYPE_LOGIN";
     57      case MSG_TYPE_LOGOUT: return "MSG_TYPE_LOGOUT";
     58      case MSG_TYPE_CHAT: return "MSG_TYPE_CHAT";
     59      case MSG_TYPE_PLAYER: return "MSG_TYPE_PLAYER";
     60      case MSG_TYPE_PLAYER_MOVE: return "MSG_TYPE_PLAYER_MOVE";
     61      case MSG_TYPE_OBJECT: return "MSG_TYPE_OBJECT";
     62      case MSG_TYPE_REMOVE_OBJECT: return "MSG_TYPE_REMOVE_OBJECT";
     63      case MSG_TYPE_PICKUP_FLAG: return "MSG_TYPE_PICKUP_FLAG";
     64      caseMSG_TYPE_DROP_FLAG: return "MSG_TYPE_DROP_FLAG";
     65      case MSG_TYPE_SCORE: return "MSG_TYPE_SCORE";
     66      case MSG_TYPE_START_ATTACK: return "MSG_TYPE_START_ATACK";
     67      case MSG_TYPE_ATTACK: return "MSG_TYPE_ATTACK";
     68      case MSG_TYPE_PROJECTILE: return "MSG_TYPE_PROJECTILE";
     69      case MSG_TYPE_REMOVE_PROJECTILE: return "MSG_TYPE_REMOVE_PROJECTILE";
     70      default: return "Unknown";
     71   }
     72}
     73*/
Note: See TracChangeset for help on using the changeset viewer.