summaryrefslogtreecommitdiff
path: root/Player.h
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2011-03-08 15:14:57 +0000
committerLuke Bratch <l_bratch@yahoo.co.uk>2011-03-08 15:14:57 +0000
commitc12fcf8e7663c20e2c2c0696fb35a7059b83127a (patch)
tree67eaa0be96e058aae54e4cf16aa0735d1a7b90f2 /Player.h
parent78cab811b677f05a6447aafe2fb8658ecb2c573b (diff)
Implement weapons
Diffstat (limited to 'Player.h')
-rw-r--r--Player.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Player.h b/Player.h
index 7c8cdf7..d866084 100644
--- a/Player.h
+++ b/Player.h
@@ -2,6 +2,8 @@
#define PLAYER_H
#include "Creature.h"
+#include "Weapon.h"
+#include "Shotgun.h"
class Player : public Creature {
public:
@@ -23,9 +25,23 @@ class Player : public Creature {
void orient();
+ void setWeapon(int weaponNo);
+
+ void obtainWeapon(int weaponNo);
+
+ void attack();
+
+ // Current active weapon
+ Weapon* weapon;
+
private:
bool sprint;
int crouch;
+
+ // 10 weapons can be held at once
+ Weapon* weapons[10];
+ int numWeapons;
+ int curWeapon;
};
#endif