Smoothed naming and other conventions

This commit is contained in:
Kayne Ruse
2013-05-24 00:51:04 +10:00
parent cce1a874bf
commit 0b2af1d80f
21 changed files with 176 additions and 257 deletions
+10 -11
View File
@@ -15,11 +15,6 @@
#include <map>
#include <string>
struct Server {
std::string name;
IPaddress add;
};
class Lobby : public BaseScene {
public:
//Public access members
@@ -42,10 +37,14 @@ protected:
virtual void KeyUp(SDL_KeyboardEvent const&);
//utilities
struct ServerData {
std::string name;
IPaddress address;
};
void PingNetwork();
void PushServer(Packet*);
void JoinRequest(Server*);
typedef std::map<std::string, Button*> ButtonMap;
void PushServer(PacketData*);
void JoinRequest(ServerData*);
//members
ConfigUtility* configUtil = nullptr;
@@ -53,11 +52,11 @@ protected:
UDPNetworkUtility* netUtil = nullptr;
RasterFont font;
ButtonMap buttonMap;
std::map<std::string, Button*> buttonMap;
//the list of servers on the screen
std::vector<Server> serverVector;
Server* selectedServer = nullptr;
std::vector<ServerData> serverVector;
ServerData* selectedServer = nullptr;
SDL_Rect listBox;
};