ItemSkill.cpp 853 B

12345678910111213141516171819202122232425262728293031
  1. #include "ItemSkill.h"
  2. ItemSkill::ItemSkill( const ItemType* zSkillType )
  3. : Framework::ReferenceCounter(),
  4. skillType( zSkillType )
  5. {}
  6. const ItemType* ItemSkill::zSkillType()
  7. {
  8. return skillType;
  9. }
  10. BasicItemSkill::BasicItemSkill( const ItemType* zSkillType, float maxXP, float durabilityModifier, float speedModifier, float luckModifier, float staminaModifier, float hungerModifier, float xpIncrease )
  11. : ItemSkill( zSkillType ),
  12. level( 1 ),
  13. xp( 0 ),
  14. maxXP( maxXP ),
  15. durabilityModifier( durabilityModifier ),
  16. speedModifier( speedModifier ),
  17. luckModifier( luckModifier ),
  18. staminaModifier( staminaModifier ),
  19. hungerModifier( hungerModifier )
  20. {}
  21. void BasicItemSkill::use( Entity* zActor, Item* zUsedItem, Block* zTarget )
  22. {}
  23. void BasicItemSkill::use( Entity* zActor, Item* zUsedItem, Entity* zTarget )
  24. {}