Changeset 10751
- Timestamp:
- Nov 2, 2015, 3:19:00 PM (9 years ago)
- Location:
- code/branches/hoverHS15
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hoverHS15/data/levels/Hover.oxw
r10708 r10751 42 42 </attached> 43 43 <collisionShapes> 44 <BoxCollisionShape yaw="0" pitch="0" roll="0" position=" 0,0,0" halfExtents="500, 30, 2" />45 <BoxCollisionShape yaw="0" pitch="0" roll="0" position=" 0,0,1000" halfExtents="500, 30, 2" />44 <BoxCollisionShape yaw="0" pitch="0" roll="0" position="500,0,0" halfExtents="500, 30, 2" /> 45 <BoxCollisionShape yaw="0" pitch="0" roll="0" position="500,0,1000" halfExtents="500, 30, 2" /> 46 46 <BoxCollisionShape yaw="0" pitch="0" roll="0" position="0,0,500" halfExtents="2, 30, 500" /> 47 <BoxCollisionShape yaw="0" pitch="0" roll="0" position="1000, 500,0" halfExtents="2, 30, 500" />47 <BoxCollisionShape yaw="0" pitch="0" roll="0" position="1000,0,500" halfExtents="2, 30, 500" /> 48 48 49 49 </collisionShapes> … … 60 60 61 61 62 <MovableEntity> 63 <attached> 64 <HoverOrigin> 65 66 <attached> 67 68 </attached> 69 </HoverOrigin> 70 </attached> 71 </MovableEntity> 72 73 74 62 75 63 76 <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"/> -
code/branches/hoverHS15/src/modules/hover/CMakeLists.txt
r10708 r10751 3 3 HoverShip.cc 4 4 HoverWall.cc 5 HoverOrigin.cc 5 6 ) 6 7 -
code/branches/hoverHS15/src/modules/hover/Hover.cc
r10708 r10751 40 40 namespace orxonox 41 41 { 42 bool firstTick = true; 42 43 RegisterUnloadableClass(Hover); 43 44 … … 46 47 47 48 RegisterObject(Hover); 48 new HoverWall(context);49 49 //this->setHUDTemplate("HoverHUD"); 50 50 } … … 55 55 { 56 56 SUPER(Hover, tick, dt); 57 58 if(firstTick){ 59 firstTick = false; 60 new HoverWall(origin_->getContext(), 1, 2); 61 } 62 63 57 64 } 58 65 -
code/branches/hoverHS15/src/modules/hover/Hover.h
r10664 r10751 37 37 38 38 #include "HoverPrereqs.h" 39 //#include "HoverCenterPoint.h" // Necessary for WeakPointer?? 39 #include "HoverOrigin.h" // Necessary for WeakPointer 40 40 //#include "HoverShip.h" DO NOT include in Header. Will cause forward declaration issues 41 41 … … 71 71 virtual void tick(float dt); 72 72 73 // void setCenterpoint(HoverCenterPoint* center)74 // { this->center_ = center; }73 // void setOrigin(HoverOrigin* center) 74 // { center_ = center; } 75 75 76 void setOrigin(HoverOrigin* origin) 77 { this->origin_ = origin; } 78 79 80 WeakPtr<HoverOrigin> origin_; 76 81 77 82 }; -
code/branches/hoverHS15/src/modules/hover/HoverPrereqs.h
r10708 r10751 71 71 class HoverShip; 72 72 class HoverWall; 73 class HoverOrigin; 73 74 } 74 75
Note: See TracChangeset
for help on using the changeset viewer.