Changeset c991530 in network-game


Ignore:
Timestamp:
Jan 26, 2014, 10:04:27 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
b29ff6b
Parents:
c51da03
Message:

The playerClass instance variable of the Player class is now an enum instead of an int

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • client/Client/GameRender.cpp

    rc51da03 rc991530  
    114114         strClass = "";
    115115         break;
    116       default:
    117          strClass = "";
    118          break;
    119116      }
    120117      al_draw_text(font, al_map_rgb(0, 0, 0), pos.x, pos.y-fontHeight/2, ALLEGRO_ALIGN_CENTRE, strClass.c_str());
  • common/Player.h

    rc51da03 rc991530  
    7575   bool isDead;
    7676
    77    int playerClass;
     77   PlayerClass playerClass;
    7878   int maxHealth;
    7979   int health;
  • server/server.cpp

    rc51da03 rc991530  
    289289               validClass = true;
    290290               break;
    291             default:
     291            case Player::CLASS_NONE:
    292292               validClass = false;
    293293               break;
Note: See TracChangeset for help on using the changeset viewer.