Added a brand new bug, I hate this branch

This commit is contained in:
Kayne Ruse
2014-03-10 23:15:57 +11:00
parent 5cf62f5517
commit 19c1b1197d
6 changed files with 58 additions and 315 deletions
+18 -6
View File
@@ -32,10 +32,6 @@
#include "sqlite3/sqlite3.h"
#include "SDL/SDL.h"
//misc
#include "client_manager.hpp"
#include "player_manager.hpp"
//common
#include "config_utility.hpp"
#include "vector2.hpp"
@@ -44,6 +40,19 @@
#include <map>
#include <string>
struct ClientEntry {
IPaddress address;
};
struct PlayerEntry {
int clientIndex;
int mapIndex;
std::string handle;
std::string avatar;
Vector2 position;
Vector2 motion;
};
//The main application class
class ServerApplication {
public:
@@ -83,8 +92,11 @@ private:
bool running = true;
ConfigUtility config;
ClientManager clientMgr;
PlayerManager playerMgr;
std::map<int, ClientEntry> clientMap;
std::map<int, PlayerEntry> playerMap;
int clientCounter = 0;
int playerCounter = 0;
};
#endif