2019-01-23 00:04:03 +01:00

32 lines
707 B
C++

/*
* =====================================================================================
*
* Filename: Player.hpp
*
* Description:
*
* Created: 22/01/2019 23:46:45
*
* Author: Quentin Bazin, <quent42340@gmail.com>
*
* =====================================================================================
*/
#ifndef PLAYER_HPP_
#define PLAYER_HPP_
#include "Inventory.hpp"
#include "ISerializable.hpp"
class Player : public ISerializable {
public:
void serialize(sf::Packet &packet) override;
void deserialize(sf::Packet &packet) override;
Inventory &inventory() { return m_inventory; }
protected:
Inventory m_inventory{9, 4};
};
#endif // PLAYER_HPP_