- Timestamp:
- Feb 24, 2013, 1:31:44 AM (12 years ago)
- Branches:
- master
- Children:
- 3d81c0d, 60940f8
- Parents:
- ca44f82
- Location:
- common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Message.cpp
rca44f82 r7b43385 19 19 int ret = sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in)); 20 20 21 cout << "Sent message of type " << msg->type << endl;22 23 21 return ret; 24 22 } … … 31 29 int ret = recvfrom(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, &socklen); 32 30 33 if (ret > -1)34 cout << "Received message of type " << msg->type << endl;35 36 31 return ret; 37 32 } -
common/Player.cpp
rca44f82 r7b43385 98 98 cout << "We're already at our target" << endl; 99 99 else { 100 cout << "equals test:" << endl; 101 float f = 5.0; 102 int i = 5; 103 104 if (f == i) 105 cout << "test passed" << endl; 106 else 107 cout << "test failed" << endl; 108 109 cout << "Player about to be moved" << endl; 110 cout << "cur pos x: " << this->pos.x << endl; 111 cout << "cur pos y: " << this->pos.y << endl; 112 100 113 float pixels = speed * (curTime-timeLastUpdated) / 1000.0; 101 114 cout << "We need to move " << pixels << " pixels" << endl; … … 111 124 pos.y += sin(angle)*pixels; 112 125 } 126 cout << "new pos x: " << this->pos.x << endl; 127 cout << "new pos y: " << this->pos.y << endl; 128 113 129 } 114 130 -
common/WorldMap.cpp
rca44f82 r7b43385 41 41 void WorldMap::setElement(int x, int y, TerrainType t) 42 42 { 43 cout << "getting element" << endl; 43 44 (*(*vctMap)[x])[y] = t; 44 45 }
Note:
See TracChangeset
for help on using the changeset viewer.