- Timestamp:
- Nov 11, 2014, 1:20:11 AM (10 years ago)
- Branches:
- master
- Children:
- 85da778
- Parents:
- c941e07
- Location:
- common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Player.cpp
rc941e07 r48801af 30 30 this->range = 0; 31 31 this->attackCooldown = 0; 32 this->team = 0; // no team by default32 this->team = TEAM_NONE; 33 33 this->hasBlueFlag = false; 34 34 this->hasRedFlag = false; … … 104 104 this->range = 0; 105 105 this->attackCooldown = 0; 106 this->team = 0; // no team by default106 this->team = TEAM_NONE; 107 107 this->hasBlueFlag = false; 108 108 this->hasRedFlag = false; -
common/Player.h
rc941e07 r48801af 39 39 ATTACK_MELEE, 40 40 ATTACK_RANGED 41 }; 42 43 enum PlayerTeam { 44 TEAM_NONE, 45 TEAM_BLUE, 46 TEAM_RED 41 47 }; 42 48 … … 84 90 int range; 85 91 unsigned long long attackCooldown; 86 int team; // 0 is none, 1 is blue, 2 is red92 PlayerTeam team; 87 93 bool hasBlueFlag; 88 94 bool hasRedFlag;
Note:
See TracChangeset
for help on using the changeset viewer.