Changes in / [8f85180:ca44f82] in network-game
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
r8f85180 rca44f82 22 22 #include <map> 23 23 24 #include <map> 25 24 26 #include <allegro5/allegro.h> 25 27 #include <allegro5/allegro_font.h> … … 80 82 bool doexit; 81 83 84 map<unsigned int, Player> mapPlayers; 85 82 86 Window* wndLogin; 83 87 Window* wndMain; … … 435 439 436 440 return pos; 441 } 442 443 POSITION mapToScreen(FLOAT_POSITION pos) 444 { 445 POSITION p; 446 p.x = pos.x+300; 447 p.y = pos.y+100; 448 449 return p; 437 450 } 438 451 … … 518 531 mapPlayers[p.id] = p; 519 532 520 cout << " Received MSG_TYPE_PLAYER message"<< endl;533 cout << "p.id: " << p.id << endl; 521 534 522 535 break; -
common/Player.h
r8f85180 rca44f82 12 12 13 13 #include <string> 14 #include <sys/time.h>15 14 16 15 #include "Common.h"
Note:
See TracChangeset
for help on using the changeset viewer.