--- a/src/Player.hh Sat Dec 06 23:47:13 2008 +0000
+++ b/src/Player.hh Sun Dec 07 00:01:07 2008 +0000
@@ -35,6 +35,7 @@
// used by the network code to execute actions for players
virtual void handleDig (Vector position, float radius);
virtual void handleCreateProjectile (Weapon *weapon, Vector position, Vector velocity);
+ virtual void handleChangeWeapon (unsigned int weaponIndex);
/*
* The currently selected weapon
@@ -66,6 +67,11 @@
* Calculates projectil position/velocity and calls handleCreateProjectile
*/
void fireWeapon (Weapon *weapon);
+
+ /*
+ * Change weapon index, should be negative or positive 1
+ */
+ void changeWeapon (int delta);
public:
/*