- Timestamp:
- Jul 21, 2006, 11:43:38 AM (18 years ago)
- Location:
- branches/proxy/src
- Files:
-
- 20 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) -
branches/proxy/src/story_entities/game_world_data.cc
r9371 r9377 289 289 // ClassList::debug( 3, CL_PARENT_NODE); 290 290 // PNode::getNullParent()->debugNode(0); 291 // printf("%s::%s\n", nodeList->front()->getClass Name(), nodeList->front()->getName());291 // printf("%s::%s\n", nodeList->front()->getClassCName(), nodeList->front()->getName()); 292 292 delete nodeList->front(); 293 293 } -
branches/proxy/src/util/fast_factory.cc
r9371 r9377 188 188 /* if (this->storedDeadObjects + this->storedLivingObjects >= count) 189 189 { 190 PRINTF(3)("not creating new Objects for class %s, because the requested count already exists\n", this->getClass Name());190 PRINTF(3)("not creating new Objects for class %s, because the requested count already exists\n", this->getClassCName()); 191 191 }*/ 192 192 for (unsigned int i = this->storedDeadObjects; i < count; i++) -
branches/proxy/src/util/hud.cc
r9235 r9377 155 155 if (weapon != NULL) 156 156 { 157 //PRINTF(0)("WEAPON %s::%s in Slots\n", weapon->getClass Name(), weapon->getName());157 //PRINTF(0)("WEAPON %s::%s in Slots\n", weapon->getClassCName(), weapon->getName()); 158 158 weapon->getEnergyWidget()->show(); 159 159 weapon->getEnergyWidget()->setBackgroundColor(Color(.8,.2,.11, 0.1)); … … 215 215 (*weaponWidget)->setWidgetSize(.02*this->resX, .1 *this->resY); 216 216 (*weaponWidget)->show(); 217 //printf("update thing %s::%s\n", (*weaponWidget)->getClass Name(), (*weaponWidget)->getName());217 //printf("update thing %s::%s\n", (*weaponWidget)->getClassCName(), (*weaponWidget)->getName()); 218 218 } 219 219 } -
branches/proxy/src/world_entities/creatures/fps_player.cc
r9371 r9377 276 276 // if( target != NULL) 277 277 // { 278 // PRINTF(0)("hit hit hit, got: %s\n", target->getClass Name());278 // PRINTF(0)("hit hit hit, got: %s\n", target->getClassCName()); 279 279 // } 280 280 // else -
branches/proxy/src/world_entities/power_ups/laser_power_up.cc
r9357 r9377 78 78 void LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location) 79 79 { 80 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClass Name(), entity->getClassName(), location.x, location.y, location.z);80 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 81 81 if (entity->isA(CL_PLAYABLE)) 82 82 this->toList(OM_DEAD); -
branches/proxy/src/world_entities/power_ups/turret_power_up.cc
r9357 r9377 74 74 void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location) 75 75 { 76 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClass Name(), entity->getClassName(), location.x, location.y, location.z);76 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 77 77 if (entity->isA(CL_PLAYABLE)) 78 78 this->toList(OM_DEAD); -
branches/proxy/src/world_entities/weapons/aiming_system.cc
r9371 r9377 115 115 if( this->owner != killer) 116 116 { 117 //PRINTF(0)("real hit: %s\n", killer->getClass Name());117 //PRINTF(0)("real hit: %s\n", killer->getClassCName()); 118 118 this->selectionList.push_back(killer); 119 119 } -
branches/proxy/src/world_entities/weapons/weapon.cc
r9371 r9377 313 313 { 314 314 this->energyWidget = new OrxGui::GLGuiEnergyWidget(); 315 this->energyWidget->setDisplayedName(this->getClass Name());315 this->energyWidget->setDisplayedName(this->getClassCName()); 316 316 this->energyWidget->setSize2D( 20, 100); 317 317 this->energyWidget->setMaximum(this->getEnergyMax()); -
branches/proxy/src/world_entities/world_entity.cc
r9371 r9377 506 506 * You can always define a default Action.... don't be affraid just test it :) 507 507 */ 508 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClass Name(), entity->getClassName(), location.x, location.y, location.z);508 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 509 509 } 510 510 … … 524 524 { 525 525 526 // PRINTF(0)("BSP_GROUND: Player collides \n", this->getClass Name() );526 // PRINTF(0)("BSP_GROUND: Player collides \n", this->getClassCName() ); 527 527 528 528 Vector v = this->getAbsDirX(); … … 594 594 void WorldEntity::draw() const 595 595 { 596 //PRINTF(0)("(%s::%s)\n", this->getClass Name(), this->getName());596 //PRINTF(0)("(%s::%s)\n", this->getClassCName(), this->getName()); 597 597 // assert(!unlikely(this->models.empty())); 598 598 {
Note: See TracChangeset
for help on using the changeset viewer.