[Orxonox-commit 6891] r11512 - code/branches/CampaignMap_HS17/src/modules/objects
fanconic at orxonox.net
fanconic at orxonox.net
Mon Oct 30 13:48:55 CET 2017
Author: fanconic
Date: 2017-10-30 13:48:55 +0100 (Mon, 30 Oct 2017)
New Revision: 11512
Added:
code/branches/CampaignMap_HS17/src/modules/objects/StoryModePlanet.cc
code/branches/CampaignMap_HS17/src/modules/objects/StoryModePlanet.h
Log:
created files for StoryModePlanet
Added: code/branches/CampaignMap_HS17/src/modules/objects/StoryModePlanet.cc
===================================================================
--- code/branches/CampaignMap_HS17/src/modules/objects/StoryModePlanet.cc (rev 0)
+++ code/branches/CampaignMap_HS17/src/modules/objects/StoryModePlanet.cc 2017-10-30 12:48:55 UTC (rev 11512)
@@ -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:
+ * Bolt Nikola
+ * Co-authors:
+ * Claudio Fanconi
+ *
+ *
+ * Authors' Note:
+ * The following class inherits of its superclass planet
+ * It is meant only for the Campaign Map
+ * This subclass of planet has the addition, that they can be labeled ingame, just like bots are in a level gameplay (As it would be nice to see which level you can play)
+ *
+ */
+
+#include "Planet.h"
+
+#include <OgreEntity.h>
+#include <OgreBillboardSet.h>
+#include <OgreProgressiveMesh.h>
+
+#include "core/CoreIncludes.h"
+#include "core/GameMode.h"
+#include "core/XMLPort.h"
+#include "Scene.h"
+#include "graphics/Camera.h"
+#include "CameraManager.h"
+
+#include "core/config/ConfigValueIncludes.h"
+
+namespace orxonox
+{
+ RegisterClass(Planet);
+
+ /**
+ * @brief Constructor
+ */
+ StoryModePlanet::StoryModePlanet(Context* context) : MovableEntity(context)
+ {
+ SUPER(context);
+ this->setConfigValues();
+ }
+
+ StoryModePlanet::~StoryModePlanet()
+ {
+ }
+
+ //TO DO: implement this function like BOT:: setConfigValues() Eg. List of names of the levels.
+ void StoryModePlanet::setConfigValues()
+ {
+
+ }
+}
\ No newline at end of file
Added: code/branches/CampaignMap_HS17/src/modules/objects/StoryModePlanet.h
===================================================================
--- code/branches/CampaignMap_HS17/src/modules/objects/StoryModePlanet.h (rev 0)
+++ code/branches/CampaignMap_HS17/src/modules/objects/StoryModePlanet.h 2017-10-30 12:48:55 UTC (rev 11512)
@@ -0,0 +1,41 @@
+/*
+*This is the header of the StoryModePlanet.cc file
+*In this file we define a constructor, destructor and additional function (which is important to name a planet)
+*
+*Author: Bolt Nikole
+*Co-Author: Fanconi Claudio
+*
+*/
+
+#ifndef _StoryModePlanet_H__
+#define _StoryModePlanet_H__
+
+#include "objects/ObjectsPrereqs.h"
+
+#include <string>
+#include "tools/BillboardSet.h"
+#include "tools/Mesh.h"
+#include "worldentities/MovableEntity.h"
+
+
+#include <vector>
+#include "PlayerInfo.h"
+
+namespace orxonox
+{
+ class _ObjectsExport StoryModePlanet : public Planet
+ {
+ public:
+ StoryModePlanet(Context* context);
+
+ virtual ~StoryModePlanet();
+
+ // This is the function, which is used to name and mark a spacecraft.
+ // We now want to make it available aswell for a planet
+ void setConfigValues();
+
+ private:
+ std::vector<std::string> names_;
+ }
+}
+#endif
\ No newline at end of file
More information about the Orxonox-commit
mailing list