more refactoring

This commit is contained in:
Eduardo Bart
2011-08-15 18:02:52 -03:00
parent 2e1a96c2df
commit be15b1820d
29 changed files with 673 additions and 266 deletions

View File

@@ -1,4 +1,5 @@
#include "game.h"
#include "localplayer.h"
Game g_game;
@@ -6,3 +7,15 @@ Game::Game()
{
m_online = false;
}
void Game::onLogin()
{
m_localPlayer = LocalPlayerPtr(new LocalPlayer);
m_online = true;
}
void Game::onLogout()
{
m_localPlayer.reset();
m_online = false;
}