Changeset 8809 for code/branches/output/src/orxonox/worldentities
- Timestamp:
- Aug 1, 2011, 4:37:38 PM (13 years ago)
- Location:
- code/branches/output/src/orxonox/worldentities
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/worldentities/BigExplosion.cc
r7284 r8809 61 61 catch (const std::exception& ex) 62 62 { 63 COUT(1) << "Error: Couln't load particle effect in BigExplosion: " << ex.what() << std::endl;63 orxout(internal_error) << "Couldn't load particle effect in BigExplosion: " << ex.what() << endl; 64 64 this->initZero(); 65 65 } -
code/branches/output/src/orxonox/worldentities/ControllableEntity.cc
r8706 r8809 457 457 } 458 458 else 459 COUT(2) << "Warning: ControllableEntity \"" << this->getName() << "\" already has a Controller." << std::endl;459 orxout(internal_warning) << "ControllableEntity \"" << this->getName() << "\" already has a Controller." << endl; 460 460 } 461 461 -
code/branches/output/src/orxonox/worldentities/ExplosionChunk.cc
r7284 r8809 61 61 catch (const std::exception& ex) 62 62 { 63 COUT(1) << "Error: Couln't load particle effect in ExplosionChunk: " << ex.what() << std::endl;63 orxout(internal_error) << "Couldn't load particle effect in ExplosionChunk: " << ex.what() << endl; 64 64 this->fire_ = 0; 65 65 this->smoke_ = 0; -
code/branches/output/src/orxonox/worldentities/MobileEntity.cc
r8727 r8809 189 189 if (type == WorldEntity::Static) 190 190 { 191 CCOUT(1) << "Error: Cannot tell a MobileEntity to have static collision type! Ignoring." << std::endl;191 orxout(internal_warning) << "Cannot tell a MobileEntity to have static collision type! Ignoring." << endl; 192 192 assert(false); // Only in debug mode 193 193 return false; -
code/branches/output/src/orxonox/worldentities/SpawnPoint.cc
r8706 r8809 48 48 this->getGametype()->registerSpawnPoint(this); 49 49 else 50 COUT(1) << "Error: SpawnPoint has no Gametype" << std::endl;50 orxout(internal_error) << "SpawnPoint has no Gametype" << endl; 51 51 52 52 this->setSyncMode(ObjectDirection::None); -
code/branches/output/src/orxonox/worldentities/StaticEntity.cc
r6417 r8809 63 63 if (this->addedToPhysicalWorld()) 64 64 { 65 CCOUT(2) << "Warning: Attempting to change the position of a StaticEntity at physics run time. Ignoring change." << std::endl;65 orxout(internal_warning) << "Attempting to change the position of a StaticEntity at physics run time. Ignoring change." << endl; 66 66 return; 67 67 } … … 80 80 if (this->addedToPhysicalWorld()) 81 81 { 82 CCOUT(2) << "Warning: Attempting to change the orientation of a StaticEntity at physics run time. Ignoring change." << std::endl;82 orxout(internal_warning) << "Attempting to change the orientation of a StaticEntity at physics run time. Ignoring change." << endl; 83 83 return; 84 84 } … … 97 97 if (type == WorldEntity::Kinematic || type == WorldEntity::Dynamic) 98 98 { 99 CCOUT(1) << "Error: Cannot tell a StaticEntity to have kinematic or dynamic collision type! Ignoring." << std::endl;99 orxout(internal_warning) << "Cannot tell a StaticEntity to have kinematic or dynamic collision type! Ignoring." << endl; 100 100 assert(false); // Only in debug mode 101 101 return false; -
code/branches/output/src/orxonox/worldentities/WorldEntity.cc
r8706 r8809 311 311 this->collisionTypeSynchronised_ != None) 312 312 { 313 CCOUT(1) << "Error when collsion Type was received over network. Unknown enum value:" << this->collisionTypeSynchronised_ << std::endl;313 orxout(internal_error) << "Error when collsion Type was received over network. Unknown enum value:" << this->collisionTypeSynchronised_ << endl; 314 314 } 315 315 else if (this->collisionTypeSynchronised_ != collisionType_) 316 316 { 317 317 if (this->parent_) 318 CCOUT(2) << "Warning: Network connection tried to set the collision type of an attached WE. Ignoring." << std::endl;318 orxout(internal_warning) << "Network connection tried to set the collision type of an attached WE. Ignoring." << endl; 319 319 else 320 320 this->setCollisionType(this->collisionTypeSynchronised_); … … 373 373 if (object == this) 374 374 { 375 COUT(2) << "Warning: Can't attach a WorldEntity to itself." << std::endl;375 orxout(internal_warning) << "Can't attach a WorldEntity to itself." << endl; 376 376 return; 377 377 } … … 406 406 if (!newParent->hasPhysics()) 407 407 { 408 COUT(2) << "Warning: Cannot attach a physical object to a non physical one." << std::endl;408 orxout(internal_warning) << " Cannot attach a physical object to a non physical one." << endl; 409 409 return false; 410 410 } 411 411 else if (this->isDynamic()) 412 412 { 413 COUT(2) << "Warning: Cannot attach a dynamic object to a WorldEntity." << std::endl;413 orxout(internal_warning) << "Cannot attach a dynamic object to a WorldEntity." << endl; 414 414 return false; 415 415 } 416 416 else if (this->isKinematic() && newParent->isDynamic()) 417 417 { 418 COUT(2) << "Warning: Cannot attach a kinematic object to a dynamic one." << std::endl;418 orxout(internal_warning) << "Cannot attach a kinematic object to a dynamic one." << endl; 419 419 return false; 420 420 } 421 421 else if (this->isKinematic()) 422 422 { 423 COUT(2) << "Warning: Cannot attach a kinematic object to a static or kinematic one: Not yet implemented." << std::endl;423 orxout(internal_warning) << "Cannot attach a kinematic object to a static or kinematic one: Not yet implemented." << endl; 424 424 return false; 425 425 } … … 455 455 if (it == this->children_.end()) 456 456 { 457 CCOUT(2) << "Warning: Cannot detach an object that is not a child." << std::endl;457 orxout(internal_warning) << "Cannot detach an object that is not a child." << endl; 458 458 return; 459 459 } … … 799 799 if (this->parent_) 800 800 { 801 CCOUT(2) << "Warning: Cannot set the collision type of a WorldEntity with a parent." << std::endl;801 orxout(internal_warning) << "Cannot set the collision type of a WorldEntity with a parent." << endl; 802 802 return; 803 803 } … … 822 822 if (!this->node_->getScale().positionEquals(Vector3(1, 1, 1), 0.001)) 823 823 { 824 CCOUT(2) << "Warning: Cannot create a physical body if there is scaling applied to the node: Not yet implemented." << std::endl;824 orxout(internal_warning) << "Cannot create a physical body if there is scaling applied to the node: Not yet implemented." << endl; 825 825 return; 826 826 } … … 971 971 { 972 972 // Use default values to avoid very large or very small values 973 CCOUT(4) << "Warning: Setting the internal physical mass to 1.0 because mass_ is 0.0" << std::endl;973 orxout(internal_warning) << "Setting the internal physical mass to 1.0 because mass_ is 0.0" << endl; 974 974 btVector3 inertia(0, 0, 0); 975 975 this->collisionShape_->calculateLocalInertia(1.0f, inertia); -
code/branches/output/src/orxonox/worldentities/pawns/FpsPlayer.cc
r7184 r8809 132 132 if (type != WorldEntity::Dynamic) 133 133 { 134 CCOUT(1) << "Error: Cannot tell a FpsPlayer not to be dynamic! Ignoring." << std::endl;134 orxout(internal_warning) << "Cannot tell a FpsPlayer not to be dynamic! Ignoring." << endl; 135 135 assert(false); // Only in debug mode 136 136 return false; -
code/branches/output/src/orxonox/worldentities/pawns/SpaceShip.cc
r8727 r8809 145 145 if (type != WorldEntity::Dynamic) 146 146 { 147 CCOUT(1) << "Error: Cannot tell a SpaceShip not to be dynamic! Ignoring." << std::endl;147 orxout(internal_warning) << "Cannot tell a SpaceShip not to be dynamic! Ignoring." << endl; 148 148 assert(false); // Only in debug mode 149 149 return false; … … 507 507 if (camera == 0) 508 508 { 509 COUT(2) << "Failed to reset camera!";509 orxout(internal_warning) << "Failed to reset camera!" << endl; 510 510 return; 511 511 }
Note: See TracChangeset
for help on using the changeset viewer.