[Orxonox-commit 6049] r10708 - in code/branches/hoverHS15: data/levels src/modules/hover

meierman at orxonox.net meierman at orxonox.net
Mon Oct 26 16:07:58 CET 2015


Author: meierman
Date: 2015-10-26 16:07:58 +0100 (Mon, 26 Oct 2015)
New Revision: 10708

Modified:
   code/branches/hoverHS15/data/levels/Hover.oxw
   code/branches/hoverHS15/src/modules/hover/CMakeLists.txt
   code/branches/hoverHS15/src/modules/hover/Hover.cc
   code/branches/hoverHS15/src/modules/hover/HoverPrereqs.h
Log:
HoverWall introduced

Modified: code/branches/hoverHS15/data/levels/Hover.oxw
===================================================================
--- code/branches/hoverHS15/data/levels/Hover.oxw	2015-10-26 15:07:58 UTC (rev 10707)
+++ code/branches/hoverHS15/data/levels/Hover.oxw	2015-10-26 15:07:58 UTC (rev 10708)
@@ -35,30 +35,33 @@
 
   <StaticEntity position="200,0,0" collisionType="static">
     <attached>
-      <Model position="0, 0,0" yaw="90" pitch="-90" roll="0" scale3D="300, 2, 30" mesh="cube_red.mesh" />
-      <Model position="-300, 0,0" yaw="90" pitch="-90" roll="0" scale3D="300, 2, 30" mesh="cube_red.mesh" />      
-      <Model position="-150, 0,150" yaw="90" pitch="-90" roll="0" scale3D="2, 300, 30" mesh="cube_green.mesh" />      
-      <Model position="-150, 0,-150" yaw="90" pitch="-90" roll="0" scale3D="2, 300, 30" mesh="cube_green.mesh" />
+      <Model position="500, 0, 0" yaw="0" pitch="0" roll="0" scale3D="500, 30, 2" mesh="cube_red.mesh" />
+      <Model position="500, 0, 1000" yaw="0" pitch="0" roll="0" scale3D="500, 30, 2" mesh="cube_red.mesh" />      
+      <Model position="0, 0, 500" yaw="0" pitch="0" roll="0" scale3D="2, 30, 500" mesh="cube_green.mesh" />      
+      <Model position="1000, 0, 500" yaw="0" pitch="0" roll="0" scale3D="2, 30, 500" mesh="cube_green.mesh" />
     </attached> 
     <collisionShapes>
-      <BoxCollisionShape yaw="90" pitch="-90" roll="0" position="0,0,0" halfExtents="300, 2, 30" />
-      <BoxCollisionShape yaw="90" pitch="-90" roll="0" position="-300,0,0" halfExtents="300, 2, 30" />
+      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,0" halfExtents="500, 30, 2" />
+      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,1000" halfExtents="500, 30, 2" />
+      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,500" halfExtents="2, 30, 500" />
+      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="1000,500,0" halfExtents="2, 30, 500" />
+
     </collisionShapes>
   </StaticEntity>
 
-  <StaticEntity position="0,-10,0" collisionType="static">
+  <StaticEntity position="0,0,0" collisionType="static">
     <attached>
       <Model position="0, 0,0" yaw="0" pitch="0" roll="0" scale3D="10000, 1, 10000" mesh="CubeGround.mesh" />     
     </attached> 
     <collisionShapes>
-      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,0" halfExtents="10000, 1, 10000" />
+      <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,0" halfExtents="1, 1, 1" />
     </collisionShapes>
   </StaticEntity>
 
 
     
     <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
-    <SpawnPoint team=0 position="0,0,0" lookat="10,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
+    <SpawnPoint team=0 position="0,100,0" lookat="100,100,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
     
   </Scene>
 </Level>

Modified: code/branches/hoverHS15/src/modules/hover/CMakeLists.txt
===================================================================
--- code/branches/hoverHS15/src/modules/hover/CMakeLists.txt	2015-10-26 15:07:58 UTC (rev 10707)
+++ code/branches/hoverHS15/src/modules/hover/CMakeLists.txt	2015-10-26 15:07:58 UTC (rev 10708)
@@ -1,12 +1,14 @@
 SET_SOURCE_FILES(Hover_SRC_FILES
 Hover.cc
 HoverShip.cc
+HoverWall.cc
 )
 
 ORXONOX_ADD_LIBRARY(hover
   PLUGIN
   FIND_HEADER_FILES
   LINK_LIBRARIES
+  	objects
     orxonox
     overlays
   SOURCE_FILES ${Hover_SRC_FILES}

Modified: code/branches/hoverHS15/src/modules/hover/Hover.cc
===================================================================
--- code/branches/hoverHS15/src/modules/hover/Hover.cc	2015-10-26 15:07:58 UTC (rev 10707)
+++ code/branches/hoverHS15/src/modules/hover/Hover.cc	2015-10-26 15:07:58 UTC (rev 10708)
@@ -33,7 +33,8 @@
 
 //#include "orxonox/worldentities/pawns/SpaceShip.h"
 #include "Hover.h"
-//#include "HoverShip.h" // Necessary for getPlayer function. Do NOT include this in Header!
+
+#include "HoverWall.h"
 #include "core/CoreIncludes.h"
 
 namespace orxonox
@@ -42,8 +43,9 @@
 
     Hover::Hover(Context* context) : Gametype(context)
     {
+        
         RegisterObject(Hover);
-
+        new HoverWall(context);
         //this->setHUDTemplate("HoverHUD");
     }
 
@@ -51,7 +53,6 @@
 
     void Hover::tick(float dt)
     {
-
         SUPER(Hover, tick, dt);
     }
 
@@ -60,9 +61,9 @@
     void Hover::start()
     {
 
-
         // Call start for the parent class.
         Gametype::start();
+
     }
 
 

Modified: code/branches/hoverHS15/src/modules/hover/HoverPrereqs.h
===================================================================
--- code/branches/hoverHS15/src/modules/hover/HoverPrereqs.h	2015-10-26 15:07:58 UTC (rev 10707)
+++ code/branches/hoverHS15/src/modules/hover/HoverPrereqs.h	2015-10-26 15:07:58 UTC (rev 10708)
@@ -69,6 +69,7 @@
 {
     class Hover;
     class HoverShip;
+    class HoverWall;
 }
 
 #endif /* _HoverPrereqs_H__*/




More information about the Orxonox-commit mailing list