OpenMiner/include/world/Player.hpp

30 lines
654 B
C++
Raw Normal View History

/*
* =====================================================================================
*
* Filename: Player.hpp
*
* Description:
*
* Created: 27/06/2018 04:56:19
*
* Author: Quentin Bazin, <quent42340@gmail.com>
*
* =====================================================================================
*/
#ifndef PLAYER_HPP_
#define PLAYER_HPP_
#include "Inventory.hpp"
class Player {
public:
Inventory &inventory() { return m_inventory; }
Inventory &hotbarInventory() { return m_hotbarInventory; }
private:
Inventory m_inventory{9, 3};
Inventory m_hotbarInventory{9, 1};
};
#endif // PLAYER_HPP_