PlayerHand.h 835 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "ItemSkill.h"
  3. #include "ItemType.h"
  4. class PlayerHandItemType : public ItemType
  5. {
  6. protected:
  7. void loadSuperItemSkill(
  8. ItemSkill* zSkill, Framework::StreamReader* zReader) const override;
  9. void saveSuperItemSkill(const ItemSkill* zSkill,
  10. Framework::StreamWriter* zWriter) const override;
  11. public:
  12. PlayerHandItemType();
  13. Item* createItem() const override;
  14. ItemSkill* createDefaultItemSkill() const override;
  15. };
  16. class PlayerHandLevelUpRule : public ItemSkillLevelUpRule
  17. {
  18. public:
  19. PlayerHandLevelUpRule();
  20. void applyOn(ItemSkill* zSkill) override;
  21. };
  22. class PlayerHandSkill : public ItemSkill
  23. {
  24. public:
  25. PlayerHandSkill();
  26. bool use(Entity* zActor, Item* zUsedItem, Block* zTarget) override;
  27. bool use(Entity* zActor, Item* zUsedItem, Entity* zTarget) override;
  28. };