PlayerHand.h 520 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "ItemSkill.h"
  3. #include "ItemType.h"
  4. class PlayerHandItemType : public ItemType
  5. {
  6. public:
  7. PlayerHandItemType();
  8. Item* createItem() const override;
  9. ItemSkill* createDefaultItemSkill() const override;
  10. void levelUpItemSkill(ItemSkill* zSkill) const override;
  11. };
  12. class PlayerHandSkill : public ItemSkill
  13. {
  14. public:
  15. PlayerHandSkill();
  16. bool use(Entity* zActor, Item* zUsedItem, Block* zTarget) override;
  17. bool use(Entity* zActor, Item* zUsedItem, Entity* zTarget) override;
  18. };