farmlands/src/components/basic/InventoryItem.h
Tiberiu Chibici 6a35b11ec2 Player changes:
- reimplemented & improved player inventory
- now player has "Action2" which means he can interact with the
environment
- added weapon energy cost
- updated player action interface
2016-12-12 23:28:41 +02:00

33 lines
600 B
C++

/*
* InventoryItem.h
*
* Created on: Dec 11, 2016
* Author: tibi
*/
#ifndef COMPONENTS_INVENTORY_INVENTORYITEM_H_
#define COMPONENTS_INVENTORY_INVENTORYITEM_H_
#include <model/Component.h>
namespace farmlands {
namespace components {
namespace basic {
class InventoryItem: public model::Component
{
public:
virtual ~InventoryItem();
virtual model::Component* clone() override;
virtual void dump(unsigned level) override;
size_t slot;
};
} /* namespace basic */
} /* namespace components */
} /* namespace farmlands */
#endif /* COMPONENTS_INVENTORY_INVENTORYITEM_H_ */