Changeset 9377 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 21, 2006, 11:43:38 AM (18 years ago)
- Location:
- branches/proxy/src/lib
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/collision_detection/cd_engine.cc
r9371 r9377 114 114 for(entityIterator = list1.begin(); entityIterator != list1.end(); entityIterator++) 115 115 { 116 // PRINTF(0)("Checking: %s a %s\n", (*entityIterator)->getName(), (*entityIterator)->getClass Name());116 // PRINTF(0)("Checking: %s a %s\n", (*entityIterator)->getName(), (*entityIterator)->getClassCName()); 117 117 (dynamic_cast<BspEntity*>(*bspIterator)->getBspManager())->checkCollision(*entityIterator); 118 118 } -
branches/proxy/src/lib/collision_detection/obb_tree_node.cc
r9371 r9377 482 482 483 483 // if( distance < distanceMax) 484 // PRINTF(0)(" %s (%s: group %i) vs %s (%s: group %i): distanceMax: %f, distance: %f\n", nodeA->getClass Name(), nodeA->getName(), nodeA->getOMListNumber(), nodeB->getClassName(), nodeB->getName(), nodeB->getOMListNumber(), distanceMax, distance);484 // PRINTF(0)(" %s (%s: group %i) vs %s (%s: group %i): distanceMax: %f, distance: %f\n", nodeA->getClassCName(), nodeA->getName(), nodeA->getOMListNumber(), nodeB->getClassCName(), nodeB->getName(), nodeB->getOMListNumber(), distanceMax, distance); 485 485 486 486 -
branches/proxy/src/lib/collision_reaction/collision_handle.cc
r9371 r9377 232 232 // if(collisionEvent->getEntityB()->isA(CL_AIMING_SYSTEM) || collisionEvent->getEntityA()->isA(CL_AIMING_SYSTEM)) 233 233 // { 234 // PRINTF(0)("I am: %s colliding with: %s\n", owner->getClass Name(), collisionEvent->getEntityB()->getClassName(), *it);234 // PRINTF(0)("I am: %s colliding with: %s\n", owner->getClassCName(), collisionEvent->getEntityB()->getClassCName(), *it); 235 235 // if( collisionEvent->getEntityA() == this->owner) { 236 // PRINTF(0)("I am owner -> I am: %s colliding with: %s is a %i filter?\n", owner->getClass Name(),237 // collisionEvent->getEntityB()->getClass Name(), *it);236 // PRINTF(0)("I am owner -> I am: %s colliding with: %s is a %i filter?\n", owner->getClassCName(), 237 // collisionEvent->getEntityB()->getClassCName(), *it); 238 238 // if( collisionEvent->getEntityB()->isA((ClassID)(*it))) { 239 // PRINTF(0)("I am owner -> I am: %s colliding with: %s is a %i filter ok\n", owner->getClass Name(),240 // collisionEvent->getEntityB()->getClass Name(), *it);239 // PRINTF(0)("I am owner -> I am: %s colliding with: %s is a %i filter ok\n", owner->getClassCName(), 240 // collisionEvent->getEntityB()->getClassCName(), *it); 241 241 // } 242 242 // } 243 243 // else { 244 // PRINTF(0)("I am not owner -> I am: %s colliding with: %s is a %i filter?\n", owner->getClass Name(),245 // collisionEvent->getEntityB()->getClass Name(), *it);244 // PRINTF(0)("I am not owner -> I am: %s colliding with: %s is a %i filter?\n", owner->getClassCName(), 245 // collisionEvent->getEntityB()->getClassCName(), *it); 246 246 // if( collisionEvent->getEntityA()->isA((ClassID)(*it))) { 247 // PRINTF(0)("I'm not owner -> I am: %s colliding with: %s is a %i filter ok\n", owner->getClass Name(),248 // collisionEvent->getEntityA()->getClass Name(), *it);247 // PRINTF(0)("I'm not owner -> I am: %s colliding with: %s is a %i filter ok\n", owner->getClassCName(), 248 // collisionEvent->getEntityA()->getClassCName(), *it); 249 249 // } 250 250 // } … … 282 282 // if(collision->getEntityB()->isA(CL_AIMING_SYSTEM) || collision->getEntityA()->isA(CL_AIMING_SYSTEM)) 283 283 // { 284 // PRINTF(0)("Shared!!! I am: %s colliding with: %s\n", owner->getClass Name(), collision->getEntityB()->getClassName(), *it);284 // PRINTF(0)("Shared!!! I am: %s colliding with: %s\n", owner->getClassCName(), collision->getEntityB()->getClassCName(), *it); 285 285 // if( collision->getEntityA() == this->owner) { 286 // PRINTF(0)("I am owner -> I am: %s colliding with: %s is a %i filter?\n", owner->getClass Name(),287 // collision->getEntityB()->getClass Name(), *it);286 // PRINTF(0)("I am owner -> I am: %s colliding with: %s is a %i filter?\n", owner->getClassCName(), 287 // collision->getEntityB()->getClassCName(), *it); 288 288 // if( collision->getEntityB()->isA((ClassID)(*it))) { 289 // PRINTF(0)("I am owner -> I am: %s colliding with: %s is a %i filter ok\n", owner->getClass Name(),290 // collision->getEntityB()->getClass Name(), *it);289 // PRINTF(0)("I am owner -> I am: %s colliding with: %s is a %i filter ok\n", owner->getClassCName(), 290 // collision->getEntityB()->getClassCName(), *it); 291 291 // } 292 292 // } 293 293 // else { 294 // PRINTF(0)("I'm not owner -> I am: %s colliding with: %s is a %i filter?\n", owner->getClass Name(),295 // collision->getEntityB()->getClass Name(), *it);294 // PRINTF(0)("I'm not owner -> I am: %s colliding with: %s is a %i filter?\n", owner->getClassCName(), 295 // collision->getEntityB()->getClassCName(), *it); 296 296 // if( collision->getEntityA()->isA((ClassID)(*it))) { 297 // PRINTF(0)("I'm not owner -> I am: %s colliding with: %s is a %i filter ok\n", owner->getClass Name(),298 // collision->getEntityA()->getClass Name(), *it);297 // PRINTF(0)("I'm not owner -> I am: %s colliding with: %s is a %i filter ok\n", owner->getClassCName(), 298 // collision->getEntityA()->getClassCName(), *it); 299 299 // } 300 300 // } -
branches/proxy/src/lib/coord/p_node.cc
r9371 r9377 793 793 if (unlikely (shiftLen >= 1.0)) 794 794 shiftLen = 1.0; 795 //printf("%s::%s %f\n", this->getClass Name(), this->getName(), this->toStep );795 //printf("%s::%s %f\n", this->getClassCName(), this->getName(), this->toStep ); 796 796 Quaternion rotQuat = Quaternion::quatSlerp(this->relDirection,*this->toDirection, shiftLen); 797 797 if (this->relDirection.distance(rotQuat) > PNODE_ITERATION_DELTA) -
branches/proxy/src/lib/graphics/effects/atmospheric_engine.cc
r9357 r9377 116 116 std::list<BaseObject*>::const_iterator it; 117 117 for (it = weatherEffects->begin(); it != weatherEffects->end(); it++) { 118 /* printf("%s::%s \n", (*it)->getClass Name(), (*it)->getName());*/118 /* printf("%s::%s \n", (*it)->getClassCName(), (*it)->getName());*/ 119 119 dynamic_cast<WeatherEffect*>(*it)->tick(dt); 120 120 } -
branches/proxy/src/lib/graphics/render2D/element_2d.cc
r9371 r9377 104 104 deleteNode = tmp; 105 105 tmp++; 106 // printf("TEST::%s(%s) %s\n", (*deleteNode)->getName(), (*deleteNode)->getClass Name(), this->getName());106 // printf("TEST::%s(%s) %s\n", (*deleteNode)->getName(), (*deleteNode)->getClassCName(), this->getName()); 107 107 if ((this->parentMode & E2D_PROHIBIT_CHILD_DELETE) || 108 108 ((*deleteNode)->parentMode & E2D_PROHIBIT_DELETE_WITH_PARENT)) … … 937 937 projectPos+1, 938 938 projectPos+2); 939 // printf("%s::%s == %f %f %f :: %f %f\n", this->getClass Name(), this->getName(),939 // printf("%s::%s == %f %f %f :: %f %f\n", this->getClassCName(), this->getName(), 940 940 // this->bindNode->getAbsCoor().x, 941 941 // this->bindNode->getAbsCoor().y, -
branches/proxy/src/lib/network/synchronizeable.cc
r9375 r9377 326 326 n = (*it)->readFromBuf( stateTo->data + i, stateTo->dataLength - i ); 327 327 i += n; 328 //NETPRINTF(0)("%s::setvar %s %d\n", getClass Name(), (*it)->getName().c_str(), n);329 PRINTF(0)("%s::setvar %s %d\n", getClass Name().c_str(), (*it)->getName().c_str(), n);328 //NETPRINTF(0)("%s::setvar %s %d\n", getClassCName(), (*it)->getName().c_str(), n); 329 PRINTF(0)("%s::setvar %s %d\n", getClassCName(), (*it)->getName().c_str(), n); 330 330 //(*it)->debug(); 331 331 if ( (*it)->getHasChanged() ) … … 338 338 // PRINTF(0)("DONT SET VAR BECAUSE OF PERMISSION: %s %d %d %d %d %d %d\n", (*it)->getName().c_str(), (*it)->checkPermission( PERMISSION_MASTER_SERVER ), (*it)->checkPermission( PERMISSION_OWNER ), (*it)->checkPermission( PERMISSION_ALL ), networkStream->isUserServer( userId ), this->owner, userId ); 339 339 n = (*it)->getSizeFromBuf( stateTo->data + i, stateTo->dataLength - i ); 340 //NETPRINTF(0)("%s::setvar %s %d\n", getClass Name(), (*it)->getName().c_str(), n);340 //NETPRINTF(0)("%s::setvar %s %d\n", getClassCName(), (*it)->getName().c_str(), n); 341 341 //(*it)->debug(); 342 342 i += n; -
branches/proxy/src/lib/network/synchronizeable_var/synchronizeable_ip.cc
r9365 r9377 89 89 *this->vPtrOut = IP(host, port); 90 90 91 printf(" %s old: %i, %i -- new: %i, %i\n", name.c_str(), oldVal.host(), oldVal.port(), this->vPtrOut->host(), this->vPtrOut->port());92 91 this->setHasChanged( *this->vPtrOut != oldVal); 93 92 -
branches/proxy/src/lib/network/tcp_socket.h
r9347 r9377 16 16 #define _INCOMING_BUFFER_SIZE 2024000 17 17 #define _OUTGOING_BUFFER_SIZE 2024000 18 #define _LOCAL_BUFFER_SIZE 102418 #define _LOCAL_BUFFER_SIZE 2048 19 19 //sleep if incoming buffer is full 20 20 #define _MSECONDS_SLEEP_FULL_BUFFER 10 -
branches/proxy/src/lib/physics/physics_interface.cc
r9357 r9377 68 68 { 69 69 // todo: find out if children are PhysicsInterface in an efficient way 70 if (strcmp( pn->getClass Name(), "PhysicsInterface")) {70 if (strcmp( pn->getClassCName(), "PhysicsInterface")) { 71 71 massSum += ((PhysicsInterface*)pn)->getTotalMass(); 72 72 } … … 77 77 if (massSum != this->massChildren ) { 78 78 this->massChildren = massSum; 79 if (strcmp( massCalcPNode->parent->getClass Name(), "PhysicsInterface"))79 if (strcmp( massCalcPNode->parent->getClassCName(), "PhysicsInterface")) 80 80 ((PhysicsInterface*)massCalcPNode->parent)->recalcMass(); 81 81 } else { -
branches/proxy/src/lib/util/loading/load_param.cc
r9371 r9377 164 164 { 165 165 // locating the class 166 this->classDesc = LoadClassDescription::addClass(object->getClass Name());166 this->classDesc = LoadClassDescription::addClass(object->getClassCName()); 167 167 168 168 if ((this->paramDesc = this->classDesc->addParam(paramName)) != NULL)
Note: See TracChangeset
for help on using the changeset viewer.