- reimplemented & improved player inventory - now player has "Action2" which means he can interact with the environment - added weapon energy cost - updated player action interface
33 lines
600 B
C++
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_ */
|