Removed the shared parameters structure (read more)

I've also stopped using a separate branch for sharing the CharacterData
structre. This commit won't build, mostly because I need to refactor
InWorld to handle the loss of the PlayerCharacter class.

I should probably rename SQL's tables too.
This commit is contained in:
Kayne Ruse
2014-05-27 22:24:30 +10:00
parent ac4a264f12
commit 5893342ad8
11 changed files with 149 additions and 95 deletions
+36 -10
View File
@@ -22,25 +22,33 @@
#ifndef INCOMBAT_HPP_
#define INCOMBAT_HPP_
//graphics & utilities
#include "image.hpp"
#include "raster_font.hpp"
#include "button.hpp"
#include "config_utility.hpp"
#include "shared_parameters.hpp"
//network
#include "udp_network_utility.hpp"
#include "serial_packet.hpp"
#include "serial.hpp"
//graphics
#include "image.hpp"
#include "raster_font.hpp"
#include "button.hpp"
//common
#include "config_utility.hpp"
#include "frame_rate.hpp"
//client
#include "base_scene.hpp"
class InCombat : public BaseScene {
public:
//Public access members
InCombat(ConfigUtility* const, UDPNetworkUtility* const, SharedParameters* const);
InCombat(
ConfigUtility* const argConfig,
UDPNetworkUtility* const argNetwork,
int* const argClientIndex,
int* const argAccountIndex,
int* const argCharacterIndex
);
~InCombat();
protected:
@@ -48,6 +56,7 @@ protected:
void FrameStart();
void Update(double delta);
void FrameEnd();
void RenderFrame();
void Render(SDL_Surface* const);
//Event handlers
@@ -59,12 +68,29 @@ protected:
void KeyUp(SDL_KeyboardEvent const&);
//Network handlers
void HandlePacket(SerialPacket&);
void HandlePacket(SerialPacket);
void HandleDisconnect(SerialPacket);
//TODO: more
//Server control
void SendPlayerUpdate();
void RequestDisconnect();
void RequestShutdown();
//TOOD: more
//shared parameters
ConfigUtility& config;
UDPNetworkUtility& network;
SharedParameters& params;
int& clientIndex;
int& accountIndex;
int& characterIndex;
//graphics
//TODO: graphics
//UI
//TODO: UI
FrameRate fps;
};
#endif