From c12fcf8e7663c20e2c2c0696fb35a7059b83127a Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Tue, 8 Mar 2011 15:14:57 +0000 Subject: Implement weapons --- Player.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Player.h') 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 -- cgit v1.2.3