Changeset 8461 for code/trunk
- Timestamp:
- May 12, 2011, 2:38:49 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/levels/presentationFS11.oxw
r8458 r8461 1 1 <LevelInfo 2 name = " MyTestLevel"3 description = " A level to test the Class SpaceBoundaries."2 name = "Presentation FS11" 3 description = "Presentation level spring semester '11" 4 4 tags = "test" 5 5 /> … … 29 29 > 30 30 31 31 32 <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"/> 32 33 <SpawnPoint team=0 position="0,0,0" lookat="2,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 33 34 34 35 <SpaceBoundaries warnDistance="1" maxDistance="200" showDistance="100" healthDecrease="0.1" position="0,0,0"/> 36 37 <Template name=PortalDefault> 38 <PortalEndPoint> 39 <attached> 40 <Billboard material="Portals/Default" /> 41 </attached> 42 </PortalEndPoint> 43 </Template> 44 45 <PortalEndPoint position="0,0,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/> 46 <PortalEndPoint position="-1000,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/> 47 <PortalLink fromID="1" toID="2" /> 48 <PortalLink fromID="2" toID="1" /> 35 49 36 50 </Scene> -
code/trunk/src/orxonox/worldentities/SpaceBoundaries.cc
r8458 r8461 191 191 this->checkWhoIsIn(); 192 192 this->removeAllBillboards(); 193 COUT(0) << "Groesse der Liste: " << (int) pawnsIn_.size() << std::endl;193 //COUT(0) << "Groesse der Liste: " << (int) pawnsIn_.size() << std::endl; 194 194 195 195 float distance; … … 202 202 distance = this->computeDistance(currentPawn); 203 203 humanItem = this->isHumanPlayer(currentPawn); 204 COUT(0) << "Distanz:" << distance << std::endl; // message for debugging204 //COUT(0) << "Distanz:" << distance << std::endl; // message for debugging 205 205 if(distance > this->warnDistance_ && distance < this->maxDistance_) // Zeige Warnung an! 206 206 { 207 COUT(0) << "You are near by the boundaries!" << std::endl; // message for debugging207 //COUT(0) << "You are near by the boundaries!" << std::endl; // message for debugging 208 208 if(humanItem) 209 209 { 210 COUT(0) << "humanItem ist true" << std::endl;210 //COUT(0) << "humanItem ist true" << std::endl; 211 211 this->displayWarning("Attention! You are near by the boundaries!"); 212 212 } … … 220 220 if( humanItem ) 221 221 { 222 COUT(0) << "Health should be decreasing!" << std::endl;222 //COUT(0) << "Health should be decreasing!" << std::endl; 223 223 this->displayWarning("You are out of the area now!"); 224 224 }
Note: See TracChangeset
for help on using the changeset viewer.