[Orxonox-commit 4791] r9460 - code/branches/turret/src/modules/objects

moralelastix at orxonox.net moralelastix at orxonox.net
Mon Nov 19 16:25:11 CET 2012


Author: moralelastix
Date: 2012-11-19 16:25:11 +0100 (Mon, 19 Nov 2012)
New Revision: 9460

Added:
   code/branches/turret/src/modules/objects/Turret.cc
   code/branches/turret/src/modules/objects/Turret.h
Modified:
   code/branches/turret/src/modules/objects/CMakeLists.txt
   code/branches/turret/src/modules/objects/ObjectsPrereqs.h
Log:
Empty Class

Modified: code/branches/turret/src/modules/objects/CMakeLists.txt
===================================================================
--- code/branches/turret/src/modules/objects/CMakeLists.txt	2012-11-19 15:19:27 UTC (rev 9459)
+++ code/branches/turret/src/modules/objects/CMakeLists.txt	2012-11-19 15:25:11 UTC (rev 9460)
@@ -4,6 +4,7 @@
   Planet.cc
   Script.cc
   SpaceBoundaries.cc
+  Turret.cc
 )
 
 ADD_SUBDIRECTORY(collisionshapes)

Modified: code/branches/turret/src/modules/objects/ObjectsPrereqs.h
===================================================================
--- code/branches/turret/src/modules/objects/ObjectsPrereqs.h	2012-11-19 15:19:27 UTC (rev 9459)
+++ code/branches/turret/src/modules/objects/ObjectsPrereqs.h	2012-11-19 15:25:11 UTC (rev 9460)
@@ -72,6 +72,7 @@
     class Planet;
     class Script;
     class SpaceBoundaries;
+    class Turret;
 
     // collisionshapes
     class BoxCollisionShape;

Added: code/branches/turret/src/modules/objects/Turret.cc
===================================================================
--- code/branches/turret/src/modules/objects/Turret.cc	                        (rev 0)
+++ code/branches/turret/src/modules/objects/Turret.cc	2012-11-19 15:25:11 UTC (rev 9460)
@@ -0,0 +1,83 @@
+/*
+ *   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:
+ *      Marian Runo
+ *   Co-authors:
+ *      ...
+ *
+ */
+
+#include "Turret.h"
+
+
+#include "core/CoreIncludes.h"
+#include "core/XMLPort.h"
+
+
+namespace orxonox
+{
+    CreateFactory(Turret);
+
+    /**
+     * @brief Constructor
+     */
+    Turret::Turret(BaseObject* creator) : Pawn(creator)
+    {
+        RegisterObject(Turret);
+
+    }
+
+    /**
+     * @brief Destructor
+     */
+    Turret::~Turret()
+    {
+
+    }
+
+    void Turret::rotateYaw(const Vector2& value)
+    {
+
+    }
+
+
+    void Turret::rotatePitch(const Vector2& value)
+    {
+
+    }
+
+    void Turret::rotateRoll(const Vector2& value)
+    {
+
+    }
+
+
+
+    /*void Turret::XMLPort(Element& xmlelement, XMLPort::Mode mode)
+    {
+        SUPER(Turret, XMLPort, xmlelement, mode);
+
+        XMLPortParam(Turret, "atmosphere", setAtmosphere, getAtmosphere, xmlelement, mode).defaultValues("Turret/Atmosphere");
+    }*/
+
+
+}

Added: code/branches/turret/src/modules/objects/Turret.h
===================================================================
--- code/branches/turret/src/modules/objects/Turret.h	                        (rev 0)
+++ code/branches/turret/src/modules/objects/Turret.h	2012-11-19 15:25:11 UTC (rev 9460)
@@ -0,0 +1,72 @@
+/*
+ *   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:
+ *      Marian Runo
+ *   Co-authors:
+ *      ...
+ *
+ */
+
+/**
+    @file Turret.h
+    @brief Definition of the Turret class.
+    @ingroup Objects
+*/
+
+#ifndef _Turret_H__
+#define _Turret_H__
+
+#include "objects/ObjectsPrereqs.h"
+
+#include "worldentities/pawns/Pawn.h"
+
+namespace orxonox
+{
+    class _ObjectsExport Turret : public Pawn
+    {
+        public:
+            Turret(BaseObject* creator);
+
+            virtual ~Turret();
+
+            //virtual void tick(float dt);
+            virtual void moveFrontBack(const Vector2& value) {}
+            virtual void moveRightLeft(const Vector2& value) {}
+            virtual void moveUpDown(const Vector2& value) {}
+
+            virtual void rotateYaw(const Vector2& value);
+            virtual void rotatePitch(const Vector2& value);
+            virtual void rotateRoll(const Vector2& value);
+
+
+            //virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
+
+
+        protected:
+
+        private:
+
+    };
+}
+
+#endif
+




More information about the Orxonox-commit mailing list