You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
556 B

#ifndef GAME_H
#define GAME_H
13 years ago
#include "declarations.h"
#include <otclient/net/declarations.h>
class Game
{
public:
Game();
13 years ago
void onLogin();
void onLogout();
void setProtocol(ProtocolGamePtr protocolGame) { m_protocolGame = protocolGame; }
13 years ago
bool isOnline() { return m_online; }
13 years ago
ProtocolGamePtr getProtocol() { return m_protocolGame; }
LocalPlayerPtr getLocalPlayer() { return m_localPlayer; }
private:
13 years ago
LocalPlayerPtr m_localPlayer;
ProtocolGamePtr m_protocolGame;
bool m_online;
};
extern Game g_game;
13 years ago
#endif