[Orxonox-commit 5666] r10326 - in code/branches/weaponFS15: data/levels/includes src/modules/weapons/projectiles src/modules/weapons/weaponmodes

meggiman at orxonox.net meggiman at orxonox.net
Thu Mar 19 16:05:10 CET 2015


Author: meggiman
Date: 2015-03-19 16:05:10 +0100 (Thu, 19 Mar 2015)
New Revision: 10326

Added:
   code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.h
   code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.h
Modified:
   code/branches/weaponFS15/data/levels/includes/weaponSettingsAssff.oxi
Log:
Created header files for new classes GravityBombFire and GravityBomb

Modified: code/branches/weaponFS15/data/levels/includes/weaponSettingsAssff.oxi
===================================================================
--- code/branches/weaponFS15/data/levels/includes/weaponSettingsAssff.oxi	2015-03-19 14:59:26 UTC (rev 10325)
+++ code/branches/weaponFS15/data/levels/includes/weaponSettingsAssff.oxi	2015-03-19 15:05:10 UTC (rev 10326)
@@ -10,6 +10,7 @@
       <WeaponSet firemode=3 />
     </weaponsets>
     <weapons>
+	 
       <WeaponPack>
         <links>
           <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
@@ -42,12 +43,15 @@
           <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 />
         </Weapon>
       </WeaponPack>
-      <WeaponPack>
-        <links>
-          <DefaultWeaponmodeLink firemode=1 weaponmode=0 />
+     <WeaponPack>
+            <links>
+          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
+          <DefaultWeaponmodeLink firemode=1 weaponmode=1 />
+          <DefaultWeaponmodeLink firemode=2 weaponmode=2 />
+          <DefaultWeaponmodeLink firemode=3 weaponmode=3 />
         </links>
-        <!--Weapon>
-          <EnergyDrink mode=0 munitionpershot=0 delay=0  material="Flares/point_lensflare"muzzleoffset="2,-0.2,-1" />
-        </Weapon-->
+        <Weapon>
+          <!EnergyDrink mode=3 munitionpershot=0 delay=0  material="Flares/point_lensflare"muzzleoffset="2,-0.2,-1" /-->
+        </Weapon>
       </WeaponPack>
     </weapons>

Added: code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.h
===================================================================
--- code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.h	                        (rev 0)
+++ code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.h	2015-03-19 15:05:10 UTC (rev 10326)
@@ -0,0 +1,64 @@
+/*
+ *   ORXONOX - the hottest 3D action shooter ever to exist
+ *                    > www.orxonox.net <
+ *
+ *
+ *   License notice:
+ *
+ *   This program is free software; you can redistribute it and/or
+ *   modify it under the terms of the GNU General Public License
+ *   as published by the Free Software Foundation; either version 2
+ *   of the License, or (at your option) any later version.
+ *
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ *   Author:
+ *      Gabriel Nadler
+ *   Co-authors:
+ *      simonmie
+ *
+ */
+
+
+/*
+ * GravityBomb.h
+ *
+ *  Created on: Mar 19, 2015
+ *      Author: meggiman
+ */
+
+#ifndef GravityBOMB_H_
+#define GravityBOMB_H_
+
+#include "weapons/WeaponsPrereqs.h"
+
+#include "tools/Timer.h"
+
+#include "graphics/ParticleSpawner.h"
+#include "interfaces/RadarViewable.h"
+
+#include "BasicProjectile.h"
+
+namespace orxonox
+{
+
+	class ConeCollisionShape;
+
+	class _WeaponsExport GravityBomb : public BasicProjectile , public RadarViewable, public MovableEntity
+	{
+		public:
+			GravityBomb(Context* context);
+
+		private:
+		float lifetime_;
+
+	}
+}
+#endif /* GravityBOMB_H_ */

Added: code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.h
===================================================================
--- code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.h	                        (rev 0)
+++ code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.h	2015-03-19 15:05:10 UTC (rev 10326)
@@ -0,0 +1,63 @@
+/**
+ *   ORXONOX - the hottest 3D action shooter ever to exist
+ *                    > www.orxonox.net <
+ *
+ *
+ *   License notice:
+ *
+ *   This program is free software; you can redistribute it and/or
+ *   modify it under the terms of the GNU General Public License
+ *   as published by the Free Software Foundation; either version 2
+ *   of the License, or (at your option) any later version.
+ *
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ *   Author:
+ *      Oliver Scheuss
+ *   Co-authors:
+ *      ...
+ *
+ */
+
+/**
+    @file GravityBombFire.h
+    @brief Definition of the GravityBombFire class.
+*/
+
+#ifndef _GravityBombFire_H__
+#define _GravityBombFire_H__
+
+#include "weapons/WeaponsPrereqs.h"
+#include "weaponsystem/WeaponMode.h"
+
+namespace orxonox
+{
+
+    /**
+    @brief
+        Fires the GravityBomb
+    @author
+        Manuel Eggimann
+    @ingroup WeaponsWeaponModes
+    */
+    class _WeaponsExport GravityBombFire : public WeaponMode
+    {
+        public:
+            GravityBombFire(Context* context);
+            virtual ~GravityBombFire();
+
+            virtual void fire();
+
+        private:
+            float speed_; //!< The initial speed of the bomb when it is launched.
+    };
+}
+
+#endif /* _GravityBombFire_H__ */




More information about the Orxonox-commit mailing list