tibia-client/src/game.h

28 lines
486 B
C
Raw Normal View History

2011-08-11 07:52:30 +02:00
#ifndef GAME_H
#define GAME_H
#include <global.h>
#include "map.h"
#include "player.h"
2011-08-12 02:06:01 +02:00
#include "protocolgame.h"
2011-08-11 07:52:30 +02:00
class Game
{
public:
2011-08-12 02:06:01 +02:00
void setProtocol(ProtocolGame *protocolGame) { m_protocolGame = protocolGame; }
ProtocolGame *getProtocol() { return m_protocolGame; }
2011-08-11 07:52:30 +02:00
Map *getMap() { return &m_map; }
Player *getPlayer() { return &m_player; }
private:
Map m_map;
Player m_player;
2011-08-12 02:06:01 +02:00
ProtocolGame *m_protocolGame;
2011-08-11 07:52:30 +02:00
};
extern Game g_game;
#endif // GAME_H