OSDN Git Service

f6e8a5e0558c249994f1a3238fdaa037907f9f0c
[hengbandforosx/hengbandosx.git] / src / object-use / use-execution.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 struct player_type;
6 class ObjectUseEntity {
7 public:
8     ObjectUseEntity(player_type *player_ptr, INVENTORY_IDX item);
9     virtual ~ObjectUseEntity() = default;
10
11     void execute();
12
13 private:
14     player_type *player_ptr;
15     INVENTORY_IDX item;
16
17     bool check_can_use();
18 };