Changeset 7319 for code/branches
- Timestamp:
- Sep 1, 2010, 7:36:26 PM (14 years ago)
- Location:
- code/branches/notifications
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/data/levels/tutorial.oxw
r7210 r7319 31 31 <events> 32 32 <trigger> 33 <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn"> 34 <attached> 35 <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" /> 36 </attached> 37 </DistanceTrigger> 33 <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn" /> 38 34 </trigger> 39 35 </events> 40 36 </CommandNotification> 37 <Billboard position="0,0,-100" colour="1.0,1.0,0" material="Examples/Flare" /> 41 38 42 39 <SimpleNotification message="Awesome!!!"> 43 40 <events> 44 41 <trigger> 45 <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn"> 46 <attached> 47 <Billboard position="0,0,0" colour="1.0,0,1.0" material="Examples/Flare" /> 48 </attached> 49 </DistanceTrigger> 42 <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn" /> 50 43 </trigger> 51 44 </events> 52 45 </SimpleNotification> 46 <Billboard position="0,0,100" colour="1.0,0,1.0" material="Examples/Flare" /> 53 47 54 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">55 <attached>56 <Model scale="1" mesh="drone.mesh"/>57 </attached>58 <collisionShapes>59 <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />60 </collisionShapes>61 </Drone>62 48 63 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">64 <attached>65 <Model scale="1" mesh="rocket.mesh"/>66 </attached>67 <collisionShapes>68 <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />69 </collisionShapes>70 </Drone>71 49 72 50 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> 73 51 74 <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />75 <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />76 52 77 53 <?lua … … 81 57 <?lua end ?> 82 58 83 <GlobalShader compositor="Bloom" visible=false>84 <events>85 <visibility>86 <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />87 </visibility>88 </events>89 </GlobalShader>90 <Model position="0,0,0" scale=8 mesh="ast1.mesh" />91 <StaticEntity position="0,0,0" collisionType=static>92 <collisionShapes>93 <SphereCollisionShape radius="20" />94 </collisionShapes>95 </StaticEntity>96 97 <!--98 <?lua99 for i = 1, 70, 1 do100 ?>101 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">102 <attached>103 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />104 </attached>105 </MovableEntity>106 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">107 <attached>108 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />109 </attached>110 </MovableEntity>111 112 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">113 <attached>114 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />115 </attached>116 </MovableEntity>117 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">118 <attached>119 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />120 </attached>121 </MovableEntity>122 123 <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">124 <attached>125 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />126 </attached>127 </MovableEntity>128 <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">129 <attached>130 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />131 </attached>132 </MovableEntity>133 <?lua end ?>134 -->135 59 136 60 </Scene> -
code/branches/notifications/src/modules/objects/triggers/Trigger.cc
r7284 r7319 160 160 void Trigger::triggered(bool bIsTriggered) 161 161 { 162 COUT(1) << "Trigger triggered." << std::endl; //TODO: Remove debug. 162 163 this->fireEvent(bIsTriggered); 163 164 }
Note: See TracChangeset
for help on using the changeset viewer.