You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3coop/apps/openmw/mwmp/Main.hpp

47 lines
1007 B
C++

#include <apps/openmw/mwworld/ptr.hpp>
#include "Networking.hpp"
#include "LocalPlayer.hpp"
#include "GUIChat.hpp"
#include "GUILogin.hpp"
namespace mwmp
{
class Main
{
public:
Main();
~Main();
static void Create();
static void Destroy();
static const Main &get();
static void Frame(float dt);
static void PressedKey(int key);
Networking *getNetworking() const;
LocalPlayer *getLocalPlayer() const;
GUIChat *getChatBox() const;
GUILogin *getGUILogin() const;
void UpdateWorld(float dt) const;
private:
Main (const Main&);
///< not implemented
Main& operator= (const Main&);
///< not implemented
static Main *pMain;
Networking *mNetworking;
LocalPlayer *mLocalPlayer;
GUIChat *mChat;
GUILogin *mGUILogin;
std::string server;
unsigned short port;
int keySay;
int keyChatMode;
};
}