[Orxonox-commit 223] r2886 - branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions
polakma at orxonox.net
polakma at orxonox.net
Thu Apr 2 16:07:25 CEST 2009
Author: polakma
Date: 2009-04-02 16:07:24 +0200 (Thu, 02 Apr 2009)
New Revision: 2886
Added:
branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions/FusionMunition.cc
branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions/FusionMunition.h
Log:
forgot to add a file
Added: branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions/FusionMunition.cc
===================================================================
--- branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions/FusionMunition.cc (rev 0)
+++ branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions/FusionMunition.cc 2009-04-02 14:07:24 UTC (rev 2886)
@@ -0,0 +1,59 @@
+/*
+ * 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:
+ * ...
+ *
+ */
+
+#include "OrxonoxStableHeaders.h"
+
+#include "core/CoreIncludes.h"
+#include "core/XMLPort.h"
+#include "util/Debug.h"
+
+#include "FusionMunition.h"
+
+namespace orxonox
+{
+ CreateFactory(FusionMunition);
+
+ FusionMunition::FusionMunition(BaseObject* creator) : Munition(creator)
+ {
+ RegisterObject(FusionMunition);
+
+ //default if not defined in XML
+ this->maxBullets_ = 10;
+ this->maxMagazines_ = 100;
+ }
+
+ FusionMunition::~FusionMunition()
+ {
+ }
+
+ void FusionMunition::XMLPort(Element& xmlelement, XMLPort::Mode mode)
+ {
+
+ }
+
+}
Added: branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions/FusionMunition.h
===================================================================
--- branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions/FusionMunition.h (rev 0)
+++ branches/weaponsystem/src/orxonox/objects/weaponSystem/munitions/FusionMunition.h 2009-04-02 14:07:24 UTC (rev 2886)
@@ -0,0 +1,54 @@
+/*
+ * 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 _FusionMunition_H__
+#define _FusionMunition_H__
+
+#include "OrxonoxPrereqs.h"
+
+#include "core/BaseObject.h"
+#include "../Munition.h"
+
+namespace orxonox
+{
+ class _OrxonoxExport FusionMunition : public Munition
+ {
+ public:
+ FusionMunition(BaseObject* creator);
+ virtual ~FusionMunition();
+
+ virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
+
+
+ private:
+
+
+ };
+}
+
+#endif /* _FusionMunition_H__ */
More information about the Orxonox-commit
mailing list