From 30d454d7ffc102f2503dfa84937e706e6fc01a4b Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Tue, 3 May 2016 08:20:49 -0400 Subject: Bow shoots particles --- include/inventory.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include') 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(); -- cgit v1.2.3