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.

39 lines
799 B

#ifndef GAME_H
#define GAME_H
13 years ago
#include "declarations.h"
#include <otclient/net/declarations.h>
class Game
{
public:
void init();
void terminate();
void loginWorld(const std::string& account,
const std::string& password,
uint32 worldIp, uint16 worldPort,
const std::string& characterName);
void logout();
13 years ago
void onLogin();
void onLogout();
void walk(Direction direction);
void turn(Direction direction);
13 years ago
bool isOnline() { return m_online; }
13 years ago
LocalPlayerPtr getLocalPlayer() { return m_localPlayer; }
ProtocolGamePtr getProtocolGame() { return m_protocolGame; }
private:
13 years ago
LocalPlayerPtr m_localPlayer;
ProtocolGamePtr m_protocolGame;
bool m_online;
};
extern Game g_game;
13 years ago
#endif