Changeset ff2133a in network-game for common/Projectile.cpp
- Timestamp:
- Jun 11, 2013, 1:24:09 AM (12 years ago)
- Branches:
- master
- Children:
- 5b1e31e
- Parents:
- 11d21ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Projectile.cpp
r11d21ee rff2133a 72 72 73 73 bool Projectile::move(map<unsigned int, Player>& mapPlayers) { 74 // if the current target logs off, this method will run into problems 75 76 //cout << "Inside projectile move" << endl; 77 74 78 unsigned long long curTime = getCurrentMillis(); 75 79 Player targetP = mapPlayers[target]; … … 85 89 float dist = sqrt(pow(targetP.pos.x-pos.x, 2) + pow(targetP.pos.y-pos.y, 2)); 86 90 91 //cout << "About to finish projectile move" << endl; 92 87 93 if (dist <= pixels) { 88 94 pos.x = targetP.pos.x;
Note:
See TracChangeset
for help on using the changeset viewer.