Changeset 9371 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 20, 2006, 11:08:16 PM (18 years ago)
- Location:
- branches/proxy/src/lib
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/collision_detection/aabb_tree_node.cc
r9357 r9371 262 262 const int* triangleIndexes, int length) 263 263 { 264 265 Vector axis[3]; //!< the references to the obb axis266 264 Matrix covMat( box.covarianceMatrix ); //!< covariance matrix (in the matrix dataform) 267 265 … … 501 499 if( this->overlapTest(this->bvElement, treeNode->bvElement, nodeA, nodeB)) 502 500 { 503 PRINTF(5)("collision @ lvl %i, object %s vs. %s, (%p, %p)\n", this->depth, nodeA->getClassName(), nodeB->getClassName(), this->nodeLeft, this->nodeRight);501 PRINTF(5)("collision @ lvl %i, object %s::%s vs. %s::%s, (%p, %p)\n", this->depth, nodeA->getClassCName(), nodeA->getCName(), nodeB->getClassCName(), nodeA->getCName(), this->nodeLeft, this->nodeRight); 504 502 505 503 -
branches/proxy/src/lib/collision_detection/cd_engine.cc
r9357 r9371 45 45 46 46 this->bAbordOnFirstCollision = false; 47 47 48 48 this->terrain = NULL; 49 49 } … … 86 86 if( likely((*entity2) != this->terrain)) 87 87 { 88 PRINTF(5)("checking object %s (%s) against %s (%s)\n", (*entity1)->getClassName(), (*entity1)->getName(), (*entity2)->getClassName(), (*entity2)->getName()); 88 PRINTF(5)("checking object %s (%s) against %s (%s)\n", 89 (*entity1)->getClassCName(), (*entity1)->getCName(), (*entity2)->getClassCName(), (*entity2)->getCName()); 89 90 tree = (*entity1)->getOBBTree(); 90 91 if( likely(tree != NULL) && (*entity2)->getOBBTree() != NULL) -
branches/proxy/src/lib/collision_detection/obb_tree_node.cc
r9357 r9371 505 505 if( this->overlapTest(this->bvElement, treeNode->bvElement, nodeA, nodeB)) 506 506 { 507 PRINTF(5)("collision @ lvl %i, object %s vs. %s, (%p, %p)\n", this->depth, nodeA->getClass Name(), nodeB->getClassName(), this->nodeLeft, this->nodeRight);507 PRINTF(5)("collision @ lvl %i, object %s vs. %s, (%p, %p)\n", this->depth, nodeA->getClassCName(), nodeB->getClassCName(), this->nodeLeft, this->nodeRight); 508 508 509 509 … … 807 807 if( this->obbTree->getOwner() != NULL) 808 808 { 809 PRINTF(4)("debug poly draw: depth: %i, mode: %i, entity-name: %s, class: %s\n", depth, drawMode, this->obbTree->getOwner()->get Name(), this->obbTree->getOwner()->getClassName());809 PRINTF(4)("debug poly draw: depth: %i, mode: %i, entity-name: %s, class: %s\n", depth, drawMode, this->obbTree->getOwner()->getCName(), this->obbTree->getOwner()->getClassCName()); 810 810 } 811 811 else -
branches/proxy/src/lib/collision_reaction/collision_handle.cc
r9357 r9371 178 178 179 179 c->registerCollisionEvent(collisionEvent); 180 PRINTF(5)("Registering Collision Event: %s, %s\n", collisionEvent->getEntityA()->getClass Name(), collisionEvent->getEntityB()->getClassName());180 PRINTF(5)("Registering Collision Event: %s, %s\n", collisionEvent->getEntityA()->getClassCName(), collisionEvent->getEntityB()->getClassCName()); 181 181 } 182 182 … … 254 254 if( collisionEvent->getEntityA() == this->owner) { 255 255 if( collisionEvent->getEntityB()->isA((ClassID)(*it))) { 256 PRINTF(5)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClass Name(),257 collisionEvent->getEntityB()->getClass Name(), *it);256 PRINTF(5)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClassCName(), 257 collisionEvent->getEntityB()->getClassCName(), *it); 258 258 return true; } 259 259 } 260 260 else { 261 261 if( collisionEvent->getEntityA()->isA((ClassID)(*it))) { 262 PRINTF(5)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClass Name(),263 collisionEvent->getEntityA()->getClass Name(), *it);262 PRINTF(5)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClassCName(), 263 collisionEvent->getEntityA()->getClassCName(), *it); 264 264 return true; } 265 265 } -
branches/proxy/src/lib/collision_reaction/cr_object_damage.cc
r9357 r9371 57 57 58 58 PRINTF(4)("Dealing damage - Handling collision: %s vs %s\n", 59 collision->getEntityA()->getClass Name(),60 collision->getEntityB()->getClass Name());59 collision->getEntityA()->getClassCName(), 60 collision->getEntityB()->getClassCName()); 61 61 62 62 // the collision damage been dealed by the entity … … 64 64 damage = collision->getEntityB()->getDamage(); 65 65 collision->getEntityA()->hit(damage, collision->getEntityB()); 66 PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityA()->getClass Name());66 PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityA()->getClassCName()); 67 67 } 68 68 … … 70 70 damage = collision->getEntityA()->getDamage(); 71 71 collision->getEntityB()->hit(damage, collision->getEntityA()); 72 PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityB()->getClass Name());72 PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityB()->getClassCName()); 73 73 } 74 74 -
branches/proxy/src/lib/coord/p_node.cc
r9235 r9371 77 77 PNode::~PNode () 78 78 { 79 PRINTF(4)("delete %s::%s\n", this->getClass Name(), this->getName());79 PRINTF(4)("delete %s::%s\n", this->getClassCName(), this->getCName()); 80 80 // remove the Node, delete it's children (if required). 81 81 std::list<PNode*>::iterator deleteNode; … … 91 91 { 92 92 PRINTF(4)("%s::%s deletes %s::%s\n", 93 this->getClass Name(), this->getName(),94 (*deleteNode)->getClass Name(), (*deleteNode)->getName());93 this->getClassCName(), this->getCName(), 94 (*deleteNode)->getClassCName(), (*deleteNode)->getCName()); 95 95 delete (*deleteNode); 96 96 } … … 98 98 { 99 99 PRINTF(4)("%s::%s reparents %s::%s\n", 100 this->getClass Name(), this->getName(),101 (*deleteNode)->getClass Name(), (*deleteNode)->getName());100 this->getClassCName(), this->getCName(), 101 (*deleteNode)->getClassCName(), (*deleteNode)->getCName()); 102 102 (*deleteNode)->reparent(); 103 103 } … … 106 106 { 107 107 PRINTF(4)("%s::%s deletes PNode: %s::%s\n", 108 this->getClass Name(), this->getName(),109 (*deleteNode)->getClass Name(), (*deleteNode)->getName());108 this->getClassCName(), this->getCName(), 109 (*deleteNode)->getClassCName(), (*deleteNode)->getCName()); 110 110 delete (*deleteNode); 111 111 } … … 509 509 { 510 510 PRINTF(1)("Tried to reparent to own child '%s::%s' to '%s::%s'.\n", 511 this->getClass Name(), this->getName(), child->getClassName(), child->getName());511 this->getClassCName(), this->getCName(), child->getClassCName(), child->getCName()); 512 512 child->parent = NULL; 513 513 child->parentCoorChanged(); … … 519 519 { 520 520 PNode* tmpNode = node->parent; 521 printf("entering seek PNode loop for name: %s, uid: %i\n", node->get Name(), node->getUniqueID());521 printf("entering seek PNode loop for name: %s, uid: %i\n", node->getCName(), node->getUniqueID()); 522 522 if(tmpNode) 523 printf(" @node name: %s, uid: %d\n", tmpNode->get Name(), tmpNode->getUniqueID());523 printf(" @node name: %s, uid: %d\n", tmpNode->getCName(), tmpNode->getUniqueID()); 524 524 while( tmpNode != NULL && tmpNode->getUniqueID() == NET_UID_UNASSIGNED) 525 525 { 526 printf(" @node name: %s, uid: %d\n", tmpNode->get Name(), tmpNode->getUniqueID());526 printf(" @node name: %s, uid: %d\n", tmpNode->getCName(), tmpNode->getUniqueID()); 527 527 tmpNode = tmpNode->parent; 528 528 } … … 604 604 (*reparenter)->parentMode & PNODE_REPARENT_ON_PARENTS_REMOVE) 605 605 { 606 printf("TEST----------------%s ---- %s\n", this->getClass Name(), (*reparenter)->getClassName());606 printf("TEST----------------%s ---- %s\n", this->getClassCName(), (*reparenter)->getClassCName()); 607 607 (*reparenter)->reparent(); 608 printf("REPARENTED TO: %s::%s\n",(*reparenter)->getParent()->getClass Name(),(*reparenter)->getParent()->getName());608 printf("REPARENTED TO: %s::%s\n",(*reparenter)->getParent()->getClassCName(),(*reparenter)->getParent()->getCName()); 609 609 } 610 610 } … … 628 628 else 629 629 PRINTF(2)("Not Found PNode's (%s::%s) new Parent by Name: %s\n", 630 this->getClass Name(), this->getName(), parentName.c_str());630 this->getClassCName(), this->getCName(), parentName.c_str()); 631 631 } 632 632 … … 785 785 delete this->toCoordinate; 786 786 this->toCoordinate = NULL; 787 PRINTF(5)("SmoothMove of %s finished\n", this->get Name());787 PRINTF(5)("SmoothMove of %s finished\n", this->getCName()); 788 788 } 789 789 } … … 804 804 delete this->toDirection; 805 805 this->toDirection = NULL; 806 PRINTF(5)("SmoothRotate of %s finished\n", this->get Name());806 PRINTF(5)("SmoothRotate of %s finished\n", this->getCName()); 807 807 this->bRelDirChanged = true; 808 808 } … … 812 812 this->lastAbsCoordinate = this->absCoordinate; 813 813 814 PRINTF(5)("PNode::update - '%s::%s' - (%f, %f, %f)\n", this->getClass Name(), this->getName(),814 PRINTF(5)("PNode::update - '%s::%s' - (%f, %f, %f)\n", this->getClassCName(), this->getCName(), 815 815 this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z); 816 816 … … 840 840 else // Nodes without a Parent are handled faster :: MOST LIKELY THE NULLPARENT 841 841 { 842 PRINTF(4)("update ParentLess Node (%s::%s) - (%f, %f, %f)\n", this->getClass Name(), this->getName(),842 PRINTF(4)("update ParentLess Node (%s::%s) - (%f, %f, %f)\n", this->getClassCName(), this->getCName(), 843 843 this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z); 844 844 if (this->bRelCoorChanged) … … 913 913 914 914 PRINT(0)("PNode(%s::%s) - absCoord: (%0.2f, %0.2f, %0.2f), relCoord(%0.2f, %0.2f, %0.2f), direction(%0.2f, %0.2f, %0.2f) - %s - %d childs\n", 915 this->getClass Name(),916 this->get Name(),915 this->getClassCName(), 916 this->getCName(), 917 917 this->absCoordinate.x, 918 918 this->absCoordinate.y, … … 1090 1090 { 1091 1091 Synchronizeable::varChangeHandler( id ); 1092 1092 1093 1093 if ( std::find( id.begin(), id.end(), relCoordinate_handle ) != id.end() ) 1094 1094 { -
branches/proxy/src/lib/event/event_handler.cc
r9240 r9371 207 207 else 208 208 { 209 PRINTF(2)("%s::%s was already subscribed to state %d event %d\n", el->getClass Name(), el->getName(), i, eventType);209 PRINTF(2)("%s::%s was already subscribed to state %d event %d\n", el->getClassCName(), el->getCName(), i, eventType); 210 210 } 211 211 } … … 216 216 else 217 217 { 218 PRINTF(2)("%s::%s was already subscribed to state %d event %d\n", el->getClass Name(), el->getName(), state, eventType);218 PRINTF(2)("%s::%s was already subscribed to state %d event %d\n", el->getClassCName(), el->getCName(), state, eventType); 219 219 } 220 220 } … … 463 463 { 464 464 PRINT(4)("= Event dispatcher msg: This event has been consumed\n"); 465 PRINT(4)("= Got Event nr %i, for state %i (%d registered) to %s::%s(%p)\n", event.type, i, state, this->listeners[state][event.type][i]->getClassName(), this->listeners[state][event.type][i]->getName(), this->listeners[state][event.type][i]); 465 PRINT(4)("= Got Event nr %i, for state %i (%d registered) to %s::%s(%p)\n", 466 event.type, 467 i, state, 468 this->listeners[state][event.type][i]->getClassCName(), 469 this->listeners[state][event.type][i]->getCName(), 470 this->listeners[state][event.type][i]); 466 471 PRINT(4)("=======================================================\n"); 467 472 this->listeners[state][event.type][i]->process(event); … … 563 568 EVToKeyName(j).c_str(), j, 564 569 ELStateToString((elState)i).c_str(), i, 565 this->listeners[i][j][evl]->get Name(), this->listeners[i][j][evl]);570 this->listeners[i][j][evl]->getCName(), this->listeners[i][j][evl]); 566 571 } 567 572 PRINT(0)("============================EH=\n"); -
branches/proxy/src/lib/graphics/importer/material.cc
r8761 r9371 88 88 Material::~Material() 89 89 { 90 PRINTF(5)("delete Material %s.\n", this->get Name());90 PRINTF(5)("delete Material %s.\n", this->getCName()); 91 91 92 92 if (this->ambientTexture != NULL) … … 217 217 void Material::setIllum (int illum) 218 218 { 219 PRINTF(4)("setting illumModel of Material %s to %i\n", this->get Name(), illum);219 PRINTF(4)("setting illumModel of Material %s to %i\n", this->getCName(), illum); 220 220 this->illumModel = illum; 221 221 } … … 229 229 void Material::setDiffuse (float r, float g, float b) 230 230 { 231 PRINTF(4)("setting Diffuse Color of Material %s to r=%f g=%f b=%f.\n", this->get Name(), r, g, b);231 PRINTF(4)("setting Diffuse Color of Material %s to r=%f g=%f b=%f.\n", this->getCName(), r, g, b); 232 232 this->diffuse = Color(r, g, b, this->diffuse.a() ); 233 233 } … … 242 242 void Material::setAmbient (float r, float g, float b) 243 243 { 244 PRINTF(4)("setting Ambient Color of Material %s to r=%f g=%f b=%f.\n", this->get Name(), r, g, b);244 PRINTF(4)("setting Ambient Color of Material %s to r=%f g=%f b=%f.\n", this->getCName(), r, g, b); 245 245 this->ambient = Color(r, g, b, 1.0); 246 246 } … … 254 254 void Material::setSpecular (float r, float g, float b) 255 255 { 256 PRINTF(4)("setting Specular Color of Material %s to r=%f g=%f b=%f.\n", this->get Name(), r, g, b);256 PRINTF(4)("setting Specular Color of Material %s to r=%f g=%f b=%f.\n", this->getCName(), r, g, b); 257 257 this->specular = Color (r, g, b, 1.0); 258 258 } … … 273 273 void Material::setTransparency (float trans) 274 274 { 275 PRINTF(4)("setting Transparency of Material %s to %f.\n", this->get Name(), trans);275 PRINTF(4)("setting Transparency of Material %s to %f.\n", this->getCName(), trans); 276 276 this->diffuse.a() = trans; 277 277 } … … 455 455 void Material::debug() const 456 456 { 457 PRINT(0)("Debug Material: %s\n", this->get Name());457 PRINT(0)("Debug Material: %s\n", this->getCName()); 458 458 PRINT(0)("illumModel: %d ; ShiniNess %f\n", this->illumModel, shininess); 459 459 PRINT(0)("diffuseColor: "); diffuse.debug(); -
branches/proxy/src/lib/graphics/importer/static_model.cc
r9357 r9371 161 161 { 162 162 PRINTF(4)("Deleting Model "); 163 if ( this->getName())164 { 165 PRINT(4)("%s\n", this->get Name());163 if (!this->getName().empty()) 164 { 165 PRINT(4)("%s\n", this->getCName()); 166 166 } 167 167 else … … 214 214 void StaticModel::rebuild() 215 215 { 216 PRINTF(3)("Rebuilding Model '%s'\n", this->get Name());216 PRINTF(3)("Rebuilding Model '%s'\n", this->getCName()); 217 217 this->finalize(); 218 218 } … … 266 266 tmpGroup = tmpGroup->next; 267 267 } 268 PRINTF(2)("Model number %i in %s not Found.\n", groupNumber, this->get Name());268 PRINTF(2)("Model number %i in %s not Found.\n", groupNumber, this->getCName()); 269 269 return; 270 270 } … … 291 291 tmpGroup = tmpGroup->next; 292 292 } 293 PRINTF(2)("Model Named %s in %s not Found.\n", groupName.c_str(), this->get Name());293 PRINTF(2)("Model Named %s in %s not Found.\n", groupName.c_str(), this->getCName()); 294 294 return; 295 295 } … … 748 748 { 749 749 tmpFace->material->select(); 750 PRINTF(5)("using material %s for coming Faces.\n", tmpFace->material->get Name());750 PRINTF(5)("using material %s for coming Faces.\n", tmpFace->material->getCName()); 751 751 } 752 752 } … … 840 840 else if( tmpFace->vertexCount > 4) { 841 841 if (!warned) { 842 PRINTF(2)("This model (%s) got over 4 vertices per face <=> conflicts in the CD engine!\n", this->get Name());842 PRINTF(2)("This model (%s) got over 4 vertices per face <=> conflicts in the CD engine!\n", this->getCName()); 843 843 warned = true; 844 844 } -
branches/proxy/src/lib/graphics/importer/texture.cc
r8761 r9371 230 230 if (this->data->getStoredImage() != NULL) 231 231 { 232 PRINTF(3)("Reloading Texture of %s '%s'\n", this->getClass Name(), this->getName());232 PRINTF(3)("Reloading Texture of %s '%s'\n", this->getClassCName(), this->getCName()); 233 233 this->setTexture(Texture::loadTexToGL(this->data->getStoredImage())); 234 234 } -
branches/proxy/src/lib/graphics/importer/texture_sequence.cc
r8619 r9371 225 225 bool TextureSequence::rebuild() 226 226 { 227 PRINTF(3)("Reloading TextureSequence of %s '%s'\n", this->getClass Name(), this->getName());227 PRINTF(3)("Reloading TextureSequence of %s '%s'\n", this->getClassCName(), this->getCName()); 228 228 229 229 for (unsigned int i = 0; i < this->textures.size(); i++) -
branches/proxy/src/lib/graphics/importer/vertex_array_model.cc
r9357 r9371 116 116 VertexArrayModel::~VertexArrayModel() 117 117 { 118 PRINTF(4)("Deleting VertexArrayModel %s\n", this->get Name());118 PRINTF(4)("Deleting VertexArrayModel %s\n", this->getCName()); 119 119 } 120 120 … … 127 127 void VertexArrayModel::draw() const 128 128 { 129 PRINTF(4)("drawing 3D-VertexArrayModel %s\n", this->get Name());129 PRINTF(4)("drawing 3D-VertexArrayModel %s\n", this->getCName()); 130 130 glEnableClientState(GL_VERTEX_ARRAY ); 131 131 glEnableClientState(GL_TEXTURE_COORD_ARRAY ); … … 343 343 void VertexArrayModel::debug() const 344 344 { 345 PRINT(0)("VertexArrayModel (%s): debug\n", this->get Name());345 PRINT(0)("VertexArrayModel (%s): debug\n", this->getCName()); 346 346 PRINT(0)("Stripes: %d; Indices: %d; Vertices: %d; Normals %d; TextCoords %d; Colors %d\n", 347 347 this->stripes.size(), -
branches/proxy/src/lib/graphics/render2D/element_2d.cc
r8989 r9371 214 214 { 215 215 PRINTF(2)("Unable to set %s to layer %s, because it's parent(%s) is of higher layer %s\n", 216 this->get Name(),216 this->getCName(), 217 217 Element2D::layer2DToChar(layer), 218 this->parent->get Name(),218 this->parent->getCName(), 219 219 Element2D::layer2DToChar(this->parent->getLayer())); 220 220 layer = this->parent->getLayer(); … … 602 602 { 603 603 PRINTF(2)("Layer '%s' of Child(%s::%s) lower than parents(%s::%s) layer '%s'. updating...\n", 604 Element2D::layer2DToChar(child->getLayer()),child->getClass Name(), child->getName(),605 this->getClass Name(), this->getName(), Element2D::layer2DToChar(this->layer));604 Element2D::layer2DToChar(child->getLayer()),child->getClassCName(), child->getCName(), 605 this->getClassCName(), this->getCName(), Element2D::layer2DToChar(this->layer)); 606 606 child->layer = this->layer; 607 607 this->children.push_front(child); … … 627 627 { 628 628 PRINTF(1)("Tried to reparent2D to own child '%s::%s' to '%s::%s'.\n", 629 this->getClass Name(), this->getName(), child->getClassName(), child->getName());629 this->getClassCName(), this->getCName(), child->getClassCName(), child->getCName()); 630 630 child->parent = NULL; 631 631 } … … 701 701 { 702 702 (*reparenter)->reparent2D(); 703 PRINTF(5)("REPARENTED TO: %s::%s\n",(*reparenter)->getParent2D()->getClass Name(),(*reparenter)->getParent2D()->getName());703 PRINTF(5)("REPARENTED TO: %s::%s\n",(*reparenter)->getParent2D()->getClassCName(),(*reparenter)->getParent2D()->getCName()); 704 704 } 705 705 } … … 723 723 else 724 724 PRINTF(2)("Not Found Element2D's (%s::%s) new Parent by Name: %s\n", 725 this->getClass Name(), this->getName(), parentName.c_str());725 this->getClassCName(), this->getCName(), parentName.c_str()); 726 726 } 727 727 … … 865 865 Vector2D tmp = *this->toCoordinate; 866 866 this->setRelCoor2D(tmp); 867 PRINTF(5)("SmoothMove of %s finished\n", this->get Name());867 PRINTF(5)("SmoothMove of %s finished\n", this->getCName()); 868 868 } 869 869 } … … 879 879 float tmp = *this->toDirection; 880 880 this->setRelDir2D(tmp); 881 PRINTF(5)("SmoothRotate of %s finished\n", this->get Name());881 PRINTF(5)("SmoothRotate of %s finished\n", this->getCName()); 882 882 } 883 883 } … … 893 893 delete this->toSize; 894 894 this->toSize = NULL; 895 PRINTF(5)("SmoothRotate of %s finished\n", this->get Name());895 PRINTF(5)("SmoothRotate of %s finished\n", this->getCName()); 896 896 } 897 897 } … … 900 900 this->lastAbsCoordinate = this->absCoordinate; 901 901 902 PRINTF(5)("Element2D::update - %s - (%f, %f)\n", this->get Name(), this->absCoordinate.x, this->absCoordinate.y);902 PRINTF(5)("Element2D::update - %s - (%f, %f)\n", this->getCName(), this->absCoordinate.x, this->absCoordinate.y); 903 903 904 904 … … 1026 1026 PRINT(0)(" -"); 1027 1027 PRINT(0)("E2D(%s::%s);AC:(%0.2f, %0.2f);RC:(%0.2f, %0.2f);AD(%0.2f)->%s;Layer:(%s)\n", 1028 this->getClass Name(),1029 this->get Name(),1028 this->getClassCName(), 1029 this->getCName(), 1030 1030 this->absCoordinate.x, 1031 1031 this->absCoordinate.y, -
branches/proxy/src/lib/graphics/text_engine/limited_width_text.cc
r8981 r9371 160 160 void LimitedWidthText::debug() const 161 161 { 162 printf("Debug %s::%s \n", this->getClass Name(), this->getName() );162 printf("Debug %s::%s \n", this->getClassCName(), this->getCName() ); 163 163 } -
branches/proxy/src/lib/graphics/text_engine/multi_line_text.cc
r8768 r9371 152 152 void MultiLineText::debug() const 153 153 { 154 printf("Debug %s::%s: %d lines\n", this->getClass Name(), this->getName(), this->getLineCount());154 printf("Debug %s::%s: %d lines\n", this->getClassCName(), this->getCName(), this->getLineCount()); 155 155 156 156 std::string tmpText = this->text(); -
branches/proxy/src/lib/graphics/text_engine/text.cc
r9352 r9371 279 279 void Text::debug() const 280 280 { 281 PRINT(0)("=== TEXT: %s (with Font:'%s') displaying %s ===\n", this->get Name(), this->_font.getName(), this->_text.c_str());281 PRINT(0)("=== TEXT: %s (with Font:'%s') displaying %s ===\n", this->getCName(), this->_font.getCName(), this->_text.c_str()); 282 282 // PRINT(0)("Color: r=%0.2f g=%0.2f b=%0.2f a=%0.2f\n", this->_color.r(), this->_color.g(), this->_color.b(), this->_color.a()); 283 283 } -
branches/proxy/src/lib/gui/gl/glgui_frame.cc
r8145 r9371 57 57 else 58 58 { 59 PRINTF(2)("Frame %s is already filled, not filling with %s\n", this->get Name(), widget->getName());59 PRINTF(2)("Frame %s is already filled, not filling with %s\n", this->getCName(), widget->getCName()); 60 60 } 61 61 } -
branches/proxy/src/lib/gui/gl/glgui_widget.cc
r9369 r9371 793 793 //this->_currentStyle = this->_style[state]; 794 794 this->_state = state; 795 PRINTF(4)("%s::%s Switches to state %s\n", this->getClass Name(), this->getName(), OrxGui::StateString[state].c_str());795 PRINTF(4)("%s::%s Switches to state %s\n", this->getClassCName(), this->getCName(), OrxGui::StateString[state].c_str()); 796 796 797 797 this->animateBack(); … … 861 861 void GLGuiWidget::debug(unsigned int level) const 862 862 { 863 PRINT(0)("Debug of %s::%s - WidgetPart ", this->getClass Name(), this->getName());863 PRINT(0)("Debug of %s::%s - WidgetPart ", this->getClassCName(), this->getCName()); 864 864 if (_parent != NULL) 865 PRINT(0)("- Parent %s::%s ", _parent->getClass Name(), _parent->getName());865 PRINT(0)("- Parent %s::%s ", _parent->getClassCName(), _parent->getCName()); 866 866 PRINT(0)("- State: %s", StateString[_state].c_str()); 867 867 -
branches/proxy/src/lib/gui/gui_saveable.cc
r8362 r9371 60 60 void Saveable::load() 61 61 { 62 this->value() = Preferences::getInstance()->getMultiType(this->group->get Name(), this->getName(), this->_defaultValue);63 PRINTF(4)("Loaded to '%s' of group '%s' value '%s'\n", this->get Name(), this->group->getName(), this->value().getCString());62 this->value() = Preferences::getInstance()->getMultiType(this->group->getCName(), this->getCName(), this->_defaultValue); 63 PRINTF(4)("Loaded to '%s' of group '%s' value '%s'\n", this->getCName(), this->group->getCName(), this->value().getCString()); 64 64 } 65 65 66 66 void Saveable::save() 67 67 { 68 Preferences::getInstance()->setMultiType(this->group->get Name(), this->getName(), this->value() );69 PRINTF(4)("Saved to '%s' of group '%s' value '%s'\n", this->get Name(), this->group->getName(), this->value().getCString());68 Preferences::getInstance()->setMultiType(this->group->getCName(), this->getCName(), this->value() ); 69 PRINTF(4)("Saved to '%s' of group '%s' value '%s'\n", this->getCName(), this->group->getCName(), this->value().getCString()); 70 70 } 71 71 -
branches/proxy/src/lib/lang/base_object.h
r9361 r9371 35 35 void setName (const std::string& newName); 36 36 /** returns the Name of this Object */ 37 inline const char* getName ()const { return this->objectName.c_str(); }; 37 inline const std::string& getName() const { return this->objectName; }; 38 /** returns the Name of this Object as a C-compliant string (const char*) */ 39 inline const char* getCName() const { return this->objectName.c_str(); }; 38 40 /** @returns the XML-Element with whicht this Object was loaded */ 39 41 inline TiXmlNode* getXmlElem() const { return this->xmlElem; }; 40 42 41 43 /** @returns the className of the corresponding Object */ 42 inline const char* getClassName() const { return this->className.c_str(); }; 44 inline const std::string& getClassName() const { return this->className; } 45 /** @returns the className of the corresponding Object as a C-compliant string (const char*) */ 46 inline const char* getClassCName() const { return this->className.c_str(); }; 43 47 /** @returns the classID of the corresponding Object */ 44 48 inline int getClassID() const { return this->classID; }; -
branches/proxy/src/lib/lang/class_list.cc
r9357 r9371 207 207 std::list<BaseObject*>::iterator bo; 208 208 for (bo = cl->objectList.begin(); bo != cl->objectList.end(); bo++) 209 if ( (*bo)->getName() != NULL &&objectName == (*bo)->getName())209 if (objectName == (*bo)->getName()) 210 210 return (*bo); 211 211 } … … 218 218 std::list<BaseObject*>::iterator bo; 219 219 for (bo = (*cl).objectList.begin(); bo != (*cl).objectList.end(); bo++) 220 if ( (*bo)->getName() != NULL &&objectName == (*bo)->getName())220 if (objectName == (*bo)->getName()) 221 221 return (*bo); 222 222 } … … 241 241 std::list<BaseObject*>::iterator bo; 242 242 for (bo = cl->objectList.begin(); bo != cl->objectList.end(); bo++) 243 if ( (*bo)->getName() != NULL &&objectName == (*bo)->getName())243 if (objectName == (*bo)->getName()) 244 244 return (*bo); 245 245 } … … 286 286 std::list<BaseObject*>::iterator bo; 287 287 for (bo = cl->objectList.begin(); bo != cl->objectList.end(); bo++) 288 if ( (*bo)->getName() != NULL &&objectName == (*bo)->getName())288 if (objectName == (*bo)->getName()) 289 289 return true; 290 290 } … … 380 380 for (bo = (*cl).objectList.begin(); bo != (*cl).objectList.end(); bo++) 381 381 { 382 PRINT(0)("| %s::%s::(0x%.8X->%p ", (*bo)->getClass Name(), (*bo)->getName(), (*bo)->getClassID(), (*bo));382 PRINT(0)("| %s::%s::(0x%.8X->%p ", (*bo)->getClassCName(), (*bo)->getCName(), (*bo)->getClassID(), (*bo)); 383 383 if (debugLevel == 3) 384 384 ClassList::whatIs(*bo); -
branches/proxy/src/lib/network/network_game_manager.cc
r9357 r9371 288 288 if ( list && std::find( list->begin(), list->end(), *it ) != list->end() ) 289 289 { 290 PRINTF(0)("Delete unused playable: %s owner: %d\n", (*it)->getClass Name(), (*it)->getOwner() );290 PRINTF(0)("Delete unused playable: %s owner: %d\n", (*it)->getClassCName(), (*it)->getOwner() ); 291 291 std::list<Playable*>::iterator delit = it; 292 292 it++; -
branches/proxy/src/lib/network/network_stream.cc
r9367 r9371 208 208 hs->setPreferedNickName( Preferences::getInstance()->getString( "multiplayer", "nickname", "Player" ) ); 209 209 210 PRINTF(0)("NetworkStream: Handshake created: %s\n", hs->get Name());210 PRINTF(0)("NetworkStream: Handshake created: %s\n", hs->getCName()); 211 211 } 212 212 … … 447 447 { 448 448 if( (*it)->beSynchronized() == true) 449 PRINT(0)(" Synchronizeable of class: %s::%s, with unique ID: %i, Synchronize: %i\n", (*it)->getClass Name(), (*it)->getName(),449 PRINT(0)(" Synchronizeable of class: %s::%s, with unique ID: %i, Synchronize: %i\n", (*it)->getClassCName(), (*it)->getCName(), 450 450 (*it)->getUniqueID(), (*it)->beSynchronized()); 451 451 } … … 850 850 sync->setSynchronized(true); 851 851 852 PRINTF(0)("Fabricated %s with id %d\n", sync->getClass Name(), sync->getUniqueID());852 PRINTF(0)("Fabricated %s with id %d\n", sync->getClassCName(), sync->getUniqueID()); 853 853 } 854 854 else -
branches/proxy/src/lib/network/synchronizeable.cc
r9347 r9371 229 229 if ( i != neededSize ) 230 230 { 231 PRINTF(0)("strange error: (%s) %d != %d\n", this->getClass Name(), i, neededSize);231 PRINTF(0)("strange error: (%s) %d != %d\n", this->getClassCName(), i, neededSize); 232 232 assert(false); 233 233 } -
branches/proxy/src/lib/particles/model_particles.cc
r9357 r9371 136 136 } 137 137 else 138 PRINTF(2)("no model loaded onto ParticleSystem-%s\n", this->get Name());138 PRINTF(2)("no model loaded onto ParticleSystem-%s\n", this->getCName()); 139 139 glPopAttrib(); 140 140 } -
branches/proxy/src/lib/particles/particle_emitter.cc
r9357 r9371 198 198 void ParticleEmitter::debug() const 199 199 { 200 PRINT(0)(" ParticleEmitter %s::%s\n", this->getClass Name(), this->getName());200 PRINT(0)(" ParticleEmitter %s::%s\n", this->getClassCName(), this->getCName()); 201 201 PRINT(0)(" EmissionRate: %f, Speed: %f, SpreadAngle: %f\n", this->getEmissionRate(), this->getEmissionVelocity(), this->getSpread()); 202 202 } -
branches/proxy/src/lib/particles/particle_system.cc
r9357 r9371 139 139 { 140 140 PRINTF(2)("Tried to load an Element of type '%s' that should be a ParticleEmitter onto '%s::%s'.\n", 141 emitter->getClass Name(), this->getClassName(), this->getName());141 emitter->getClassCName(), this->getClassCName(), this->getCName()); 142 142 delete emitter; 143 143 } … … 145 145 else 146 146 { 147 PRINTF(2)("Could not Generate Emitter for system %s::%s (wrong type in XML-format)\n", this->getClass Name(), getName());147 PRINTF(2)("Could not Generate Emitter for system %s::%s (wrong type in XML-format)\n", this->getClassCName(), getCName()); 148 148 } 149 149 } … … 157 157 { 158 158 this->maxCount = maxCount; 159 PRINTF(4)("MAXCOUNT of %s::%s is %d\n", this->getClass Name(), this->getName(),maxCount);159 PRINTF(4)("MAXCOUNT of %s::%s is %d\n", this->getClassCName(), this->getCName(), maxCount); 160 160 } 161 161 … … 170 170 this->lifeSpan = lifeSpan; 171 171 this->randomLifeSpan = randomLifeSpan; 172 PRINTF(4)("LifeTime of %s::%s is %f\n", this->getClass Name(), this->getName(), lifeSpan);172 PRINTF(4)("LifeTime of %s::%s is %f\n", this->getClassCName(), this->getCName(), lifeSpan); 173 173 } 174 174 … … 188 188 this->conserve = conserve; 189 189 190 PRINTF(4)("Conserve of %s::%s is %f\n", this->getClass Name(), this->getName(),conserve);190 PRINTF(4)("Conserve of %s::%s is %f\n", this->getClassCName(), this->getCName(), conserve); 191 191 } 192 192 … … 206 206 207 207 PRINTF(4)("Radius of %s::%s at timeSlice %f is %f with a Random of %f\n", 208 this->getClass Name(), this->getName(),lifeCycleTime, radius, randRadius);208 this->getClassCName(), this->getCName(), lifeCycleTime, radius, randRadius); 209 209 } 210 210 … … 237 237 238 238 PRINTF(4)("Color of %s::%s on timeslice %f is r:%f g:%f b:%f a:%f\n", 239 this->getClass Name(), this->getName(), lifeCycleTime, red, green, blue, alpha);239 this->getClassCName(), this->getCName(), lifeCycleTime, red, green, blue, alpha); 240 240 } 241 241 … … 278 278 (*emitter)->updateNode(.1), (*emitter)->updateNode(.1); 279 279 280 PRINTF(4)("Precaching %s::%s %d seconds %d timesPerSecond\n", this->getClass Name(), this->getName(), seconds, ticksPerSecond);280 PRINTF(4)("Precaching %s::%s %d seconds %d timesPerSecond\n", this->getClassCName(), this->getCName(), seconds, ticksPerSecond); 281 281 for (unsigned int i = 0; i < seconds*ticksPerSecond; i++) 282 282 this->tick(1.0/(float)ticksPerSecond); -
branches/proxy/src/lib/physics/physics_connection.cc
r9357 r9371 81 81 } 82 82 else 83 PRINTF(5)("subject::%s\n", this->subject->get Name());83 PRINTF(5)("subject::%s\n", this->subject->getCName()); 84 84 } 85 85 … … 95 95 } 96 96 else 97 PRINTF(5)("field::%s\n", this->field->get Name());97 PRINTF(5)("field::%s\n", this->field->getCName()); 98 98 99 99 } -
branches/proxy/src/lib/shell/shell_command.cc
r9347 r9371 254 254 { 255 255 for (bo = objectList->begin(); bo != objectList->end(); bo++) 256 if ( (*bo)->getName() != NULL &&!nocaseCmp(objectDescriptor, (*bo)->getName(), objectDescriptor.size()))256 if (!nocaseCmp(objectDescriptor, (*bo)->getName(), objectDescriptor.size())) 257 257 boList->push_back(*bo); 258 258 } … … 298 298 for(std::vector<BaseObject*>::const_iterator bo = boList.begin(); bo != boList.end(); ++bo) 299 299 { 300 PRINT(0)("Command '%s' on '%s::%s'\n", sc->get Name(), (*bo)->getClassName(), (*bo)->getName());300 PRINT(0)("Command '%s' on '%s::%s'\n", sc->getCName(), (*bo)->getClassCName(), (*bo)->getCName()); 301 301 (*sc->executor)((*bo), inputSplits.subSet(paramBegin)); 302 302 } … … 331 331 if (this->alias != NULL) 332 332 { 333 PRINTF(2)("not more than one Alias allowed for functions (%s::%s)\n", this->get Name(), this->shellClass->getName());333 PRINTF(2)("not more than one Alias allowed for functions (%s::%s)\n", this->getCName(), this->shellClass->getCName()); 334 334 } 335 335 else … … 369 369 { 370 370 PRINTF(1)("Parameter %d not inside of valid ParameterCount %d of Command %s::%s\n", 371 parameter, this->executor->getParamCount(), this->get Name(), this->shellClass->getName());371 parameter, this->executor->getParamCount(), this->getCName(), this->shellClass->getCName()); 372 372 } 373 373 else … … 385 385 void ShellCommand::help() const 386 386 { 387 PRINT(0)("%s ", this->get Name());387 PRINT(0)("%s ", this->getCName()); 388 388 } 389 389 -
branches/proxy/src/lib/shell/shell_command_class.cc
r7743 r9371 199 199 for (cmdIT = (*classIT)->commandList.begin(); cmdIT != (*classIT)->commandList.end(); cmdIT++) 200 200 { 201 PRINT(0)(" command:'%s' : params:%d: ", (*cmdIT)->get Name(), (*cmdIT)->executor->getParamCount());201 PRINT(0)(" command:'%s' : params:%d: ", (*cmdIT)->getCName(), (*cmdIT)->executor->getParamCount()); 202 202 /// FIXME 203 203 /* for (unsigned int i = 0; i< elem->paramCount; i++) -
branches/proxy/src/lib/shell/shell_completion.cc
r7764 r9371 290 290 for(bo = inputList.begin(); bo != inputList.end(); bo++) 291 291 { 292 if ((*bo)->getName() != NULL && 293 strlen((*bo)->getName()) >= searchLength && 292 if ((*bo)->getName().size() >= searchLength && 294 293 !nocaseCmp((*bo)->getName(), completionBegin, searchLength)) 295 294 { -
branches/proxy/src/lib/sound/ogg_player.cc
r9019 r9371 481 481 if (comment == NULL) 482 482 { 483 PRINTF(2)("Retrieving Comment of %s failed\n", this->get Name());483 PRINTF(2)("Retrieving Comment of %s failed\n", this->getCName()); 484 484 return; 485 485 } -
branches/proxy/src/lib/util/loading/factory.cc
r9357 r9371 117 117 if (factory != Factory::factoryList->end()) 118 118 { 119 PRINTF(2)("Create a new Object of type %s\n", (*factory)->get Name());119 PRINTF(2)("Create a new Object of type %s\n", (*factory)->getCName()); 120 120 return (*factory)->fabricateObject(root); 121 121 } … … 145 145 if (factory != Factory::factoryList->end()) 146 146 { 147 PRINTF(4)("Create a new Object of type %s\n", (*factory)->get Name());147 PRINTF(4)("Create a new Object of type %s\n", (*factory)->getCName()); 148 148 return (*factory)->fabricateObject(NULL); 149 149 } … … 173 173 if (factory != Factory::factoryList->end()) 174 174 { 175 PRINTF(4)("Create a new Object of type %s\n", (*factory)->get Name());175 PRINTF(4)("Create a new Object of type %s\n", (*factory)->getCName()); 176 176 return (*factory)->fabricateObject(NULL); 177 177 } -
branches/proxy/src/lib/util/loading/load_param.cc
r8408 r9371 65 65 ((this->executor->getType() & Executor_NoLoadString) == Executor_NoLoadString))) 66 66 { 67 PRINTF(4)("Loading value '%s' with Parameters '%s' onto: %s::%s\n", this->paramName.c_str(), loadString.c_str(), this->object->getClass Name(), this->object->getName());67 PRINTF(4)("Loading value '%s' with Parameters '%s' onto: %s::%s\n", this->paramName.c_str(), loadString.c_str(), this->object->getClassCName(), this->object->getCName()); 68 68 (*this->executor)(this->object, SubString(loadString, ",", SubString::WhiteSpaces, false, '\\')); 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.