Changeset 1916 for code/branches/objecthierarchy/src/orxonox
- Timestamp:
- Oct 14, 2008, 12:20:14 AM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox
- Files:
-
- 22 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/CMakeLists.txt
r1844 r1916 42 42 tools/WindowEventListener.cc 43 43 44 objects/Ambient.cc 45 objects/Backlight.cc 44 # objects/Backlight.cc 46 45 objects/Camera.cc 47 46 objects/CameraHandler.cc 48 objects/Model.cc 49 objects/NPC.cc 50 objects/ParticleSpawner.cc 47 # objects/ParticleSpawner.cc 51 48 objects/Radar.cc 52 49 objects/RadarListener.cc 53 50 objects/RadarViewable.cc 54 objects/Skybox.cc55 objects/SpaceShip.cc56 objects/SpaceShipAI.cc57 51 objects/Tickable.cc 58 objects/WorldEntity.cc59 60 objects/Projectile.cc61 objects/BillboardProjectile.cc62 objects/RotatingProjectile.cc63 objects/ParticleProjectile.cc64 52 65 53 tolua/tolua_bind.cc … … 83 71 SET( ORXONOXS_SRC_FILES 84 72 GraphicsEngine.cc 85 objects/Ambient.cc86 73 objects/Camera.cc 87 74 objects/CameraHandler.cc 88 objects/Explosion.cc89 objects/Model.cc90 objects/NPC.cc91 objects/Projectile.cc92 objects/Skybox.cc93 objects/SpaceShip.cc94 objects/WorldEntity.cc95 75 ) 96 76 -
code/branches/objecthierarchy/src/orxonox/OrxonoxPrereqs.h
r1755 r1916 81 81 82 82 // objects 83 class Ambient;84 83 class Backlight; 85 84 class Camera; 86 class Model;87 class NPC;88 85 class ParticleSpawner; 89 class Skybox;90 class SpaceShip;91 class SpaceShipAI;92 class WorldEntity;93 94 class Projectile;95 class BillboardProjectile;96 class RotatingProjectile;97 class ParticleProjectile;98 86 99 87 // tools -
code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc
r1887 r1916 40 40 #include "core/ConfigValueIncludes.h" 41 41 #include "core/CoreIncludes.h" 42 #include "objects/Backlight.h"42 //#include "objects/Backlight.h" 43 43 #include "objects/Tickable.h" 44 44 #include "objects/Radar.h" 45 #include "tools/ParticleInterface.h"45 //#include "tools/ParticleInterface.h" 46 46 #include "Settings.h" 47 47 #include "GraphicsEngine.h" … … 146 146 float change = factor / this->timeFactor_; 147 147 this->timeFactor_ = factor; 148 /* 148 149 for (ObjectList<ParticleInterface>::iterator it = ObjectList<ParticleInterface>::begin(); it; ++it) 149 150 it->setSpeedFactor(it->getSpeedFactor() * change); … … 151 152 for (ObjectList<Backlight>::iterator it = ObjectList<Backlight>::begin(); it; ++it) 152 153 it->setTimeFactor(timeFactor_); 154 */ 153 155 } 154 156 -
code/branches/objecthierarchy/src/orxonox/objects/Radar.cc
r1818 r1916 36 36 #include <cfloat> 37 37 #include <cassert> 38 #include "objects/WorldEntity.h"39 #include "objects/SpaceShip.h"40 38 #include "core/CoreIncludes.h" 41 39 #include "core/ConsoleCommand.h" … … 114 112 for (ObjectList<RadarViewable>::iterator itElement = ObjectList<RadarViewable>::begin(); itElement; ++itElement) 115 113 { 114 /* 116 115 if ((*itElement) != SpaceShip::getLocalShip() && (*itListener)->getRadarSensitivity() > (*itElement)->getRadarObjectCamouflage()) 117 116 (*itListener)->displayObject(*itElement, *itElement == this->focus_); 117 */ 118 118 } 119 119 } … … 130 130 else 131 131 { 132 Vector3 localPosition = SpaceShip::getLocalShip()->getPosition();132 Vector3 localPosition;// = SpaceShip::getLocalShip()->getPosition(); 133 133 Vector3 targetPosition = localPosition; 134 134 if (*(this->itFocus_)) … … 143 143 for (ObjectList<RadarViewable>::iterator it = ObjectList<RadarViewable>::begin(); it; ++it) 144 144 { 145 /* 145 146 if (*it == SpaceShip::getLocalShip()) 146 147 continue; 147 148 */ 148 149 float targetDistance = localPosition.squaredDistance((*it)->getWorldPosition()); 149 150 if (targetDistance > currentDistance && targetDistance < nextDistance) -
code/branches/objecthierarchy/src/orxonox/objects/RadarViewable.cc
r1818 r1916 31 31 #include "util/Debug.h" 32 32 #include "core/CoreIncludes.h" 33 #include "objects/WorldEntity.h"33 //#include "objects/WorldEntity.h" 34 34 #include "Radar.h" 35 35 … … 63 63 { 64 64 validate(); 65 return this->radarObject_->getWorldPosition();65 return Vector3::ZERO;//this->radarObject_->getWorldPosition(); 66 66 } 67 67 … … 69 69 { 70 70 validate(); 71 return this->radarObject_->getOrientation() * this->radarObject_->getVelocity();71 return Vector3::ZERO;//this->radarObject_->getOrientation() * this->radarObject_->getVelocity(); 72 72 } 73 73 } -
code/branches/objecthierarchy/src/orxonox/objects/RadarViewable.h
r1818 r1916 44 44 class _OrxonoxExport RadarViewable : virtual public OrxonoxClass 45 45 { 46 class WorldEntity; 47 46 48 public: 47 49 enum Shape -
code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDNavigation.cc
r1819 r1916 41 41 #include "core/XMLPort.h" 42 42 #include "objects/Radar.h" 43 #include "objects/SpaceShip.h"44 #include "objects/Projectile.h"45 43 #include "objects/CameraHandler.h" 46 44 … … 149 147 float textLength = convertToString(dist).size() * navText_->getCharHeight() * 0.3; 150 148 149 /* 151 150 Ogre::Camera* navCam = SpaceShip::getLocalShip()->getCamera()->cam_; 152 151 Matrix4 transformationMatrix = navCam->getProjectionMatrix() * navCam->getViewMatrix(); 152 */ 153 153 // transform to screen coordinates 154 Vector3 pos = transformationMatrix *Radar::getInstance().getFocus()->getWorldPosition();154 Vector3 pos = /*transformationMatrix * */Radar::getInstance().getFocus()->getWorldPosition(); 155 155 156 156 bool outOfView; … … 224 224 { 225 225 // object is in view 226 226 /* 227 227 Vector3 aimpos = transformationMatrix * getPredictedPosition(SpaceShip::getLocalShip()->getPosition(), 228 228 Projectile::getSpeed(), Radar::getInstance().getFocus()->getWorldPosition(), Radar::getInstance().getFocus()->getOrientedVelocity()); 229 229 */ 230 230 if (wasOutOfView_) 231 231 { … … 240 240 241 241 aimMarker_->show(); 242 /* 242 243 aimMarker_->setLeft((aimpos.x + 1.0 - aimMarker_->getWidth()) * 0.5); 243 244 aimMarker_->setTop((-aimpos.y + 1.0 - aimMarker_->getHeight()) * 0.5); 244 245 */ 245 246 navText_->setLeft((pos.x + 1.0 + navMarker_->getWidth()) * 0.5); 246 247 navText_->setTop((-pos.y + 1.0 + navMarker_->getHeight()) * 0.5); … … 250 251 float HUDNavigation::getDist2Focus() const 251 252 { 253 /* 252 254 if (Radar::getInstance().getFocus()) 253 255 return (Radar::getInstance().getFocus()->getWorldPosition() - SpaceShip::getLocalShip()->getPosition()).length(); 254 256 else 257 */ 255 258 return 0; 256 259 } -
code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDRadar.cc
r1819 r1916 38 38 #include "core/CoreIncludes.h" 39 39 #include "core/XMLPort.h" 40 #include "objects/SpaceShip.h"41 #include "objects/WorldEntity.h"42 40 #include "objects/Radar.h" 43 41 #include "tools/TextureGenerator.h" … … 91 89 void HUDRadar::displayObject(RadarViewable* object, bool bIsMarked) 92 90 { 91 /* 93 92 const WorldEntity* wePointer = object->getWorldEntity(); 94 93 … … 100 99 return; 101 100 } 102 101 */ 103 102 // try to find a panel already created 104 103 Ogre::PanelOverlayElement* panel; … … 126 125 } 127 126 panel->show(); 128 127 /* 129 128 // set size to fit distance... 130 129 float distance = (wePointer->getWorldPosition() - SpaceShip::getLocalShip()->getPosition()).length(); … … 144 143 this->marker_->setPosition((1.0 + coord.x - size * 1.5) * 0.5, (1.0 - coord.y - size * 1.5) * 0.5); 145 144 } 145 */ 146 146 } 147 147 -
code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDSpeedBar.cc
r1755 r1916 31 31 #include "HUDSpeedBar.h" 32 32 #include "core/CoreIncludes.h" 33 #include "objects/SpaceShip.h"34 33 35 34 namespace orxonox … … 49 48 void HUDSpeedBar::tick(float dt) 50 49 { 50 /* 51 51 SpaceShip* ship = SpaceShip::getLocalShip(); 52 52 if (ship) … … 57 57 this->setValue(value); 58 58 } 59 */ 59 60 } 60 61 }
Note: See TracChangeset
for help on using the changeset viewer.