Changeset 7c52498 in network-game
- Timestamp:
- Jun 17, 2013, 2:26:55 AM (11 years ago)
- Branches:
- master
- Children:
- 1d0ede1
- Parents:
- 02fa8fd
- git-author:
- dportnoy <dmp1488@…> (06/17/13 02:21:31)
- git-committer:
- dportnoy <dmp1488@…> (06/17/13 02:26:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Player.cpp
r02fa8fd r7c52498 199 199 this->target.y = mapPlayers[this->targetPlayer].pos.y; 200 200 201 cout << "Setting target" << endl;202 cout << "target id: " << mapPlayers[this->targetPlayer].id << endl;203 cout << "cur player id: " << this->id << endl;204 cout << "this->pos.x: " << this->pos.x << endl;205 cout << "this->pos.x: " << this->pos.x << endl;206 cout << "this->target.y: " << this->target.y << endl;207 cout << "this->target.y: " << this->target.y << endl;208 cout << "this->target.toFloat().x: " << this->target.toFloat().y << endl;209 cout << "this->target.toFloat().y: " << this->target.toFloat().y << endl;210 cout << "posDistance: " << posDistance(this->pos, this->target.toFloat()) << endl;211 212 201 if (posDistance(this->pos, this->target.toFloat()) <= this->range) { 213 cout << "Stopped chasing" << endl;214 215 202 this->target.x = this->pos.x; 216 203 this->target.y = this->pos.y;
Note:
See TracChangeset
for help on using the changeset viewer.