source: network-game/common/Game.h@ 929b4e0

Last change on this file since 929b4e0 was c044a36, checked in by dportnoy <dmp1488@…>, 11 years ago

Syntax fix

  • Property mode set to 100644
File size: 488 bytes
RevLine 
[f419b09]1#ifndef _GAME_H
2#define _GAME_H
3
4#include "Compiler.h"
5
6#if defined WINDOWS
7 #include <winsock2.h>
8 #include <WS2tcpip.h>
9#elif defined LINUX
10 #include <netinet/in.h>
11#endif
12
13#include <string>
14#include <map>
15
16#include "Player.h"
17
18using namespace std;
19
20class Game {
21private:
22 int id;
[c044a36]23 string name;
[f419b09]24 map<int, Player*> players;
25
26public:
27 Game();
28 Game(string name);
29
30 ~Game();
31
32 void setId(int id);
33
34 bool addPlayer(Player* p);
35 bool removePlayer(int id);
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.