summaryrefslogtreecommitdiff
path: root/Player.h
diff options
context:
space:
mode:
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