Changeset 3060 for code/trunk/src/orxonox/objects
- Timestamp:
- May 25, 2009, 3:07:31 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 53 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/sound (added) merged: 2829,2866,2899,2930-2932,2950,2955,2966-2968,2980,2982,2984,2998-2999,3010
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/Level.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/Level.cc merged eligible
r3028 r3060 41 41 #include "objects/gametypes/Gametype.h" 42 42 #include "overlays/OverlayGroup.h" 43 #include "sound/SoundBase.h" 43 44 44 45 #include "util/Math.h" … … 68 69 if (this->xmlfile_) 69 70 Loader::unload(this->xmlfile_); 71 72 if(this->ambientsound_ != NULL) 73 delete this->ambientsound_; 70 74 } 71 75 } … … 77 81 XMLPortParam(Level, "description", setDescription, getDescription, xmlelement, mode); 78 82 XMLPortParam(Level, "gametype", setGametypeString, getGametypeString, xmlelement, mode).defaultValues("Gametype"); 83 84 XMLPortParamLoadOnly(Level, "ambientsound", loadAmbientSound, xmlelement, mode); 79 85 80 86 XMLPortObjectExtended(Level, BaseObject, "", addObject, getObject, xmlelement, mode, true, false); … … 148 154 } 149 155 156 void Level::loadAmbientSound(const std::string& filename) 157 { 158 if(filename == "") return; 159 else 160 { 161 if(this->ambientsound_ == NULL) 162 { 163 this->ambientsound_ = new SoundBase(); 164 } 165 166 this->ambientsound_->loadFile(filename); 167 this->ambientsound_->play(true); 168 } 169 } 170 150 171 void Level::playerEntered(PlayerInfo* player) 151 172 { -
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/Level.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/Level.h merged eligible
r3028 r3060 51 51 { return this->description_; } 52 52 53 void loadAmbientSound(const std::string& filename); 54 53 55 void playerEntered(PlayerInfo* player); 54 56 void playerLeft(PlayerInfo* player); … … 69 71 XMLFile* xmlfile_; 70 72 std::list<BaseObject*> objects_; 73 74 SoundBase* ambientsound_; 71 75 }; 72 76 } -
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/collisionshapes
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/collisionshapes merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/gametypes/TeamDeathmatch.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/gametypes/TeamDeathmatch.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/items/Engine.cc
r2662 r3060 36 36 #include "objects/worldentities/pawns/SpaceShip.h" 37 37 #include "tools/Shader.h" 38 #include "sound/SoundBase.h" 38 39 39 40 namespace orxonox … … 66 67 this->setConfigValues(); 67 68 this->registerVariables(); 69 70 this->sound_ = NULL; 68 71 } 69 72 … … 76 79 if (this->boostBlur_) 77 80 delete this->boostBlur_; 81 82 if(this->sound_ != NULL) 83 delete this->sound_; 78 84 } 79 85 } … … 95 101 XMLPortParam(Engine, "accelerationleftright", setAccelerationLeftRight, setAccelerationLeftRight, xmlelement, mode); 96 102 XMLPortParam(Engine, "accelerationupdown", setAccelerationUpDown, setAccelerationUpDown, xmlelement, mode); 103 104 XMLPortParamLoadOnly(Engine, "sound", loadSound, xmlelement, mode); 97 105 } 98 106 … … 219 227 { 220 228 this->ship_ = ship; 229 221 230 if (ship) 222 231 { … … 230 239 this->boostBlur_ = 0; 231 240 } 241 242 if(this->sound_ != NULL) 243 this->sound_->attachToEntity(ship); 232 244 } 233 245 } … … 240 252 return Vector3::ZERO; 241 253 } 254 255 void Engine::loadSound(const std::string filename) 256 { 257 if(filename == "") return; 258 else 259 { 260 if(this->sound_ == NULL) 261 { 262 this->sound_ = new SoundBase(this->ship_); 263 } 264 265 this->sound_->loadFile(filename); 266 this->sound_->play(true); 267 } 268 } 242 269 } -
code/trunk/src/orxonox/objects/items/Engine.h
r2662 r3060 107 107 virtual const Vector3& getDirection() const; 108 108 109 void loadSound(const std::string filename); 110 109 111 private: 110 112 void networkcallback_shipID(); … … 129 131 Shader* boostBlur_; 130 132 float blurStrength_; 133 134 SoundBase* sound_; 131 135 }; 132 136 } -
code/trunk/src/orxonox/objects/pickup/Usable.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/pickup/Usable.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddQuestHint.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddQuestHint.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddReward.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddReward.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddReward.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddReward.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/ChangeQuestStatus.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/ChangeQuestStatus.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/CompleteQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/CompleteQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/CompleteQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/CompleteQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/FailQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/FailQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/FailQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/FailQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/GlobalQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/GlobalQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/LocalQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/LocalQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/LocalQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/LocalQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/Quest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/Quest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/Quest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/Quest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestDescription.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestDescription.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestDescription.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestDescription.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestEffect.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestEffect.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestEffect.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestEffect.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestHint.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestHint.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestHint.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestHint.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestItem.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestItem.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestItem.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestItem.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestManager.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestManager.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestManager.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestManager.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/Rewardable.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/Rewardable.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/Rewardable.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/Rewardable.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/Backlight.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/Backlight.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/Backlight.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/Backlight.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/Camera.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/Camera.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/Camera.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/Camera.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/MobileEntity.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/MobileEntity.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/ParticleSpawner.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/ParticleSpawner.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/StaticEntity.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/StaticEntity.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/StaticEntity.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/StaticEntity.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/triggers/Trigger.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/triggers/Trigger.h merged eligible
-
Property
svn:mergeinfo
set to
Note: See TracChangeset
for help on using the changeset viewer.