[Orxonox-commit 400] r2987 - in branches/weapons/src/orxonox/objects/weaponsystem: . weaponmodes

rgrieder at orxonox.net rgrieder at orxonox.net
Mon May 18 19:26:11 CEST 2009


Author: rgrieder
Date: 2009-05-18 19:26:11 +0200 (Mon, 18 May 2009)
New Revision: 2987

Removed:
   branches/weapons/src/orxonox/objects/weaponsystem/CMakeLists.txt~
   branches/weapons/src/orxonox/objects/weaponsystem/MuzzleFlash.h~
   branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/CMakeLists.txt~
   branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.cc~
   branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.h~
   branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.cc~
   branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.h~
Log:
Removed temporary editor files.

Deleted: branches/weapons/src/orxonox/objects/weaponsystem/CMakeLists.txt~
===================================================================
--- branches/weapons/src/orxonox/objects/weaponsystem/CMakeLists.txt~	2009-05-18 16:00:13 UTC (rev 2986)
+++ branches/weapons/src/orxonox/objects/weaponsystem/CMakeLists.txt~	2009-05-18 17:26:11 UTC (rev 2987)
@@ -1,14 +0,0 @@
-ADD_SOURCE_FILES(ORXONOX_SRC_FILES
-  Munition.cc
-  Weapon.cc
-  WeaponMode.cc
-  WeaponPack.cc
-  WeaponSet.cc
-  WeaponSlot.cc
-  WeaponSystem.cc
-  DefaultWeaponmodeLink.cc
-)
-
-ADD_SUBDIRECTORY(munitions)
-ADD_SUBDIRECTORY(projectiles)
-ADD_SUBDIRECTORY(weaponmodes)

Deleted: branches/weapons/src/orxonox/objects/weaponsystem/MuzzleFlash.h~
===================================================================
--- branches/weapons/src/orxonox/objects/weaponsystem/MuzzleFlash.h~	2009-05-18 16:00:13 UTC (rev 2986)
+++ branches/weapons/src/orxonox/objects/weaponsystem/MuzzleFlash.h~	2009-05-18 17:26:11 UTC (rev 2987)
@@ -1,54 +0,0 @@
-/*
- *   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:
- *      Hagen Seifert
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _MuzzleFlash_H__
-#define _MuzzleFlash_H__
-
-#include "OrxonoxPrereqs.h"
-#include "worldentities/Billboard.h"
-#include "tools/Timer.h"
-
-
-namespace orxonox
-{
-    class _OrxonoxExport MuzzleFlash : public Billboard
-    {
-        public:
-            MuzzleFlash(BaseObject* creator);
-            virtual ~MuzzleFlash() {}
-
-
-
-        private:
-            void destroy();
-            Timer<MuzzleFlash> delayTimer_;
-
-    };
-}
-
-#endif /* _MuzzleFlash_H__ */

Deleted: branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/CMakeLists.txt~
===================================================================
--- branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/CMakeLists.txt~	2009-05-18 16:00:13 UTC (rev 2986)
+++ branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/CMakeLists.txt~	2009-05-18 17:26:11 UTC (rev 2987)
@@ -1,6 +0,0 @@
-ADD_SOURCE_FILES(ORXONOX_SRC_FILES
-  FusionFire.cc
-  LaserFire.cc
-  HsW01.cc
-  LightningGun.cc
-)

Deleted: branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.cc~
===================================================================
--- branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.cc~	2009-05-18 16:00:13 UTC (rev 2986)
+++ branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.cc~	2009-05-18 17:26:11 UTC (rev 2987)
@@ -1,121 +0,0 @@
-/*
- *   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:
- *      Hagen Seifert
- *   Co-authors:
- *      ...
- *
- */
-
-#include "OrxonoxStableHeaders.h"
-#include "EnergyDrink.h"
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-#include "objects/weaponsystem/projectiles/ParticleProjectile.h"
-#include "objects/worldentities/Model.h"
-#include "objects/worldentities/MuzzleFlash.h"
-
-#include "objects/weaponsystem/Weapon.h"
-#include "objects/weaponsystem/WeaponPack.h"
-#include "objects/weaponsystem/WeaponSystem.h"
-
-namespace orxonox
-{
-    CreateFactory(EnergyDrink);
-
-    EnergyDrink::EnergyDrink(BaseObject* creator) : WeaponMode(creator)
-    {
-        RegisterObject(EnergyDrink);
-
-        this->reloadTime_ = 0.25;
-        this->damage_ = 15;
-        this->speed_ = 2500;
-        this->delay_ = 0;
-        this->setMunitionName("EnergyDrink");
-
-        this->delayTimer_.setTimer(1.0f, false, this, createExecutor(createFunctor(&EnergyDrink::shot)));
-        this->delayTimer_.stopTimer();
-    }
-
-    void EnergyDrink::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(EnergyDrink, XMLPort, xmlelement, mode);
-
-        XMLPortParam(EnergyDrink, "delay", setDelay, getDelay, xmlelement, mode);
-        XMLPortParam(EnergyDrink, "material", setMaterial, getMaterial, xmlelement, mode);
-
-    }
-
-    void EnergyDrink::setMaterial(const std::string& material)
-    {
-        this->material_ = material;
-    }
-
-    std::string& EnergyDrink::getMaterial()
-    {
-        return this->material_;
-    }
-
-    void EnergyDrink::setDelay(float d)
-    {
-        this->delay_ = d;
-        this->delayTimer_.setInterval(this->delay_);
-    }
-
-    float EnergyDrink::getDelay() const
-    {
-        return this->delay_;
-    }
-
-    void EnergyDrink::fire()
-    {
-        this->delayTimer_.startTimer();
-    }
-
-    void EnergyDrink::muendungsfeuer()
-    {
-        MuzzleFlash *muzzleFlash = new MuzzleFlash(this);
-        this->getWeapon()->attach(muzzleFlash);
-        muzzleFlash->setPosition(this->getMuzzleOffset());
-        muzzleFlash->setMaterial(this->material_);
-    }
-
-    void EnergyDrink::shot()
-    {
-        Projectile* projectile = new Projectile(this);
-	Model* model = new Model(projectile);
-	model->setMeshSource("can.mesh");
-	model->setCastShadows(false);
-	projectile->attach(model);
-	model->setScale(5);
-
-        projectile->setOrientation(this->getMuzzleOrientation());
-        projectile->setPosition(this->getMuzzlePosition());
-        projectile->setVelocity(this->getMuzzleDirection() * this->speed_);
-
-        projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
-        projectile->setDamage(this->getDamage());
-
-        EnergyDrink::muendungsfeuer();
-    }
-}

Deleted: branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.h~
===================================================================
--- branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.h~	2009-05-18 16:00:13 UTC (rev 2986)
+++ branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.h~	2009-05-18 17:26:11 UTC (rev 2987)
@@ -1,62 +0,0 @@
-/*
- *   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:
- *      Hagen Seifert
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _HsW01_H__
-#define _HsW01_H__
-
-#include "OrxonoxPrereqs.h"
-#include "objects/weaponsystem/WeaponMode.h"
-#include "tools/Timer.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport HsW01 : public WeaponMode
-    {
-        public:
-            HsW01(BaseObject* creator);
-            virtual ~HsW01() {}
-
-            virtual void fire();
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-        private:
-            void setMaterial(const std::string& material);
-            std::string& getMaterial();
-            void setDelay(float d);
-            float getDelay() const;
-            void shot();
-            void muendungsfeuer();
-
-            std::string material_;
-            float speed_;
-            float delay_;
-            Timer<HsW01> delayTimer_;
-    };
-}
-
-#endif /* _HsW01_H__ */

Deleted: branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.cc~
===================================================================
--- branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.cc~	2009-05-18 16:00:13 UTC (rev 2986)
+++ branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.cc~	2009-05-18 17:26:11 UTC (rev 2987)
@@ -1,121 +0,0 @@
-/*
- *   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:
- *      Hagen Seifert
- *   Co-authors:
- *      ...
- *
- */
-
-#include "OrxonoxStableHeaders.h"
-#include "HsW01.h"
-
-#include "core/CoreIncludes.h"
-#include "core/XMLPort.h"
-#include "objects/weaponsystem/projectiles/ParticleProjectile.h"
-#include "objects/worldentities/Model.h"
-#include "objects/worldentities/MuzzleFlash.h"
-
-#include "objects/weaponsystem/Weapon.h"
-#include "objects/weaponsystem/WeaponPack.h"
-#include "objects/weaponsystem/WeaponSystem.h"
-
-namespace orxonox
-{
-    CreateFactory(HsW01);
-
-    HsW01::HsW01(BaseObject* creator) : WeaponMode(creator)
-    {
-        RegisterObject(HsW01);
-
-        this->reloadTime_ = 0.25;
-        this->damage_ = 15;
-        this->speed_ = 2500;
-        this->delay_ = 0;
-        this->setMunitionName("HsW01");
-
-        this->delayTimer_.setTimer(1.0f, false, this, createExecutor(createFunctor(&HsW01::shot)));
-        this->delayTimer_.stopTimer();
-    }
-
-    void HsW01::XMLPort(Element& xmlelement, XMLPort::Mode mode)
-    {
-        SUPER(HsW01, XMLPort, xmlelement, mode);
-
-        XMLPortParam(HsW01, "delay", setDelay, getDelay, xmlelement, mode);
-        XMLPortParam(HsW01, "material", setMaterial, getMaterial, xmlelement, mode);
-
-    }
-
-    void HsW01::setMaterial(const std::string& material)
-    {
-        this->material_ = material;
-    }
-
-    std::string& HsW01::getMaterial()
-    {
-        return this->material_;
-    }
-
-    void HsW01::setDelay(float d)
-    {
-        this->delay_ = d;
-        this->delayTimer_.setInterval(this->delay_);
-    }
-
-    float HsW01::getDelay() const
-    {
-        return this->delay_;
-    }
-
-    void HsW01::fire()
-    {
-        this->delayTimer_.startTimer();
-    }
-
-    void HsW01::muendungsfeuer()
-    {
-        MuzzleFlash *muzzleFlash = new MuzzleFlash(this);
-        this->getWeapon()->attach(muzzleFlash);
-        muzzleFlash->setPosition(this->getMuzzleOffset());
-        muzzleFlash->setMaterial(this->material_);
-    }
-
-    void HsW01::shot()
-    {
-        Projectile* projectile = new Projectile(this);
-	Model* model = new Model(projectile);
-	model->setMeshSource("laserbeam.mesh");
-	model->setCastShadows(false);
-	projectile->attach(model);
-	model->setScale(5);
-
-        projectile->setOrientation(this->getMuzzleOrientation());
-        projectile->setPosition(this->getMuzzlePosition());
-        projectile->setVelocity(this->getMuzzleDirection() * this->speed_);
-
-        projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
-        projectile->setDamage(this->getDamage());
-
-        HsW01::muendungsfeuer();
-    }
-}

Deleted: branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.h~
===================================================================
--- branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.h~	2009-05-18 16:00:13 UTC (rev 2986)
+++ branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.h~	2009-05-18 17:26:11 UTC (rev 2987)
@@ -1,62 +0,0 @@
-/*
- *   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:
- *      Martin Polak
- *   Co-authors:
- *      ...
- *
- */
-
-#ifndef _HsW01_H__
-#define _HsW01_H__
-
-#include "OrxonoxPrereqs.h"
-#include "objects/weaponsystem/WeaponMode.h"
-#include "tools/Timer.h"
-
-namespace orxonox
-{
-    class _OrxonoxExport HsW01 : public WeaponMode
-    {
-        public:
-            HsW01(BaseObject* creator);
-            virtual ~HsW01() {}
-
-            virtual void fire();
-            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
-
-        private:
-            void setMaterial(const std::string& material);
-            std::string& getMaterial();
-            void setDelay(float d);
-            float getDelay() const;
-            void shot();
-            void muendungsfeuer();
-
-            std::string material_;
-            float speed_;
-            float delay_;
-            Timer<HsW01> delayTimer_;
-    };
-}
-
-#endif /* _HsW01_H__ */




More information about the Orxonox-commit mailing list