diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-03 08:20:49 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-03 08:20:49 -0400 |
commit | 30d454d7ffc102f2503dfa84937e706e6fc01a4b (patch) | |
tree | 0201c75e8aefabbdfc766642bd26a8acfeedac16 /include | |
parent | f102149e15ca1ac36cbb4e2627e5ce44f2d5273a (diff) |
Bow shoots particles
Diffstat (limited to 'include')
-rw-r--r-- | include/inventory.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/inventory.hpp b/include/inventory.hpp index bee2fbd..6712c26 100644 --- a/include/inventory.hpp +++ b/include/inventory.hpp @@ -112,6 +112,24 @@ public: Sword* clone(); }; +class Arrow : public Item { +private: + // same as sword + float damage; +public: + + // see sword + float getDamage(); + + // sets amount of damage + void setDamage(float d); + + // uses item + int useItem(); + + Arrow *clone(); +}; + /** * Bow class. We use this for shooting bow and arrows */ @@ -123,6 +141,9 @@ public: // returns the amount of damage, see sword float getDamage(); + // sets the amount of damages + void setDamage(float d); + // handles shooting and arrow curving int useItem(); |