Changeset 48801af in network-game for common/Player.cpp


Ignore:
Timestamp:
Nov 11, 2014, 1:20:11 AM (10 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
85da778
Parents:
c941e07
Message:

Use an enum for the player's team

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    rc941e07 r48801af  
    3030   this->range = 0;
    3131   this->attackCooldown = 0;
    32    this->team = 0;   // no team by default
     32   this->team = TEAM_NONE;
    3333   this->hasBlueFlag = false;
    3434   this->hasRedFlag = false;
     
    104104   this->range = 0;
    105105   this->attackCooldown = 0;
    106    this->team = 0;   // no team by default
     106   this->team = TEAM_NONE;
    107107   this->hasBlueFlag = false;
    108108   this->hasRedFlag = false;
Note: See TracChangeset for help on using the changeset viewer.