This will not build; working on refactoring

This commit is contained in:
Kayne Ruse
2014-04-13 03:37:21 +10:00
parent 0c6537fb36
commit 7fe71c60d0
5 changed files with 92 additions and 26 deletions
+4 -19
View File
@@ -23,6 +23,7 @@
#define SERVERAPPLICATION_HPP_
//server specific stuff
#include "client.hpp"
#include "entity.hpp"
#include "player_entity.hpp"
@@ -49,19 +50,6 @@
#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:
@@ -89,6 +77,9 @@ private:
void PumpPacket(NetworkPacket);
//APIs
std::map<int, Client> clientMap;
//maps
RegionPager<LuaGenerator, LuaFormat> mapPager;
@@ -104,12 +95,6 @@ private:
//misc
bool running = true;
ConfigUtility config;
std::map<int, ClientEntry> clientMap;
std::map<int, PlayerEntry> playerMap;
int clientCounter = 0;
int playerCounter = 0;
};
#endif