slumber-quest/controllers/itemcontroller.h

22 lines
458 B
C
Raw Normal View History

2021-05-07 21:36:26 -04:00
#ifndef ITEMCONTROLLER_H
#define ITEMCONTROLLER_H
#include "controller.h"
class Item;
class ItemController : public Controller
{
public:
explicit ItemController(Controller::Initializer&& initializer);
virtual ~ItemController() override;
virtual std::string interact(std::shared_ptr<Actor> actor) override;
void setDependentItem(const std::shared_ptr<Item>& item);
private:
std::shared_ptr<Item> _item;
};
#endif // ITEMCONTROLLER_H