- Timestamp:
- Jun 9, 2013, 9:30:32 PM (12 years ago)
- Branches:
- master
- Children:
- ff2133a
- Parents:
- 8c74150
- Location:
- common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Player.cpp
r8c74150 r11d21ee 17 17 this->timeLastUpdated = 0; 18 18 this->timeAttackStarted = 0; 19 this->isChasing = false; 19 20 this->isAttacking = false; 20 21 … … 24 25 this->attackType = ATTACK_NONE; 25 26 this->damage = 0; 27 this->range = 0; 26 28 this->attackCooldown = 0; 27 29 this->team = 0; // blue team by default … … 42 44 this->timeLastUpdated = p.timeLastUpdated; 43 45 this->timeAttackStarted = p.timeAttackStarted; 46 this->isChasing = p.isChasing; 44 47 this->isAttacking = p.isAttacking; 45 48 … … 49 52 this->attackType = p.attackType; 50 53 this->damage = p.damage; 54 this->range = p.range; 51 55 this->attackCooldown = p.attackCooldown; 52 56 this->team = p.team; … … 65 69 this->timeLastUpdated = 0; 66 70 this->timeAttackStarted = 0; 71 this->isChasing = false; 67 72 this->isAttacking = false; 68 73 … … 72 77 this->attackType = ATTACK_NONE; 73 78 this->damage = 0; 79 this->range = 0; 74 80 this->attackCooldown = 0; 75 81 this->team = 0; // blue team by default … … 100 106 this->attackType = ATTACK_MELEE; 101 107 this->damage = 10; 108 this->range = 30; 102 109 this->attackCooldown = 800; 103 110 break; … … 107 114 this->attackType = ATTACK_RANGED; 108 115 this->damage = 6; 116 this->range = 100; 109 117 this->attackCooldown = 1000; 110 118 break; -
common/Player.h
r8c74150 r11d21ee 59 59 unsigned long long timeLastUpdated; 60 60 unsigned long long timeAttackStarted; 61 bool isChasing; 61 62 bool isAttacking; 62 63 int targetPlayer; … … 67 68 int attackType; 68 69 int damage; 70 int range; 69 71 unsigned long long attackCooldown; 70 72 int team; // 0 is blue, 1 is red
Note:
See TracChangeset
for help on using the changeset viewer.