Changeset 6388
- Timestamp:
- Dec 21, 2009, 1:28:10 PM (15 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 62 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/README
r1505 r6388 3 3 We are proud to present you Orxonox - the most ferious 3D space shooter ever to exist. 4 4 5 This game is free, if you have paid for this, get your money back! The source code of this game is licensed under the GPL (GNU General Public License). 5 This game is free, if you have paid for this, get your money back! The source code of this game is licensed under the GPL (GNU General Public License). 6 6 The game content is licensed under the Creative Commons Attribution-Sharealike 2.5 license. For more information read LICENSE in the same folder you found this file. 7 7 -
code/branches/presentation2/data/gui/scripts/AudioMenu.lua
r6370 r6388 42 42 table.insert(themeList, "Drum n' Bass") 43 43 for k,v in pairs(themeList) do 44 item = CEGUI.createListboxTextItem(v) 44 item = CEGUI.createListboxTextItem(v) 45 45 item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush") 46 46 CEGUI.toListbox(listboxwindow):addItem(item) -
code/branches/presentation2/data/gui/scripts/GameplayMenu.lua
r6363 r6388 19 19 table.insert(themeList, "Theme 3") 20 20 for k,v in pairs(themeList) do 21 item = CEGUI.createListboxTextItem(v) 21 item = CEGUI.createListboxTextItem(v) 22 22 item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush") 23 23 CEGUI.toCombobox(dropdown):addItem(item) -
code/branches/presentation2/data/gui/scripts/GraphicsMenu.lua
r6363 r6388 61 61 table.insert(resolutionList, "1440 x 900") 62 62 for k,v in pairs(resolutionList) do 63 item = CEGUI.createListboxTextItem(v) 63 item = CEGUI.createListboxTextItem(v) 64 64 item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush") 65 65 CEGUI.toListbox(listboxwindow):addItem(item) -
code/branches/presentation2/data/gui/scripts/MultiplayerMenu.lua
r6363 r6388 29 29 table.sort(levelList) 30 30 for k,v in pairs(levelList) do 31 item = CEGUI.createListboxTextItem(v) 31 item = CEGUI.createListboxTextItem(v) 32 32 item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush") 33 33 CEGUI.toListbox(listbox):addItem(item) -
code/branches/presentation2/data/gui/scripts/SingleplayerMenu.lua
r6363 r6388 29 29 table.sort(levelList) 30 30 for k,v in pairs(levelList) do 31 item = CEGUI.createListboxTextItem(v) 31 item = CEGUI.createListboxTextItem(v) 32 32 item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush") 33 33 CEGUI.toListbox(listbox):addItem(item) -
code/branches/presentation2/data/levels/empty_level.oxw
r6387 r6388 18 18 > 19 19 20 <!--Rocket position="-10, 3.5,800" velocity="0,0,-100"> 20 <!--Rocket position="-10, 3.5,800" velocity="0,0,-100"> 21 21 <attached> 22 22 <Model pitch=180 position="0,0,0" scale=1.5 mesh="rocket_test.mesh" > -
code/branches/presentation2/data/levels/gametype_asteroids.oxw
r5781 r6388 28 28 ?> 29 29 30 <MovableEntity 31 position="<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>" collisionType=dynamic 30 <MovableEntity 31 position="<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>" collisionType=dynamic 32 32 linearDamping=0.8 33 33 angularDamping=0 34 scale=<?lua print(j * 150)?> 34 scale=<?lua print(j * 150)?> 35 35 collisiondamage=1 36 36 enablecollisiondamage=true> -
code/branches/presentation2/data/levels/old/physicstest.oxw
r5781 r6388 12 12 13 13 <?lua 14 for i = 1, 226, 1 14 for i = 1, 226, 1 15 15 do ?> 16 16 <Model position="<?lua print(math.random() * 40000 - 20000)?>, <?lua print(math.random() * 40000 - 20000) ?>, <?lua print(math.random() * 40000 - 20000) ?>" scale="<?lua print(math.random() * 250 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" rotationAxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationRate="<?lua print(math.random() * 30 + 15) ?>" /> 17 <?lua 17 <?lua 18 18 end 19 19 ?> -
code/branches/presentation2/data/levels/old/tutorial_hs08.oxw
r5781 r6388 19 19 <!-- Embedded lua code (creates random asteroids) --> 20 20 <?lua 21 for i = 1, 226, 1 21 for i = 1, 226, 1 22 22 do ?> 23 23 <Model position="<?lua print(math.random() * 40000 - 20000)?>, <?lua print(math.random() * 40000 - 20000) ?>, <?lua print(math.random() * 40000 - 20000) ?>" scale="<?lua print(math.random() * 250 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" rotationAxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationRate="<?lua print(math.random() * 30 + 15) ?>" /> 24 <?lua 24 <?lua 25 25 end 26 26 ?> -
code/branches/presentation2/data/levels/presentation09.oxw
r6387 r6388 24 24 max = 20 25 25 for i = 1, max, 1 26 do 26 do 27 27 x = math.sin(i/max*6)*40000 28 28 y = math.cos(i/max*6)*40000 … … 30 30 ?> 31 31 <?lua 32 for k = 1, 25, 1 32 for k = 1, 25, 1 33 33 do 34 34 j = math.random() 35 35 ?> 36 36 37 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 37 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 38 38 <attached> 39 39 <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> … … 43 43 </collisionShapes> <?lua end ?> 44 44 </MovableEntity> 45 <?lua 45 <?lua 46 46 end 47 47 ?> -
code/branches/presentation2/data/levels/presentation09b.oxw
r6387 r6388 121 121 122 122 <?lua 123 for i = 1, 10, 1 123 for i = 1, 10, 1 124 124 do 125 125 ?> … … 136 136 </controller> 137 137 </SpaceShip> 138 <?lua 139 end 140 ?> 141 142 <?lua 143 for i = 1, 12, 1 138 <?lua 139 end 140 ?> 141 142 <?lua 143 for i = 1, 12, 1 144 144 do 145 145 ?> … … 156 156 </controller> 157 157 </SpaceShip> 158 <?lua 158 <?lua 159 159 end 160 160 ?> … … 173 173 174 174 <?lua 175 for i = 1, 12, 1 175 for i = 1, 12, 1 176 176 do 177 177 ?> … … 190 190 </controller> 191 191 </SpaceShip> 192 <?lua 192 <?lua 193 193 end 194 194 ?> … … 320 320 321 321 <?lua 322 for i = 1, 10, 1 322 for i = 1, 10, 1 323 323 do 324 324 ?> … … 335 335 </controller> 336 336 </SpaceShip> 337 <?lua 338 end 339 ?> 340 341 <?lua 342 for i = 1, 200, 1 337 <?lua 338 end 339 ?> 340 341 <?lua 342 for i = 1, 200, 1 343 343 do 344 344 x = math.random() * 100 + (i-70) * 100 … … 348 348 ?> 349 349 350 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 350 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 351 351 <attached> 352 352 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 353 353 </attached> 354 354 </MovableEntity> 355 <?lua 355 <?lua 356 356 end 357 357 ?> … … 363 363 return table.getn(elements) 364 364 end 365 for i = 1, 150, 1 365 for i = 1, 150, 1 366 366 do 367 367 x = math.random() * 750 - 4500 … … 371 371 ?> 372 372 373 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 373 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 374 374 <attached> 375 375 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 376 376 </attached> 377 377 </MovableEntity> 378 <?lua 378 <?lua 379 379 end 380 380 ?> -
code/branches/presentation2/data/levels/presentationHS09.oxw
r6387 r6388 126 126 127 127 <?lua 128 for i = 1, 10, 1 128 for i = 1, 10, 1 129 129 do 130 130 ?> … … 141 141 </controller> 142 142 </SpaceShip> 143 <?lua 144 end 145 ?> 146 147 <?lua 148 for i = 1, 12, 1 143 <?lua 144 end 145 ?> 146 147 <?lua 148 for i = 1, 12, 1 149 149 do 150 150 ?> … … 161 161 </controller> 162 162 </SpaceShip> 163 <?lua 163 <?lua 164 164 end 165 165 ?> … … 178 178 179 179 <?lua 180 for i = 1, 12, 1 180 for i = 1, 12, 1 181 181 do 182 182 ?> … … 195 195 </controller> 196 196 </SpaceShip> 197 <?lua 197 <?lua 198 198 end 199 199 ?> … … 325 325 326 326 <?lua 327 for i = 1, 10, 1 327 for i = 1, 10, 1 328 328 do 329 329 ?> … … 340 340 </controller> 341 341 </SpaceShip> 342 <?lua 342 <?lua 343 343 end 344 344 ?> … … 349 349 return table.getn(elements) 350 350 end 351 for i = 1, 100, 1 351 for i = 1, 100, 1 352 352 do 353 353 x = math.random() * 100 + (i) * 100 … … 358 358 ?> 359 359 360 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 360 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 361 361 <attached> 362 362 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" /> 363 363 </attached> 364 364 </MovableEntity> 365 <?lua 366 end 367 ?> 368 369 <?lua 370 for i = 1, 100, 1 365 <?lua 366 end 367 ?> 368 369 <?lua 370 for i = 1, 100, 1 371 371 do 372 372 x = math.random() * 200 + i*200 … … 378 378 <!-- <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" /> 379 379 --> 380 <?lua 380 <?lua 381 381 end 382 382 ?> … … 388 388 return table.getn(elements) 389 389 end 390 for i = 1, 150, 1 390 for i = 1, 150, 1 391 391 do 392 392 x = math.random() * 750 - 4500 … … 396 396 ?> 397 397 398 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 398 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 399 399 <attached> 400 400 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 401 401 </attached> 402 402 </MovableEntity> 403 <?lua 403 <?lua 404 404 end 405 405 ?> 406 406 <!-- 407 407 <Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 408 --> 408 --> 409 409 </Scene> 410 410 </Level> -
code/branches/presentation2/data/levels/presentation_dm.oxw
r6387 r6388 18 18 19 19 <?lua 20 for i = 1, 10, 1 20 for i = 1, 10, 1 21 21 do ?> 22 22 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 23 <?lua 23 <?lua 24 24 end 25 25 ?> … … 35 35 36 36 <?lua 37 for i = 1, 100, 1 37 for i = 1, 100, 1 38 38 do 39 39 j = math.random() 40 40 ?> 41 41 42 <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 42 <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 43 43 <attached> 44 44 <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> … … 48 48 </collisionShapes> 49 49 </MovableEntity> 50 <?lua 50 <?lua 51 51 end 52 52 ?> -
code/branches/presentation2/data/levels/questsystem2.oxw
r6387 r6388 37 37 <QuestDescription title="The super Hint.3" description="Be proud of yourself.3" /> 38 38 </QuestHint> 39 </hints> 39 </hints> 40 40 <subquests> 41 41 <GlobalQuest id="e17f5245-f95b-44a8-b6cf-402274435ed4"> … … 215 215 max = 20 216 216 for i = 1, max, 1 217 do 217 do 218 218 x = math.sin(i/max*6)*40000 219 219 y = math.cos(i/max*6)*40000 … … 221 221 ?> 222 222 <?lua 223 for k = 1, 25, 1 223 for k = 1, 25, 1 224 224 do 225 225 j = math.random() 226 226 ?> 227 227 228 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 228 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 229 229 <attached> 230 230 <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> … … 234 234 </collisionShapes> <?lua end ?> 235 235 </MovableEntity> 236 <?lua 236 <?lua 237 237 end 238 238 ?> -
code/branches/presentation2/data/levels/teambasematchlevel.oxw
r5781 r6388 41 41 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 42 42 <?lua 43 for i = 1, 10, 1 43 for i = 1, 10, 1 44 44 do ?> 45 45 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 46 46 <events><spawn><EventListener event="base 1" /></spawn></events> 47 47 </ParticleSpawner> 48 <?lua 48 <?lua 49 49 end 50 50 ?> … … 78 78 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 79 79 <?lua 80 for i = 1, 10, 1 80 for i = 1, 10, 1 81 81 do ?> 82 82 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 83 83 <events><spawn><EventListener event="base 2" /></spawn></events> 84 84 </ParticleSpawner> 85 <?lua 85 <?lua 86 86 end 87 87 ?> … … 115 115 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 116 116 <?lua 117 for i = 1, 10, 1 117 for i = 1, 10, 1 118 118 do ?> 119 119 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 120 120 <events><spawn><EventListener event="base 3" /></spawn></events> 121 121 </ParticleSpawner> 122 <?lua 122 <?lua 123 123 end 124 124 ?> … … 151 151 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 152 152 <?lua 153 for i = 1, 10, 1 153 for i = 1, 10, 1 154 154 do ?> 155 155 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 156 156 <events><spawn><EventListener event="base 4" /></spawn></events> 157 157 </ParticleSpawner> 158 <?lua 158 <?lua 159 159 end 160 160 ?> … … 188 188 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 189 189 <?lua 190 for i = 1, 10, 1 190 for i = 1, 10, 1 191 191 do ?> 192 192 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 193 193 <events><spawn><EventListener event="base 5" /></spawn></events> 194 194 </ParticleSpawner> 195 <?lua 195 <?lua 196 196 end 197 197 ?> -
code/branches/presentation2/data/levels/test_ghost.oxw
r6387 r6388 24 24 max = 20 25 25 for i = 1, max, 1 26 do 26 do 27 27 x = math.sin(i/max*6)*40000 28 28 y = math.cos(i/max*6)*40000 … … 30 30 ?> 31 31 <?lua 32 for k = 1, 25, 1 32 for k = 1, 25, 1 33 33 do 34 34 j = math.random() 35 35 ?> 36 36 37 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 37 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 38 38 <attached> 39 39 <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> … … 43 43 </collisionShapes> <?lua end ?> 44 44 </MovableEntity> 45 <?lua 45 <?lua 46 46 end 47 47 ?> -
code/branches/presentation2/data/overlays/OrxonoxLoading.overlay
r5781 r6388 11 11 material Orxonox/LoadingScreenSample 12 12 } 13 } 13 } -
code/branches/presentation2/doc/CMakeLists.txt
r2710 r6388 1 # Add a "doc" target with CMake build system. 1 # Add a "doc" target with CMake build system. 2 2 # And configure doxy.config.in to doxy.config 3 3 # -
code/branches/presentation2/doc/api/CMakeLists.txt
r6387 r6388 1 # Add a "doc" target with CMake build system. 1 # Add a "doc" target with CMake build system. 2 2 # And configure doxy.config.in to doxy.config 3 3 # 4 4 # target "doc" allows building the documentation with doxygen/dot on WIN32 and Linux 5 # Creates .chm windows help file if MS HTML help workshop 5 # Creates .chm windows help file if MS HTML help workshop 6 6 # (available from http://msdn.microsoft.com/workshop/author/htmlhelp) 7 7 # is installed with its DLLs in PATH. … … 12 12 # must be in path. 13 13 # 14 # Note about Visual Studio Projects: 14 # Note about Visual Studio Projects: 15 15 # MSVS hast its own path environment which may differ from the shell. 16 16 # See "Menu Tools/Options/Projects/VC++ Directories" in VS 7.1 … … 62 62 IF(WIN32) 63 63 FIND_PACKAGE(HTMLHelp) 64 IF(HTML_HELP_COMPILER) 64 IF(HTML_HELP_COMPILER) 65 65 SET(TMP ${DOXY_OUTPUT_DIR}/html/index.hhp) 66 66 STRING(REGEX REPLACE "/" "\\\\" HHP_FILE ${TMP}) … … 70 70 SET_TARGET_PROPERTIES(doc doc_chm PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD TRUE) 71 71 ENDIF(HTML_HELP_COMPILER) 72 ENDIF (WIN32) 72 ENDIF (WIN32) 73 73 74 74 -
code/branches/presentation2/src/libraries/core/ConfigValueIncludes.h
r6368 r6388 174 174 */ 175 175 #define ModifyConfigValue(varname, modifier, ...) \ 176 ModifyConfigValueGeneric(this, &varname, #varname, modifier, __VA_ARGS__) 176 ModifyConfigValueGeneric(this, &varname, #varname, modifier, __VA_ARGS__) 177 177 178 178 #endif /* _ConfigValueIncludes_H__ */ -
code/branches/presentation2/src/libraries/core/EventIncludes.h
r6387 r6388 82 82 /** 83 83 @brief This macro is needed to fire an event with this name. The event name must previously be declared with @ref CreateEventName. 84 */ 84 */ 85 85 #define FireEventName(classname, name) \ 86 86 eventname##classname##name -
code/branches/presentation2/src/libraries/core/GUIManager.h
r6371 r6388 67 67 ~GUIManager(); 68 68 69 void preUpdate(const Clock& time); 69 void preUpdate(const Clock& time); 70 70 71 71 static void showGUI(const std::string& name, bool hidePrevious=false, bool showCursor=true); -
code/branches/presentation2/src/libraries/core/MemoryArchive.cc
r5940 r6388 64 64 } 65 65 66 void MemoryArchive::findFiles(const String& pattern, bool bRecursive, 66 void MemoryArchive::findFiles(const String& pattern, bool bRecursive, 67 67 bool bDirs, StringVector* simpleList, FileInfoList* detailList) 68 68 { … … 118 118 } 119 119 120 FileInfoListPtr MemoryArchive::findFileInfo(const String& pattern, 120 FileInfoListPtr MemoryArchive::findFileInfo(const String& pattern, 121 121 bool recursive, bool dirs) 122 122 { -
code/branches/presentation2/src/libraries/core/MemoryArchive.h
r5781 r6388 79 79 80 80 private: 81 void findFiles(const Ogre::String& pattern, bool bRecursive, 81 void findFiles(const Ogre::String& pattern, bool bRecursive, 82 82 bool bDirs, Ogre::StringVector* simpleList, Ogre::FileInfoList* detailList); 83 83 -
code/branches/presentation2/src/libraries/core/Resource.h
r6203 r6388 73 73 must provide a fully qualified name to this method. 74 74 @param groupName 75 The name of the resource group; this determines which 76 locations are searched. 75 The name of the resource group; this determines which 76 locations are searched. 77 77 @param searchGroupsIfNotFound 78 If true, if the resource is not found in 78 If true, if the resource is not found in 79 79 the group specified, other groups will be searched. 80 80 @return … … 96 96 @brief 97 97 Open all resources matching a given pattern (which can contain 98 the character '*' as a wildcard), and return a collection of 98 the character '*' as a wildcard), and return a collection of 99 99 DataStream objects on them. 100 100 @param pattern … … 112 112 113 113 /** 114 Find out if the named file exists in a group. 114 Find out if the named file exists in a group. 115 115 @param filename 116 116 Fully qualified name of the file to test for -
code/branches/presentation2/src/libraries/core/input/InputCommands.h
r5781 r6388 71 71 @brief 72 72 Executes a simple command with no additional paramters. 73 @return 73 @return 74 74 True if command execution was successful, false otherwise. 75 75 */ -
code/branches/presentation2/src/libraries/core/input/InputManager.cc
r6183 r6388 508 508 if (mouseStates.empty()) 509 509 requestedMode = MouseMode::Nonexclusive; 510 else 510 else 511 511 requestedMode = mouseStates.front()->getMouseMode(); 512 512 if (requestedMode != MouseMode::Dontcare && mouseMode_ != requestedMode) … … 554 554 } 555 555 556 //! Gets called by WindowEventListener upon focus change --> clear buffers 556 //! Gets called by WindowEventListener upon focus change --> clear buffers 557 557 void InputManager::windowFocusChanged() 558 558 { -
code/branches/presentation2/src/libraries/core/input/JoyStickQuantityListener.h
r5781 r6388 29 29 /** 30 30 @file 31 @brief 31 @brief 32 32 */ 33 33 -
code/branches/presentation2/src/libraries/core/input/KeyBinder.cc
r6387 r6388 285 285 286 286 void KeyBinder::addButtonToCommand(std::string command, Button* button) 287 { 287 { 288 288 std::ostringstream stream; 289 289 stream << button->groupName_ << "." << button->name_; -
code/branches/presentation2/src/libraries/network/ClientConnection.cc
r6387 r6388 148 148 149 149 uint32_t ClientConnection::getRTT() 150 { 150 { 151 151 assert(server_); 152 152 return server_->roundTripTime; -
code/branches/presentation2/src/libraries/network/ClientConnectionListener.cc
r6387 r6388 36 36 { 37 37 ClientConnectionListener::ClientConnectionListener() 38 { 39 RegisterRootObject(ClientConnectionListener); 38 { 39 RegisterRootObject(ClientConnectionListener); 40 40 } 41 41 -
code/branches/presentation2/src/libraries/network/FunctionCallManager.cc
r6387 r6388 37 37 38 38 void FunctionCallManager::addCallStatic(uint32_t functionID, uint32_t clientID) 39 { 40 if(clientMap_.find(clientID)==clientMap_.end()) 39 { 40 if(clientMap_.find(clientID)==clientMap_.end()) 41 41 { 42 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 43 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 44 } 42 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 43 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 44 } 45 45 FunctionCallManager::clientMap_[clientID]->addCallStatic(functionID); 46 46 } 47 47 void FunctionCallManager::addCallStatic(uint32_t functionID, uint32_t clientID, const MultiType& mt1) 48 { 49 if(clientMap_.find(clientID)==clientMap_.end()) 48 { 49 if(clientMap_.find(clientID)==clientMap_.end()) 50 50 { 51 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 52 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 53 } 51 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 52 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 53 } 54 54 FunctionCallManager:: clientMap_[clientID]->addCallStatic(functionID, &mt1); 55 55 } 56 56 void FunctionCallManager::addCallStatic(uint32_t functionID, uint32_t clientID, const MultiType& mt1, const MultiType& mt2) 57 { 58 if(clientMap_.find(clientID)==clientMap_.end()) 57 { 58 if(clientMap_.find(clientID)==clientMap_.end()) 59 59 { 60 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 61 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 62 } 60 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 61 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 62 } 63 63 FunctionCallManager:: clientMap_[clientID]->addCallStatic(functionID, &mt1, &mt2); 64 64 } 65 65 void FunctionCallManager::addCallStatic(uint32_t functionID, uint32_t clientID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 66 { 67 if(clientMap_.find(clientID)==clientMap_.end()) 66 { 67 if(clientMap_.find(clientID)==clientMap_.end()) 68 68 { 69 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 70 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 71 } 69 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 70 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 71 } 72 72 FunctionCallManager:: clientMap_[clientID]->addCallStatic(functionID, &mt1, &mt2, &mt3); 73 73 } 74 74 void FunctionCallManager::addCallStatic(uint32_t functionID, uint32_t clientID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 75 { 76 if(clientMap_.find(clientID)==clientMap_.end()) 75 { 76 if(clientMap_.find(clientID)==clientMap_.end()) 77 77 { 78 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 79 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 80 } 78 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 79 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 80 } 81 81 FunctionCallManager:: clientMap_[clientID]->addCallStatic(functionID, &mt1, &mt2, &mt3, &mt4); 82 82 } 83 83 void FunctionCallManager::addCallStatic(uint32_t functionID, uint32_t clientID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 84 { 85 if(clientMap_.find(clientID)==clientMap_.end()) 84 { 85 if(clientMap_.find(clientID)==clientMap_.end()) 86 86 { 87 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 88 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 89 } 87 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 88 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 89 } 90 90 FunctionCallManager:: clientMap_[clientID]->addCallStatic(functionID, &mt1, &mt2, &mt3, &mt4, &mt5); 91 91 } … … 95 95 96 96 void FunctionCallManager::addCallMember(uint32_t functionID, uint32_t objectID, uint32_t clientID) 97 { 98 if(clientMap_.find(clientID)==clientMap_.end()) 97 { 98 if(clientMap_.find(clientID)==clientMap_.end()) 99 99 { 100 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 101 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 102 } 100 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 101 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 102 } 103 103 FunctionCallManager::clientMap_[clientID]->addCallMember(functionID, objectID); 104 104 } 105 105 void FunctionCallManager::addCallMember(uint32_t functionID, uint32_t objectID, uint32_t clientID, const MultiType& mt1) 106 { 107 if(clientMap_.find(clientID)==clientMap_.end()) 106 { 107 if(clientMap_.find(clientID)==clientMap_.end()) 108 108 { 109 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 110 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 111 } 109 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 110 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 111 } 112 112 FunctionCallManager::clientMap_[clientID]->addCallMember(functionID, objectID, &mt1); 113 113 } 114 114 void FunctionCallManager::addCallMember(uint32_t functionID, uint32_t objectID, uint32_t clientID, const MultiType& mt1, const MultiType& mt2) 115 { 116 if(clientMap_.find(clientID)==clientMap_.end()) 115 { 116 if(clientMap_.find(clientID)==clientMap_.end()) 117 117 { 118 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 119 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 120 } 118 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 119 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 120 } 121 121 FunctionCallManager::clientMap_[clientID]->addCallMember(functionID, objectID, &mt1, &mt2); 122 122 } 123 123 void FunctionCallManager::addCallMember(uint32_t functionID, uint32_t objectID, uint32_t clientID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 124 { 125 if(clientMap_.find(clientID)==clientMap_.end()) 124 { 125 if(clientMap_.find(clientID)==clientMap_.end()) 126 126 { 127 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 128 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 129 } 127 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 128 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 129 } 130 130 FunctionCallManager::clientMap_[clientID]->addCallMember(functionID, objectID, &mt1, &mt2, &mt3); 131 131 } 132 132 void FunctionCallManager::addCallMember(uint32_t functionID, uint32_t objectID, uint32_t clientID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 133 { 134 if(clientMap_.find(clientID)==clientMap_.end()) 133 { 134 if(clientMap_.find(clientID)==clientMap_.end()) 135 135 { 136 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 137 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 138 } 136 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 137 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 138 } 139 139 FunctionCallManager::clientMap_[clientID]->addCallMember(functionID, objectID, &mt1, &mt2, &mt3, &mt4); 140 140 } 141 141 void FunctionCallManager::addCallMember(uint32_t functionID, uint32_t objectID, uint32_t clientID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 142 { 143 if(clientMap_.find(clientID)==clientMap_.end()) 142 { 143 if(clientMap_.find(clientID)==clientMap_.end()) 144 144 { 145 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 146 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 147 } 145 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 146 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 147 } 148 148 FunctionCallManager::clientMap_[clientID]->addCallMember(functionID, objectID, &mt1, &mt2, &mt3, &mt4, &mt5); 149 149 } -
code/branches/presentation2/src/libraries/network/GamestateManager.cc
r6387 r6388 159 159 clientGamestates.push(0); 160 160 finishGamestate( cid, &clientGamestates.back(), client, reference ); 161 //FunctorMember<GamestateManager>* functor = 161 //FunctorMember<GamestateManager>* functor = 162 162 // ExecutorMember<GamestateManager>* executor = createExecutor( createFunctor(&GamestateManager::finishGamestate, this) ); 163 163 // executor->setDefaultValues( cid, &clientGamestates.back(), client, reference ); -
code/branches/presentation2/src/libraries/network/NetworkFunction.h
r6387 r6388 83 83 { 84 84 std::map<std::string, NetworkFunctionBase*>& map = NetworkFunctionBase::getNameMap(); 85 assert( map.find(name)!=map.end() ); 85 assert( map.find(name)!=map.end() ); 86 86 map[name]->setNetworkID(id); 87 87 } … … 139 139 static NetworkMemberFunctionBase* getFunction( const NetworkFunctionPointer& p ){ assert( functorMap_.find(p) != functorMap_.end() ); return functorMap_[p]; } 140 140 141 // 141 // 142 142 virtual void call(uint32_t objectID)=0; 143 143 virtual void call(uint32_t objectID, const MultiType& mt1)=0; … … 159 159 160 160 inline void call(uint32_t objectID) 161 { 161 { 162 162 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 163 163 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID))); 164 164 } 165 165 inline void call(uint32_t objectID, const MultiType& mt1) 166 { 166 { 167 167 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 168 168 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1); 169 169 } 170 170 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) 171 { 171 { 172 172 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 173 173 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2); 174 174 } 175 175 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 176 { 176 { 177 177 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 178 178 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3); 179 179 } 180 180 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 181 { 181 { 182 182 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 183 183 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4); 184 184 } 185 185 inline void call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 186 { 186 { 187 187 if ( Synchronisable::getSynchronisable(objectID)!=0 ) 188 188 (*this->functor_)(orxonox_cast<T*>(Synchronisable::getSynchronisable(objectID)), mt1, mt2, mt3, mt4, mt5); -
code/branches/presentation2/src/libraries/network/Server.cc
r6387 r6388 162 162 163 163 /** 164 * @brief: returns ping time to client in milliseconds 164 * @brief: returns ping time to client in milliseconds 165 165 */ 166 166 unsigned int Server::getRTT(unsigned int clientID){ -
code/branches/presentation2/src/libraries/network/TrafficControl.h
r6387 r6388 105 105 *evaluates Data given (list) and produces result(->Data to be updated) 106 106 */ 107 void evaluateList(unsigned int clientID, std::list<obj>& list);//done 107 void evaluateList(unsigned int clientID, std::list<obj>& list);//done 108 108 void ack(unsigned int clientID, unsigned int gamestateID); // this function gets called when the server receives an ack from the client 109 109 … … 121 121 /** 122 122 *is being used by GSManager from Server: 123 *list contains: ObjIds, CreatorIds, Size (in this order) from Client XY 123 *list contains: ObjIds, CreatorIds, Size (in this order) from Client XY 124 124 *Elements of list are accessed by *list[i] 125 125 *Elements of struct i are therefore: *list[i].objID -
code/branches/presentation2/src/libraries/network/packet/FunctionIDs.cc
r6387 r6388 48 48 FunctionIDs::FunctionIDs( ) : Packet(){ 49 49 std::string functionname; 50 unsigned int nrOfFunctions=0; 50 unsigned int nrOfFunctions=0; 51 51 unsigned int packetSize=2*sizeof(uint32_t); //space for the packetID and for the nroffunctions 52 52 uint32_t networkID; -
code/branches/presentation2/src/libraries/network/packet/Gamestate.cc
r6387 r6388 437 437 // uint8_t *ndata = new uint8_t[dest_length*sizeof(uint8_t)+GamestateHeader::getSize()]; 438 438 // uint8_t *dest = ndata + GamestateHeader::getSize(); 439 // 440 // 439 // 440 // 441 441 // // LOOP-UNROLLED DIFFING 442 442 // uint32_t *dest32 = (uint32_t*)dest, *base32 = (uint32_t*)basep, *gs32 = (uint32_t*)gs; … … 465 465 // } 466 466 // } 467 // 467 // 468 468 // Gamestate *g = new Gamestate(ndata, getClientID()); 469 469 // *(g->header_) = *header_; -
code/branches/presentation2/src/libraries/network/packet/Packet.cc
r6387 r6388 102 102 Destroys a packet completely. 103 103 104 That also means destroying the ENetPacket if one exists. There 104 That also means destroying the ENetPacket if one exists. There 105 105 */ 106 106 Packet::~Packet(){ -
code/branches/presentation2/src/libraries/network/synchronisable/NetworkCallbackManager.cc
r6387 r6388 36 36 37 37 void NetworkCallbackManager::registerCallback(NetworkCallbackBase *cb) 38 { 39 callbackSet_.insert(cb); 38 { 39 callbackSet_.insert(cb); 40 40 } 41 41 void NetworkCallbackManager::deleteCallback(NetworkCallbackBase *cb) -
code/branches/presentation2/src/libraries/network/synchronisable/Synchronisable.h
r6387 r6388 66 66 67 67 /** 68 * @brief: stores information about a Synchronisable 69 * 68 * @brief: stores information about a Synchronisable 69 * 70 70 * This class stores the information about a Synchronisable (objectID_, classID_, creatorID_, dataSize) 71 71 * in an emulated bitset. -
code/branches/presentation2/src/libraries/util/Serialise.h
r6387 r6388 616 616 template <> inline uint32_t returnSize( const mbool& variable ) 617 617 { 618 return returnSize( (unsigned char&)((mbool&)variable).getMemory() ); 618 return returnSize( (unsigned char&)((mbool&)variable).getMemory() ); 619 619 } 620 620 -
code/branches/presentation2/src/modules/objects/collisionshapes/BoxCollisionShape.cc
r5781 r6388 66 66 XMLPortParam(BoxCollisionShape, "halfExtents", setHalfExtents, getHalfExtents, xmlelement, mode); 67 67 XMLPortParamLoadOnly(BoxCollisionShape, "width", setWidth, xmlelement, mode); 68 XMLPortParamLoadOnly(BoxCollisionShape, "height", setHeight, xmlelement, mode); 69 XMLPortParamLoadOnly(BoxCollisionShape, "length", setLength, xmlelement, mode); 68 XMLPortParamLoadOnly(BoxCollisionShape, "height", setHeight, xmlelement, mode); 69 XMLPortParamLoadOnly(BoxCollisionShape, "length", setLength, xmlelement, mode); 70 70 } 71 71 -
code/branches/presentation2/src/modules/objects/collisionshapes/ConeCollisionShape.cc
r5781 r6388 66 66 67 67 XMLPortParam(ConeCollisionShape, "radius", setRadius, getRadius, xmlelement, mode); 68 XMLPortParam(ConeCollisionShape, "height", setHeight, getHeight, xmlelement, mode); 68 XMLPortParam(ConeCollisionShape, "height", setHeight, getHeight, xmlelement, mode); 69 69 } 70 70 -
code/branches/presentation2/src/modules/objects/collisionshapes/PlaneCollisionShape.cc
r5781 r6388 67 67 68 68 XMLPortParam(PlaneCollisionShape, "normal", setNormal, getNormal, xmlelement, mode); 69 XMLPortParam(PlaneCollisionShape, "offset", setOffset, getOffset, xmlelement, mode); 69 XMLPortParam(PlaneCollisionShape, "offset", setOffset, getOffset, xmlelement, mode); 70 70 } 71 71 -
code/branches/presentation2/src/modules/questsystem/QuestGUI.cc
r6387 r6388 268 268 index = tempIndex; //!< Reset the index to the original level. 269 269 270 return index; 270 return index; 271 271 } 272 272 -
code/branches/presentation2/src/modules/questsystem/QuestGUINode.cc
r6387 r6388 71 71 QuestGUINode::QuestGUINode(QuestGUI* gui, QuestGUINode* parent, QuestItem* item, int depth, int index) 72 72 { 73 this->initialize(); 73 this->initialize(); 74 74 75 75 this->gui_ = gui; … … 154 154 155 155 if(this->details_ == NULL) //!< If the details window was not already created. 156 { 156 { 157 157 std::ostringstream stream; 158 158 … … 297 297 */ 298 298 bool QuestGUINode::closeDetails(const CEGUI::EventArgs& e) 299 { 299 { 300 300 //CEGUI::Window* window = this->gui_->getRootWindow(); 301 301 CEGUI::Window* window = this->gui_->getWindowManager()->getWindow("orxonox/QuestGUI/Background"); -
code/branches/presentation2/src/modules/questsystem/QuestGUINode.h
r6387 r6388 54 54 /** 55 55 @brief Retreive the window of this node. 56 @return The CEGUI Window of this node. 56 @return The CEGUI Window of this node. 57 57 */ 58 58 inline CEGUI::Window* getWindow(void) -
code/branches/presentation2/src/modules/questsystem/QuestListener.cc
r6387 r6388 193 193 Returns the questId of the Quest the QuestListener reacts to. 194 194 */ 195 const std::string & QuestListener::getQuestId(void) 195 const std::string & QuestListener::getQuestId(void) 196 196 { 197 197 return this->quest_->getId(); -
code/branches/presentation2/src/modules/questsystem/QuestManager.h
r5929 r6388 72 72 static QuestManager& getInstance() { return Singleton<QuestManager>::getInstance(); } // tolua_export 73 73 74 //! Retreive the main window for the GUI. 74 //! Retreive the main window for the GUI. 75 75 CEGUI::Window* getQuestGUI(const std::string & guiName); // tolua_export 76 76 -
code/branches/presentation2/src/modules/weapons/projectiles/LightningGunProjectile.cc
r6387 r6388 54 54 void LightningGunProjectile::setMaterial(const std::string& material) 55 55 { 56 this->materialBase_ = material; 56 this->materialBase_ = material; 57 57 58 58 BillboardProjectile::setMaterial(material + multi_cast<std::string>(this->textureIndex_)); -
code/branches/presentation2/src/modules/weapons/weaponmodes/LightningGun.cc
r6307 r6388 57 57 58 58 void LightningGun::fire() 59 { 59 { 60 60 LightningGunProjectile* projectile = new LightningGunProjectile(this); 61 61 projectile->setMaterial("Flares/LightningBall_"); -
code/branches/presentation2/src/orxonox/controllers/HumanController.h
r6356 r6388 38 38 namespace orxonox 39 39 { 40 class _OrxonoxExport HumanController 40 class _OrxonoxExport HumanController 41 41 // tolua_end 42 42 : public Controller, public Tickable -
code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
r6387 r6388 248 248 HumanController::moveFrontBack(Vector2(1, 0)); 249 249 else 250 HumanController::moveFrontBack(Vector2(this->acceleration_, 0)); 250 HumanController::moveFrontBack(Vector2(this->acceleration_, 0)); 251 251 this->accelerating_ = false; 252 252 //HumanController::moveFrontBack(Vector2(clamp(this->acceleration_ + this->currentAcceleration_, 0.0f, 1.0f), 0)); -
code/branches/presentation2/src/orxonox/overlays/OrxonoxOverlay.h
r6310 r6388 177 177 inline OverlayGroup* getOverlayGroup() const 178 178 { return this->group_; } 179 virtual void changedOverlayGroup() 179 virtual void changedOverlayGroup() 180 180 { this->changedVisibility(); } 181 181 -
code/branches/presentation2/src/orxonox/pickup/UsableItem.cc
r6387 r6388 41 41 @param creator Pointer to the object which created this item. 42 42 */ 43 UsableItem::UsableItem(BaseObject* creator) : BaseItem(creator) 43 UsableItem::UsableItem(BaseObject* creator) : BaseItem(creator) 44 44 { 45 45 RegisterObject(UsableItem); -
code/branches/presentation2/src/orxonox/sound/AmbientSound.cc
r6387 r6388 118 118 this->setSource(path); 119 119 else 120 COUT(3) << "Sound: " << source << ": Not a valid name! Ambient sound will not change." << std::endl; 120 COUT(3) << "Sound: " << source << ": Not a valid name! Ambient sound will not change." << std::endl; 121 121 } 122 122 } … … 134 134 if (this->isActive()) 135 135 this->play(); 136 else 136 else 137 137 this->stop(); 138 138 } -
code/branches/presentation2/src/orxonox/sound/BaseSound.cc
r6387 r6388 177 177 pitch = pitch > 2 ? 2 : pitch; 178 178 pitch = pitch < 0.5 ? 0.5 : pitch; 179 } 179 } 180 180 this->pitch_ = pitch; 181 181 if (alIsSource(this->audioSource_)) … … 224 224 if (alIsSource(this->audioSource_)) // already playing or paused 225 225 { 226 // Set new buffer 226 // Set new buffer 227 227 alSourcei(this->audioSource_, AL_BUFFER, this->soundBuffer_->getBuffer()); 228 228 if (ALuint error = alGetError()) -
code/branches/presentation2/src/orxonox/sound/SoundManager.cc
r6387 r6388 254 254 } 255 255 256 float SoundManager::getVolume(SoundType::Value type) 256 float SoundManager::getVolume(SoundType::Value type) 257 257 { 258 258 if (type < 0 || type > SoundType::Effects) … … 261 261 } 262 262 263 float SoundManager::getRealVolume(SoundType::Value type) 263 float SoundManager::getRealVolume(SoundType::Value type) 264 264 { 265 265 if (type != SoundType::Music && type != SoundType::Effects) … … 339 339 } 340 340 341 if (!this->ambientSounds_.empty()) 341 if (!this->ambientSounds_.empty()) 342 342 { 343 343 this->fadeOut(ambientSounds_.front().first); … … 354 354 return; 355 355 356 if (this->ambientSounds_.front().first == oldAmbient) 356 if (this->ambientSounds_.front().first == oldAmbient) 357 357 { 358 358 this->fadeOut(oldAmbient); -
code/branches/presentation2/src/orxonox/sound/WorldSound.cc
r6387 r6388 110 110 } 111 111 112 void WorldSound::changedActivity() 112 void WorldSound::changedActivity() 113 113 { 114 114 SUPER(WorldSound, changedActivity); 115 115 if (this->isActive()) 116 116 this->play(); 117 else 117 else 118 118 this->stop(); 119 119 } -
code/branches/presentation2/src/orxonox/worldentities/MovableEntity.h
r5929 r6388 70 70 71 71 inline void setEnableCollisionDamage(bool c) 72 { 73 this->enableCollisionDamage_ = c; 72 { 73 this->enableCollisionDamage_ = c; 74 74 this->enableCollisionCallback(); 75 } 75 } 76 76 77 77 inline bool getEnableCollisionDamage()
Note: See TracChangeset
for help on using the changeset viewer.