Changes in / [8f85180:ca44f82] in network-game


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r8f85180 rca44f82  
    2222#include <map>
    2323
     24#include <map>
     25
    2426#include <allegro5/allegro.h>
    2527#include <allegro5/allegro_font.h>
     
    8082bool doexit;
    8183
     84map<unsigned int, Player> mapPlayers;
     85
    8286Window* wndLogin;
    8387Window* wndMain;
     
    435439
    436440   return pos;
     441}
     442
     443POSITION mapToScreen(FLOAT_POSITION pos)
     444{
     445   POSITION p;
     446   p.x = pos.x+300;
     447   p.y = pos.y+100;
     448
     449   return p;
    437450}
    438451
     
    518531               mapPlayers[p.id] = p;
    519532
    520                cout << "Received MSG_TYPE_PLAYER message" << endl;
     533               cout << "p.id: " << p.id << endl;
    521534
    522535               break;
  • common/Player.h

    r8f85180 rca44f82  
    1212
    1313#include <string>
    14 #include <sys/time.h>
    1514
    1615#include "Common.h"
Note: See TracChangeset for help on using the changeset viewer.