2011-08-15 16:11:24 +02:00
|
|
|
#include "game.h"
|
2011-08-15 23:02:52 +02:00
|
|
|
#include "localplayer.h"
|
2011-08-15 16:11:24 +02:00
|
|
|
|
|
|
|
Game g_game;
|
|
|
|
|
|
|
|
Game::Game()
|
|
|
|
{
|
|
|
|
m_online = false;
|
|
|
|
}
|
2011-08-15 23:02:52 +02:00
|
|
|
|
|
|
|
void Game::onLogin()
|
|
|
|
{
|
|
|
|
m_localPlayer = LocalPlayerPtr(new LocalPlayer);
|
|
|
|
m_online = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Game::onLogout()
|
|
|
|
{
|
|
|
|
m_localPlayer.reset();
|
|
|
|
m_online = false;
|
|
|
|
}
|