Changeset 2710 for code/trunk/src/orxonox/objects
- Timestamp:
- Feb 28, 2009, 7:46:37 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 73 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 EventListener.cc 3 3 EventDispatcher.cc … … 14 14 ) 15 15 16 ADD_S OURCE_DIRECTORY(SRC_FILEScollisionshapes)17 ADD_S OURCE_DIRECTORY(SRC_FILEScontrollers)18 ADD_S OURCE_DIRECTORY(SRC_FILESgametypes)19 ADD_S OURCE_DIRECTORY(SRC_FILESinfos)20 ADD_S OURCE_DIRECTORY(SRC_FILESitems)21 ADD_S OURCE_DIRECTORY(SRC_FILESpickup)22 ADD_S OURCE_DIRECTORY(SRC_FILESquest)23 ADD_S OURCE_DIRECTORY(SRC_FILESweaponSystem)24 ADD_S OURCE_DIRECTORY(SRC_FILESworldentities)16 ADD_SUBDIRECTORY(collisionshapes) 17 ADD_SUBDIRECTORY(controllers) 18 ADD_SUBDIRECTORY(gametypes) 19 ADD_SUBDIRECTORY(infos) 20 ADD_SUBDIRECTORY(items) 21 ADD_SUBDIRECTORY(pickup) 22 ADD_SUBDIRECTORY(quest) 23 ADD_SUBDIRECTORY(weaponSystem) 24 ADD_SUBDIRECTORY(worldentities) 25 25 26 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/Level.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/Level.cc (added) merged: 2664,2685,2702
r2662 r2710 35 35 #include "core/XMLFile.h" 36 36 #include "core/Template.h" 37 #include "core/Core.h" 37 38 38 #include "Settings.h"39 39 #include "LevelManager.h" 40 40 #include "objects/infos/PlayerInfo.h" … … 55 55 this->xmlfilename_ = this->getFilename(); 56 56 57 if (this->xmlfilename_.length() >= Settings::getDataPath().length())58 this->xmlfilename_ = this->xmlfilename_.substr( Settings::getDataPath().length());57 if (this->xmlfilename_.length() >= Core::getMediaPathString().length()) 58 this->xmlfilename_ = this->xmlfilename_.substr(Core::getMediaPathString().length()); 59 59 } 60 60 … … 97 97 mask.include(Class(OverlayGroup)); // HACK to include the ChatOverlay 98 98 99 this->xmlfile_ = new XMLFile( Settings::getDataPath() + this->xmlfilename_, mask);99 this->xmlfile_ = new XMLFile(Core::getMediaPathString() + this->xmlfilename_, mask); 100 100 101 101 Loader::open(this->xmlfile_); - Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/Level.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/Level.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/collisionshapes
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/collisionshapes (added) merged: 2665
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/collisionshapes/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 BoxCollisionShape.cc 3 3 CollisionShape.cc … … 8 8 WorldEntityCollisionShape.cc 9 9 ) 10 11 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/controllers/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Controller.cc 3 3 HumanController.cc … … 6 6 ScriptController.cc 7 7 ) 8 9 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/gametypes/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Gametype.cc 3 3 ) 4 5 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/gametypes/Gametype.cc
r2662 r2710 43 43 #include "objects/worldentities/SpawnPoint.h" 44 44 #include "objects/worldentities/Camera.h" 45 #include "Settings.h"46 45 47 46 #include "network/Host.h" -
code/trunk/src/orxonox/objects/infos/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Bot.cc 3 3 Info.cc … … 6 6 GametypeInfo.cc 7 7 ) 8 9 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/items/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Item.cc 3 3 Engine.cc 4 4 MultiStateEngine.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/pickup/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 PickupSpawner.cc 3 3 BaseItem.cc … … 5 5 ShipEquipment.cc 6 6 ) 7 8 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/pickup/Usable.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/pickup/Usable.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddQuestHint.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddQuestHint.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddReward.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddReward.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddReward.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/AddReward.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 AddQuest.cc 3 3 AddQuestHint.cc … … 18 18 Rewardable.cc 19 19 ) 20 21 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/ChangeQuestStatus.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/ChangeQuestStatus.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/CompleteQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/CompleteQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/CompleteQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/CompleteQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/FailQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/FailQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/FailQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/FailQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/GlobalQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/GlobalQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/LocalQuest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/LocalQuest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/LocalQuest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/LocalQuest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/Quest.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/Quest.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/Quest.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/Quest.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestDescription.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestDescription.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestDescription.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestDescription.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestEffect.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestEffect.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestEffect.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestEffect.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestHint.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestHint.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestHint.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestHint.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestItem.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestItem.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestItem.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestItem.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestManager.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestManager.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestManager.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/QuestManager.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/Rewardable.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/Rewardable.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/Rewardable.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/quest/Rewardable.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/weaponSystem/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Munition.cc 3 3 Weapon.cc … … 8 8 ) 9 9 10 ADD_SOURCE_DIRECTORY(SRC_FILES munitions) 11 ADD_SOURCE_DIRECTORY(SRC_FILES projectiles) 12 ADD_SOURCE_DIRECTORY(SRC_FILES weapons) 13 14 ADD_SOURCE_FILES(SRC_FILES) 10 ADD_SUBDIRECTORY(munitions) 11 ADD_SUBDIRECTORY(projectiles) 12 ADD_SUBDIRECTORY(weapons) -
code/trunk/src/orxonox/objects/weaponSystem/WeaponPack.cc
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/objects/weaponSystem/WeaponPack.h
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/objects/weaponSystem/WeaponSystem.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/weaponSystem/WeaponSystem.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/weaponSystem/WeaponSystem.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/weaponSystem/WeaponSystem.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/weaponSystem/munitions/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 LaserGunMunition.cc 3 3 ) 4 5 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/weaponSystem/projectiles/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 BillboardProjectile.cc 3 3 ParticleProjectile.cc 4 4 Projectile.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/weaponSystem/weapons/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Fusion.cc 3 3 LaserGun.cc 4 4 # Missile.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/weaponSystem/weapons/Fusion.cc
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/objects/weaponSystem/weapons/Fusion.h
- Property svn:eol-style set to native
-
code/trunk/src/orxonox/objects/worldentities/Backlight.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Backlight.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Backlight.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Backlight.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 WorldEntity.cc 3 3 StaticEntity.cc … … 21 21 ) 22 22 23 ADD_SOURCE_DIRECTORY(SRC_FILES pawns) 24 ADD_SOURCE_DIRECTORY(SRC_FILES triggers) 25 26 ADD_SOURCE_FILES(SRC_FILES) 23 ADD_SUBDIRECTORY(pawns) 24 ADD_SUBDIRECTORY(triggers) -
code/trunk/src/orxonox/objects/worldentities/Camera.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Camera.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Camera.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Camera.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/ParticleSpawner.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/ParticleSpawner.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Planet.cc
r2662 r2710 74 74 if(activeCamera) 75 75 { 76 Realdistance = this->getPosition().distance( activeCamera->getWorldPosition() );76 float distance = this->getPosition().distance( activeCamera->getWorldPosition() ); 77 77 // COUT(2) << distance << std::endl; 78 RealplanetRadius = this->getScale();78 float planetRadius = this->getScale(); 79 79 80 RealnewScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius);81 Real tempTest = newScale*(1+Real(this->atmosphereSize)/Real(this->imageSize));80 float newScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius); 81 float tempTest = newScale*(1+float(this->atmosphereSize)/float(this->imageSize)); 82 82 newScale = tempTest; 83 83 … … 90 90 void Planet::init() 91 91 { 92 RealscaleFactor = this->getScale();92 float scaleFactor = this->getScale(); 93 93 94 94 this->distList.push_back(10.0*scaleFactor); … … 103 103 this->distList.push_back(55.0*scaleFactor); 104 104 105 RealreductionValue = 0.2;105 float reductionValue = 0.2; 106 106 107 107 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue); -
code/trunk/src/orxonox/objects/worldentities/Planet.h
r2662 r2710 71 71 } 72 72 73 inline void setAtmosphereSize( Realsize){73 inline void setAtmosphereSize(float size){ 74 74 this->atmosphereSize = size; 75 75 } 76 76 77 inline RealgetAtmosphereSize(){77 inline float getAtmosphereSize(){ 78 78 return this->atmosphereSize; 79 79 } … … 87 87 } 88 88 89 inline void setImageSize( Realsize){89 inline void setImageSize(float size){ 90 90 this->imageSize = size; 91 91 } 92 92 93 inline RealgetImageSize(){93 inline float getImageSize(){ 94 94 return this->imageSize; 95 95 } … … 106 106 std::string atmosphere_; 107 107 Mesh mesh_; 108 RealatmosphereSize;109 RealimageSize;108 float atmosphereSize; 109 float imageSize; 110 110 Ogre::Mesh::LodDistanceList distList; 111 111 BillboardSet billboard_; -
code/trunk/src/orxonox/objects/worldentities/StaticEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/StaticEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/pawns/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Spectator.cc 3 3 Pawn.cc 4 4 SpaceShip.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/worldentities/triggers/CMakeLists.txt
r2261 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Trigger.cc 3 3 DistanceTrigger.cc … … 5 5 PlayerTrigger.cc 6 6 ) 7 8 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/Trigger.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/Trigger.h (added) merged: 2664
- Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.