Changeset 513
- Timestamp:
- Dec 13, 2007, 5:58:14 PM (17 years ago)
- Location:
- code/branches/FICN/src
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/audio/AudioBuffer.cc
r389 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include "AudioBuffer.h" 2 29 … … 18 45 if(alGetError() != AL_NO_ERROR) 19 46 loaded=AL_FALSE; 20 47 21 48 loaded=AL_TRUE; 22 49 } 23 50 24 51 AudioBuffer::~AudioBuffer() 25 52 { 26 53 27 54 } 28 55 } -
code/branches/FICN/src/audio/AudioManager.cc
r458 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include "AudioManager.h" 2 29 -
code/branches/FICN/src/audio/AudioSource.cc
r389 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include "AudioSource.h" 2 29 … … 7 34 8 35 } 9 36 10 37 AudioSource::~AudioSource() 11 38 { 12 39 13 40 } 14 41 } -
code/branches/FICN/src/audio/AudioStream.cc
r430 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 2 29 #include "AudioStream.h" … … 8 35 this->path = path; 9 36 loaded = false; 10 } 37 } 11 38 12 39 void AudioStream::open() … … 14 41 int result; 15 42 16 43 17 44 if(!(oggFile = fopen(path.c_str(), "rb"))) 18 45 { … … 23 50 if((result = ov_open(oggFile, &oggStream, NULL, 0)) < 0) 24 51 { 25 fclose(oggFile); 52 fclose(oggFile); 26 53 orxonox::Error("Could not open Ogg stream. " + errorString(result)); 27 54 return; … … 29 56 30 57 loaded = true; 31 58 32 59 vorbisInfo = ov_info(&oggStream, -1); 33 60 vorbisComment = ov_comment(&oggStream, -1); 34 61 35 62 if(vorbisInfo->channels == 1) 36 63 format = AL_FORMAT_MONO16; 37 64 else 38 65 format = AL_FORMAT_STEREO16; 39 40 66 67 41 68 alGenBuffers(2, buffers); 42 69 check(); 43 70 alGenSources(1, &source); 44 71 check(); 45 72 46 73 alSource3f(source, AL_POSITION, 0.0, 0.0, 0.0); 47 74 alSource3f(source, AL_VELOCITY, 0.0, 0.0, 0.0); … … 50 77 alSourcei (source, AL_SOURCE_RELATIVE, AL_FALSE ); 51 78 } 52 53 54 55 79 80 81 82 56 83 void AudioStream::release() 57 84 { … … 63 90 alDeleteBuffers(1, buffers); 64 91 check(); 65 92 66 93 ov_clear(&oggStream); 67 94 loaded = false; 68 69 } 70 71 72 73 95 96 } 97 98 99 100 74 101 void AudioStream::display() 75 102 { … … 86 113 << "\n" 87 114 << "vendor " << vorbisComment->vendor << "\n"; 88 115 89 116 for(int i = 0; i < vorbisComment->comments; i++) 90 117 std::cout << " " << vorbisComment->user_comments[i] << "\n"; 91 92 std::cout << std::endl; 118 119 std::cout << std::endl; 93 120 } 94 121 } 95 96 97 98 122 123 124 125 99 126 bool AudioStream::playback() 100 127 { … … 106 133 if(playing()) 107 134 return true; 108 135 109 136 if(!stream(buffers[0])) 110 137 return false; 111 138 112 139 if(!stream(buffers[1])) 113 140 return false; 114 141 115 142 alSourceQueueBuffers(source, 2, buffers); 116 143 alSourcePlay(source); 117 144 118 145 return true; 119 146 } 120 121 122 123 147 148 149 150 124 151 bool AudioStream::playing() 125 152 { … … 133 160 return (state == AL_PLAYING); 134 161 } 135 136 137 138 162 163 164 165 139 166 bool AudioStream::update() 140 167 { 141 168 int processed; 142 169 bool active = true; 143 170 144 171 alGetSourcei(source, AL_BUFFERS_PROCESSED, &processed); 145 172 146 173 while(processed--) 147 174 { 148 175 ALuint buffer; 149 176 150 177 alSourceUnqueueBuffers(source, 1, &buffer); 151 178 check(); 152 179 153 180 active = stream(buffer); 154 181 155 182 alSourceQueueBuffers(source, 1, &buffer); 156 183 check(); 157 184 } 158 185 159 186 if (active==false) 160 187 { … … 163 190 return active; 164 191 } 165 166 167 168 192 193 194 195 169 196 bool AudioStream::stream(ALuint buffer) 170 197 { … … 173 200 int section; 174 201 int result; 175 202 176 203 while(size < BUFFER_SIZE) 177 204 { 178 205 result = ov_read(&oggStream, pcm + size, BUFFER_SIZE - size, 0, 2, 1, §ion); 179 206 180 207 if(result > 0) 181 208 size += result; … … 186 213 break; 187 214 } 188 215 189 216 if(size == 0) 190 217 return false; 191 218 192 219 alBufferData(buffer, format, pcm, size, vorbisInfo->rate); 193 220 check(); 194 221 195 222 return true; 196 223 } 197 198 224 225 199 226 200 227 void AudioStream::empty() 201 228 { 202 229 int queued; 203 230 204 231 alGetSourcei(source, AL_BUFFERS_QUEUED, &queued); 205 232 206 233 while(queued--) 207 234 { 208 235 ALuint buffer; 209 236 210 237 alSourceUnqueueBuffers(source, 1, &buffer); 211 238 check(); 212 239 } 213 240 } 214 215 216 217 241 242 243 244 218 245 void AudioStream::check() 219 246 { 220 247 int error = alGetError(); 221 248 222 249 if(error != AL_NO_ERROR) 223 250 orxonox::Error("OpenAL error was raised."); 224 251 } 225 226 227 252 253 254 228 255 std::string AudioStream::errorString(int code) 229 256 { -
code/branches/FICN/src/audio/_AudioObject.cc
r389 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 28 1 29 #include <iostream> 2 30 #include <string> … … 33 61 34 62 // Initialize OpenAL and clear the error bit. 35 63 36 64 alutInit(NULL, 0); 37 65 alGetError(); 38 66 39 67 // Load the wav data. 40 68 41 69 if(LoadALData() == AL_FALSE) 42 70 { 43 71 printf("Error loading sound data."); 44 72 45 73 } 46 74 … … 48 76 std::cout << "Play sone ambient background sound"; 49 77 } 50 78 51 79 AudioObject::~AudioObject() 52 { 80 { 53 81 KillALData(); 54 82 } 55 83 56 84 ALboolean AudioObject::LoadALData() 57 85 { … … 61 89 ALsizei freq; 62 90 ALboolean loop; 63 64 91 92 65 93 alGenBuffers(1, &Buffer); 66 94 67 95 if(alGetError() != AL_NO_ERROR) 68 96 return AL_FALSE; 69 97 70 98 alutLoadWAVFile((ALbyte*)audioFile_.c_str(), &format, &data, &size, &freq, &loop); 71 99 alBufferData(Buffer, format, data, size, freq); 72 100 alutUnloadWAV(format, data, size, freq); 73 101 74 102 alGenSources(1, &Source); 75 103 76 104 if(alGetError() != AL_NO_ERROR) 77 105 return AL_FALSE; 78 106 79 107 alSourcei (Source, AL_BUFFER, Buffer ); 80 108 alSourcef (Source, AL_PITCH, 1.0 ); … … 83 111 alSourcefv(Source, AL_VELOCITY, SourceVel); 84 112 alSourcei (Source, AL_LOOPING, loop ); 85 113 86 114 if(alGetError() == AL_NO_ERROR) 87 115 return AL_TRUE; 88 89 116 117 90 118 return AL_FALSE; 91 } 119 } 92 120 93 121 void AudioObject::SetListenerValues() … … 97 125 alListenerfv(AL_ORIENTATION, ListenerOri); 98 126 } 99 127 100 128 void AudioObject::KillALData() 101 129 { … … 108 136 { 109 137 alSourcePlay(Source); 110 138 111 139 } 112 140 } -
code/branches/FICN/src/hud/hud_overlay.cc
r502 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: … … 74 74 OverlayElement* TimeText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/Time/Text"); 75 75 TimeText->setCaption(StringConverter::toString(TimeMin) + ":" + StringConverter::toString(TimeSec)); 76 76 77 77 // set TargetWindow 78 78 String TargetWindowName = "HURRA"; … … 81 81 int TargetWindowHitRating = 30; 82 82 OverlayElement* TargetWindowNameText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/Name"); 83 TargetWindowNameText->setCaption( TargetWindowName); 83 TargetWindowNameText->setCaption( TargetWindowName); 84 84 OverlayElement* TargetWindowDistanceText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/DistanceText"); 85 85 TargetWindowDistanceText->setCaption(StringConverter::toString(TargetWindowDistance) + "km" ); … … 88 88 OverlayElement* TargetWindowHitRatingText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/HitRatingText"); 89 89 TargetWindowHitRatingText->setCaption(StringConverter::toString(TargetWindowHitRating) + "%" ); 90 90 91 91 // set Energy 92 92 int EnergyValue = 60.0; 93 93 OverlayElement* EnergyLength = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/EnergyBackground"); 94 94 EnergyLength->setWidth((int)((double)60/(double)100*200)); 95 95 96 96 // set Shild 97 97 bool ShildLeftTopValue = true; … … 111 111 if (ShildRightBottomValue) ShildRightBottom->show(); 112 112 else ShildRightBottom->hide(); 113 113 114 114 // set Rockets 115 115 int Rocket1 = 11; … … 125 125 OverlayElement* RocketNum4 = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/RocketNum4"); 126 126 RocketNum4->setCaption(StringConverter::toString(Rocket4)); 127 127 128 128 // set EnergyDistribution 129 129 double EnergyDistrPixelX = 100; 130 double EnergyDistrPixelY = 86; 130 double EnergyDistrPixelY = 86; 131 131 double EnergyDistrShild = 32; 132 132 double EnergyDistrEngine = 50; … … 137 137 double EnergyDistrY = (double)EnergyDistrEngineInv/((double)EnergyDistrEngineInv+(double)EnergyDistrLaserInv) * EnergyDistrPixelY; 138 138 double EnergyDistrX = EnergyDistrY/1.7321; 139 140 141 139 140 141 142 142 OverlayElement* EnergyDistrPoint = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/EnergyDistrPoint"); 143 143 // EnergyDistrPoint->setLeft(); -
code/branches/FICN/src/loader/LevelLoader.cc
r507 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include <string> 2 29 #include <vector> … … 19 46 { 20 47 valid_ = false; 21 48 22 49 // Load XML level file 23 50 path.append("/"); 24 path.append(file); 25 51 path.append(file); 52 26 53 // Open xml file 27 54 doc.LoadFile(path); … … 31 58 { 32 59 TiXmlHandle hDoc(&doc); 33 TiXmlHandle hRoot(0); 60 TiXmlHandle hRoot(0); 34 61 TiXmlElement* pElem; 35 62 … … 46 73 if (pElem) 47 74 { 48 description_ = pElem->GetText(); 75 description_ = pElem->GetText(); 49 76 } 50 77 51 78 // Set level name 52 79 name_ = rootElement->Attribute("name"); 53 80 image_ = rootElement->Attribute("image"); 54 81 55 82 valid_ = true; 56 83 } … … 58 85 { 59 86 orxonox::Error("Level file has no valid root node"); 60 } 87 } 61 88 } 62 89 else 63 90 { 64 91 orxonox::Error("Could not load level file "); 65 } 92 } 66 93 } 67 94 … … 74 101 TiXmlElement* tElem; 75 102 TiXmlNode* tNode; 76 77 103 104 78 105 // Set loading screen 79 106 loadElem = rootElement->FirstChildElement("loading"); … … 99 126 showLoadingScreen(); 100 127 } 101 128 102 129 // Load audio 103 130 // TODO 104 131 105 132 // Load scripts 106 133 // TODO 107 134 108 135 // Load world 109 136 worldElem = rootElement->FirstChildElement("world"); 110 137 if (worldElem) 111 { 138 { 112 139 tNode = 0; 113 140 while( tNode = worldElem->IterateChildren( tNode ) ) … … 116 143 orxonox::BaseObject* obj = ID(tElem->Value())->fabricate(); 117 144 obj->loadParams(tElem); 118 } 145 } 119 146 } 120 121 std::cout << "Loading finished!\n\n\n\n\n"; 147 148 std::cout << "Loading finished!\n\n\n\n\n"; 122 149 } 123 150 } 124 151 125 152 void LevelLoader::showLoadingScreen() 126 153 { … … 129 156 std::cout << "Backgroundcolor: " << loadingBackgroundColor_ << "\nBackgroundimage:" << loadingBackgroundImage_ << "\n\n\n"; 130 157 } 131 158 132 159 LevelLoader::~LevelLoader() 133 160 { 134 161 135 162 } 136 137 163 164 138 165 string LevelLoader::name() 139 166 { 140 167 return this->name_; 141 168 } 142 169 143 170 string LevelLoader::description() 144 171 { 145 172 return this->description_; 146 173 } 147 174 148 175 string LevelLoader::image() 149 176 { -
code/branches/FICN/src/orxonox/core/ConfigValueContainer.cc
r497 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include <fstream> 2 29 #include <string> -
code/branches/FICN/src/orxonox/core/Error.cc
r423 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include "Error.h" 2 29 … … 19 46 << "############################ "<< std::endl 20 47 << "An error occured in Orxonox: "<< std::endl; 21 48 22 49 if (errorMsg=="") 23 50 { -
code/branches/FICN/src/orxonox/core/Factory.cc
r496 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 /*! 2 29 @file Factory.cc -
code/branches/FICN/src/orxonox/core/Identifier.cc
r496 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 /*! 2 29 @file Identifier.cc -
code/branches/FICN/src/orxonox/core/IdentifierList.cc
r496 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 /*! 2 29 @file IdentifierList.cc -
code/branches/FICN/src/orxonox/core/MetaObjectList.cc
r384 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 /*! 2 29 @file MetaObjectList.cc -
code/branches/FICN/src/orxonox/core/OrxonoxClass.cc
r384 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 /*! 2 29 @file OrxonoxClass.cc -
code/branches/FICN/src/orxonox/hud/hud_overlay.cc
r337 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: … … 74 74 OverlayElement* TimeText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/Time/Text"); 75 75 TimeText->setCaption(StringConverter::toString(TimeMin) + ":" + StringConverter::toString(TimeSec)); 76 76 77 77 // set TargetWindow 78 78 String TargetWindowName = "HURRA"; … … 81 81 int TargetWindowHitRating = 30; 82 82 OverlayElement* TargetWindowNameText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/Name"); 83 TargetWindowNameText->setCaption( TargetWindowName); 83 TargetWindowNameText->setCaption( TargetWindowName); 84 84 OverlayElement* TargetWindowDistanceText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/DistanceText"); 85 85 TargetWindowDistanceText->setCaption(StringConverter::toString(TargetWindowDistance) + "km" ); … … 88 88 OverlayElement* TargetWindowHitRatingText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/HitRatingText"); 89 89 TargetWindowHitRatingText->setCaption(StringConverter::toString(TargetWindowHitRating) + "%" ); 90 90 91 91 // set Energy 92 92 int EnergyValue = 60.0; 93 93 OverlayElement* EnergyLength = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/EnergyBackground"); 94 94 EnergyLength->setWidth((int)((double)60/(double)100*200)); 95 95 96 96 // set Shild 97 97 bool ShildLeftTopValue = true; … … 111 111 if (ShildRightBottomValue) ShildRightBottom->show(); 112 112 else ShildRightBottom->hide(); 113 113 114 114 // set Rockets 115 115 int Rocket1 = 11; … … 125 125 OverlayElement* RocketNum4 = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/RocketNum4"); 126 126 RocketNum4->setCaption(StringConverter::toString(Rocket4)); 127 127 128 128 // set EnergyDistribution 129 129 double EnergyDistrPixelX = 100; 130 double EnergyDistrPixelY = 86; 130 double EnergyDistrPixelY = 86; 131 131 double EnergyDistrShild = 32; 132 132 double EnergyDistrEngine = 50; … … 137 137 double EnergyDistrY = (double)EnergyDistrEngineInv/((double)EnergyDistrEngineInv+(double)EnergyDistrLaserInv) * EnergyDistrPixelY; 138 138 double EnergyDistrX = EnergyDistrY/1.7321; 139 140 141 139 140 141 142 142 OverlayElement* EnergyDistrPoint = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/EnergyDistrPoint"); 143 143 // EnergyDistrPoint->setLeft(); -
code/branches/FICN/src/orxonox/hud/test_overlay.cc
r337 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: -
code/branches/FICN/src/orxonox/inertial_node.cc
r346 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: -
code/branches/FICN/src/orxonox/objects/Ambient.cc
r507 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include <OgreSceneManager.h> 2 29 #include <string> … … 25 52 { 26 53 Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager(); 27 54 28 55 if (xmlElem->Attribute("colourvalue")) 29 56 { 30 57 31 58 std::vector<std::string> colourvalues = tokenize(xmlElem->Attribute("colourvalue"),","); 32 59 float r, g, b; … … 34 61 String2Number<float>(g, colourvalues[1]); 35 62 String2Number<float>(b, colourvalues[2]); 36 63 37 64 mgr->setAmbientLight(ColourValue(r,g,b)); 38 65 39 66 std::cout << "Loader: Set ambient light: "<<r<<" " << g << " " << b << std::endl << std::endl; 40 } 67 } 41 68 } 42 69 } -
code/branches/FICN/src/orxonox/objects/BaseObject.cc
r496 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 /*! 2 29 @file BaseObject.cc -
code/branches/FICN/src/orxonox/objects/Skybox.cc
r507 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include <OgreSceneManager.h> 2 29 #include <string> … … 25 52 { 26 53 Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager(); 27 54 28 55 if (xmlElem->Attribute("src")) 29 56 { 30 57 std::string skyboxSrc = xmlElem->Attribute("src"); 31 58 mgr->setSkyBox(true, skyboxSrc); 32 59 33 60 std::cout << "Loader: Set skybox: "<< skyboxSrc << std::endl << std::endl; 34 } 61 } 35 62 } 36 63 } -
code/branches/FICN/src/orxonox/objects/WorldEntity.cc
r497 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include <string> 2 29 #include <sstream> -
code/branches/FICN/src/orxonox/orxonox_scene.cc
r346 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: … … 143 143 144 144 lightNode_->setPosition(radius_*sin(5*t), radius_*cos(5*t), sin(1*t)*distance_); 145 145 146 146 light_->setDiffuseColour(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2)); 147 147 light_->setSpecularColour(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2)); … … 149 149 bbs_->getBillboard(0)->setColour(ColourValue(sin(1*t), 150 150 sin(1*t + 2.09), sin(1*t + 2.09*2))); 151 151 152 152 return true; 153 153 } -
code/branches/FICN/src/orxonox/orxonox_ship.cc
r346 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: … … 52 52 /** 53 53 * Base class for any kind of flyable ship in Orxonox. 54 * 54 * 55 55 * The ship offers steering methods (like left, right, etc.) and translates 56 56 * them into movement. A ship can also hold more than one weapons (where each -
code/branches/FICN/src/orxonox/run_manager.cc
r346 r513 1 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * 20 * 21 * Author: 22 * Reto Grieder 23 * Co-authors: 24 * ... 25 */ 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * Reto Grieder 23 * Co-authors: 24 * ... 25 * 26 */ 26 27 27 28 … … 66 67 /** 67 68 * RunManager is the basic control object during the game. 68 * 69 * 69 70 * The RunManger class is designed to actually "run" the main part of the 70 71 * game. The Idea is, that you could derive from the RunManager in order … … 151 152 // HUMAN INTERFACE 152 153 153 using namespace OIS; 154 using namespace OIS; 154 155 155 156 LogManager::getSingletonPtr()->logMessage("*** Initializing OIS ***"); … … 212 213 /** 213 214 * Method to compute anything between 2 frames. 214 * 215 * 215 216 * Everything that needs to be computed during the games happens right here. 216 217 * The only exception are the listeners (which should only set variables, 217 218 * not actually do something). 218 * 219 * 219 220 * @param time Absolute play time 220 221 * @param deltaTime Time passed since last frame -
code/branches/FICN/src/orxonox/spaceship_steering.cc
r392 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include "Ogre.h" 2 29 #include "spaceship_steering.h" -
code/branches/FICN/src/orxonox/weapon/ammunition_dump.cc
r341 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: … … 65 65 } 66 66 67 67 68 68 int AmmunitionDump::store(const Ogre::String &name, int quantity) 69 69 { -
code/branches/FICN/src/orxonox/weapon/barrel_gun.cc
r341 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: -
code/branches/FICN/src/orxonox/weapon/base_weapon.cc
r341 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: -
code/branches/FICN/src/orxonox/weapon/bullet.cc
r337 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: -
code/branches/FICN/src/orxonox/weapon/bullet_manager.cc
r337 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: -
code/branches/FICN/src/orxonox/weapon/weapon_station.cc
r337 r513 5 5 * License notice: 6 6 * 7 * This program is free software : you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation, either version 3 of the License, or10 * (at your option) any later version.7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 11 * 12 12 * This program is distributed in the hope that it will be useful, … … 16 16 * 17 17 * You should have received a copy of the GNU General Public License 18 * along with this program . If not, see <http://www.gnu.org/licenses/>.19 * 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 20 * 21 21 * Author: -
code/branches/FICN/src/particle/ParticleInterface.cc
r502 r513 1 /* 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * ... 23 * Co-authors: 24 * ... 25 * 26 */ 27 1 28 #include "ParticleInterface.h" 2 29 #include <Ogre.h> … … 22 49 { 23 50 sceneManager_ = sceneManager; 24 particleSystem_ = sceneManager->createParticleSystem(name, templateName); 51 particleSystem_ = sceneManager->createParticleSystem(name, templateName); 25 52 26 53 //Variabeln einlesen, Emitter1_ ist Referenz-Emitter … … 52 79 } 53 80 54 void ParticleInterface::dettachFromSceneNode ( void ) 81 void ParticleInterface::dettachFromSceneNode ( void ) 55 82 { 56 83 sceneNode_->detachObject(particleSystem_); … … 58 85 } 59 86 60 Real ParticleInterface::getVelocity() 87 Real ParticleInterface::getVelocity() 61 88 { 62 89 return velocity_;
Note: See TracChangeset
for help on using the changeset viewer.