Implemented the log on and log off systems

This is a pretty straight forward port of the old version, including the
incredibly hacky server list. But I just need to remember that this is a
prototype.
This commit is contained in:
Kayne Ruse
2013-11-23 17:53:36 +11:00
parent ca86dc5fb8
commit 6ccc874583
11 changed files with 220 additions and 68 deletions
+21 -1
View File
@@ -24,10 +24,17 @@
#include "base_scene.hpp"
#include "config_utility.hpp"
#include "udp_network_utility.hpp"
#include "network_packet.hpp"
#include "image.hpp"
#include "raster_font.hpp"
#include "button.hpp"
class InWorld : public BaseScene {
public:
//Public access members
InWorld();
InWorld(ConfigUtility* const, UDPNetworkUtility* const, int* const);
~InWorld();
protected:
@@ -43,6 +50,19 @@ protected:
void MouseButtonUp(SDL_MouseButtonEvent const&);
void KeyDown(SDL_KeyboardEvent const&);
void KeyUp(SDL_KeyboardEvent const&);
void HandlePacket(NetworkPacket);
//global
ConfigUtility& config;
UDPNetworkUtility& network;
int& clientIndex;
//members
Image image;
RasterFont font;
Button disconnectButton;
Button shutDownButton;
};
#endif