- Timestamp:
- Jul 20, 2006, 11:08:16 PM (19 years ago)
- Location:
- branches/proxy/src
- Files:
-
- 51 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 } -
branches/proxy/src/story_entities/game_world_data.cc
r9357 r9371 212 212 BaseObject* created = Factory::fabricate(element); 213 213 if( created != NULL ) 214 PRINTF(4)("Created a %s: %s\n", created->getClass Name(), created->getName());214 PRINTF(4)("Created a %s: %s\n", created->getClassCName(), created->getCName()); 215 215 216 216 //todo do this more elegant -
branches/proxy/src/story_entities/multi_player_world_data.cc
r9357 r9371 129 129 BaseObject* created = Factory::fabricate(element); 130 130 if( created != NULL ) 131 printf("Created a Spawning Point %s: %s\n", created->getClass Name(), created->getName());131 printf("Created a Spawning Point %s: %s\n", created->getClassCName(), created->getCName()); 132 132 133 133 element = element->NextSiblingElement(); … … 155 155 BaseObject* created = Factory::fabricate(element); 156 156 if( created != NULL ) 157 PRINTF(1)("Created a %s: %s (0x%8x) from %s\n", created->getClass Name(), created->getName(), created->getLeafClassID(), element->Value());157 PRINTF(1)("Created a %s: %s (0x%8x) from %s\n", created->getClassCName(), created->getCName(), created->getLeafClassID(), element->Value()); 158 158 else 159 159 PRINTF(1)("NetworkWorld: could not create this entity\n"); … … 186 186 187 187 if( created != NULL ) 188 PRINTF(1)("Created a %s: %s (0x%8x) from %s\n", created->getClass Name(), created->getName(), created->getLeafClassID(), element->Value());188 PRINTF(1)("Created a %s: %s (0x%8x) from %s\n", created->getClassCName(), created->getCName(), created->getLeafClassID(), element->Value()); 189 189 else 190 190 PRINTF(1)("NetworkWorld: could not create this entity\n"); … … 323 323 { 324 324 Playable* p = dynamic_cast<Playable*>(*entity); 325 PRINTF(0)("Got a playable, class: %s, name: %s, uid: %i\n", (*entity)->getClass Name(), (*entity)->getName(), p->getUniqueID());325 PRINTF(0)("Got a playable, class: %s, name: %s, uid: %i\n", (*entity)->getClassCName(), (*entity)->getCName(), p->getUniqueID()); 326 326 } 327 327 … … 346 346 347 347 PNode* cam = State::getCameraTargetNode(); 348 PRINT(0)("Camera has target - class: %s, name: %s, uid: %i\n", cam->getClass Name(), cam->getName(), cam->getUniqueID());348 PRINT(0)("Camera has target - class: %s, name: %s, uid: %i\n", cam->getClassCName(), cam->getCName(), cam->getUniqueID()); 349 349 350 350 PRINT(0)("==================================================\n"); -
branches/proxy/src/util/fast_factory.cc
r9357 r9371 79 79 void FastFactory::registerFastFactory(FastFactory* fastFactory) 80 80 { 81 PRINTF(4)("Registered FastFactory for '%s'\n", fastFactory->get Name());81 PRINTF(4)("Registered FastFactory for '%s'\n", fastFactory->getCName()); 82 82 83 83 if( FastFactory::first == NULL) … … 128 128 while (tmpFac != NULL) 129 129 { 130 if (fastFactoryName == tmpFac->get Name())130 if (fastFactoryName == tmpFac->getCName()) 131 131 return tmpFac; 132 132 tmpFac = tmpFac->next; … … 145 145 while (tmpFac != NULL) 146 146 { 147 PRINTF(4)("DELETEING ALL OF %s\n",tmpFac->get Name());147 PRINTF(4)("DELETEING ALL OF %s\n",tmpFac->getCName()); 148 148 tmpFac->flush(hardFLUSH); 149 149 tmpFac = tmpFac->next; … … 202 202 BaseObject* FastFactory::resurrect() 203 203 { 204 PRINTF(4)("Resurecting Object of type %s\n", this->get Name());204 PRINTF(4)("Resurecting Object of type %s\n", this->getCName()); 205 205 if (unlikely(this->deadList == NULL)) 206 206 { 207 207 PRINTF(3)("The deadList of Class %s is empty, this may be either because it has not been filled yet, or the cache is to small.\n" \ 208 208 " Developer: try increasing the count with FastFactory::prepare(contHigher than actual)\n" \ 209 " Fabricating a new %s\n", this->get Name(), this->getName());209 " Fabricating a new %s\n", this->getCName(), this->getCName()); 210 210 this->fabricate(); 211 211 return this->resurrect(); -
branches/proxy/src/util/multiplayer_team_deathmatch.cc
r9369 r9371 723 723 int victimUserId = victim->getOwner(); 724 724 725 PRINTF(0)("%d %d %x %x %s %s\n", killerUserId, victimUserId, killer, victim, killer->getClass Name(), victim->getClassName());725 PRINTF(0)("%d %d %x %x %s %s\n", killerUserId, victimUserId, killer, victim, killer->getClassCName(), victim->getClassCName()); 726 726 727 727 PlayerStats & victimStats = *PlayerStats::getStats( victimUserId ); -
branches/proxy/src/util/object_manager.cc
r9357 r9371 140 140 for (entity = this->objectLists[omList].begin(); entity != this->objectLists[omList].end(); entity++) 141 141 { 142 PRINT(0)(" | %s::%s\n",(*entity)->getClass Name(), (*entity)->getName());142 PRINT(0)(" | %s::%s\n",(*entity)->getClassCName(), (*entity)->getCName()); 143 143 } 144 144 } -
branches/proxy/src/world_entities/creatures/fps_player.cc
r9347 r9371 299 299 if ( victim ) 300 300 { 301 PRINTF(0)("FIRE: hit %s\n", victim->getClass Name());301 PRINTF(0)("FIRE: hit %s\n", victim->getClassCName()); 302 302 victim->hit( 20, this ); 303 303 } -
branches/proxy/src/world_entities/playable.cc
r9347 r9371 148 148 if (weapon != NULL) 149 149 PRINTF(2)("Unable to add Weapon (%s::%s) to %s::%s\n", 150 weapon->getClass Name(), weapon->getName(), this->getClassName(), this->getName());150 weapon->getClassCName(), weapon->getCName(), this->getClassCName(), this->getCName()); 151 151 else 152 152 PRINTF(2)("No weapon defined\n"); -
branches/proxy/src/world_entities/power_ups/power_up.cc
r9357 r9371 85 85 if (this->pickupBuffer != NULL) 86 86 { 87 PRINTF(4)("Loaded sound %s to Pickup: %s.\n", pickupSound.c_str(), this->get Name());87 PRINTF(4)("Loaded sound %s to Pickup: %s.\n", pickupSound.c_str(), this->getCName()); 88 88 } 89 89 else 90 90 { 91 PRINTF(2)("Failed to load sound %s to pickup %s.\n.", pickupSound.c_str(), this->get Name());91 PRINTF(2)("Failed to load sound %s to pickup %s.\n.", pickupSound.c_str(), this->getCName()); 92 92 } 93 93 } … … 106 106 if (this->respawnBuffer != NULL) 107 107 { 108 PRINTF(4)("Loaded sound %s to Pickup: %s.\n", respawnSound.c_str(), this->get Name());108 PRINTF(4)("Loaded sound %s to Pickup: %s.\n", respawnSound.c_str(), this->getCName()); 109 109 } 110 110 else 111 111 { 112 PRINTF(2)("Failed to load sound %s to respawn %s.\n.", respawnSound.c_str(), this->get Name());112 PRINTF(2)("Failed to load sound %s to respawn %s.\n.", respawnSound.c_str(), this->getCName()); 113 113 } 114 114 } -
branches/proxy/src/world_entities/projectiles/projectile.cc
r9235 r9371 75 75 if (this->explosionBuffer != NULL) 76 76 { 77 PRINTF(4)("Loaded sound %s to Pickup: %s.\n", explosionSound.c_str(), this->get Name());77 PRINTF(4)("Loaded sound %s to Pickup: %s.\n", explosionSound.c_str(), this->getCName()); 78 78 } 79 79 else 80 80 { 81 PRINTF(2)("Failed to load sound %s to explosion %s.\n.", explosionSound.c_str(), this->get Name());81 PRINTF(2)("Failed to load sound %s to explosion %s.\n.", explosionSound.c_str(), this->getCName()); 82 82 } 83 83 } … … 97 97 if (this->engineBuffer != NULL) 98 98 { 99 PRINTF(4)("Loaded sound %s to Pickup: %s.\n", engineSound.c_str(), this->get Name());99 PRINTF(4)("Loaded sound %s to Pickup: %s.\n", engineSound.c_str(), this->getCName()); 100 100 } 101 101 else 102 102 { 103 PRINTF(2)("Failed to load sound %s to engine %s.\n.", engineSound.c_str(), this->get Name());103 PRINTF(2)("Failed to load sound %s to engine %s.\n.", engineSound.c_str(), this->getCName()); 104 104 } 105 105 } -
branches/proxy/src/world_entities/script_trigger.cc
r9298 r9371 63 63 addToScript = false; 64 64 this->activeOnCreation = false; 65 65 66 66 if(root != NULL) 67 67 { 68 68 69 69 loadParams(root); 70 70 71 71 if(addToScript && scriptIsOk) 72 72 { 73 73 script->addObject( "ScriptTrigger", this->getName()); 74 74 } 75 76 } 77 75 76 } 77 78 78 } 79 79 80 80 /** 81 81 * Deletes the ScriptTrigger. 82 * 82 * 83 83 */ 84 84 ScriptTrigger::~ScriptTrigger() … … 147 147 else 148 148 { 149 PRINTF(2)("Target %s for %s::%s does not Exist\n", target.c_str(), this->getClass Name(), this->getName());149 PRINTF(2)("Target %s for %s::%s does not Exist\n", target.c_str(), this->getClassCName(), this->getCName()); 150 150 } 151 151 } … … 153 153 /** 154 154 * Sets the parent of the trigger. 155 * @param parent The parrent. 155 * @param parent The parrent. 156 156 */ 157 157 void ScriptTrigger::setTriggerParent(const std::string& parent) … … 166 166 else 167 167 { 168 PRINTF(2)("Parent %s for %s::%s does not Exist\n", parent.c_str(), this->getClass Name(), this->getName());168 PRINTF(2)("Parent %s for %s::%s does not Exist\n", parent.c_str(), this->getClassCName(), this->getCName()); 169 169 } 170 170 } … … 179 179 return; 180 180 } 181 181 182 182 if(triggerRemains && scriptCalled) 183 183 { … … 185 185 return; 186 186 } 187 187 188 188 if( !invert && this->distance(target) < radius) 189 189 { … … 191 191 scriptCalled = true; 192 192 return; 193 193 194 194 } 195 195 else if( invert && this->distance(target) > radius) 196 196 { 197 executeAction(timestep); 197 executeAction(timestep); 198 198 scriptCalled = true; 199 199 return; … … 207 207 void ScriptTrigger::executeAction(float timestep) 208 208 { 209 209 210 210 if(scriptIsOk) 211 211 { … … 213 213 if(!(script->selectFunction(this->functionName,returnCount)) ) 214 214 PRINT(1)("Error ScriptTrigger: Selection of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 215 215 216 216 script->pushParam( timestep, this->functionName); 217 217 218 218 if( !(script->executeFunction()) ) 219 219 PRINT(1)("Error ScriptTrigger: Execution of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 220 220 221 221 scriptFinished = script->getReturnedBool(); 222 222 } 223 224 223 224 225 225 } 226 226 … … 268 268 float retf = script->getReturnedFloat(); 269 269 printf("main returned %f\n",retf); 270 270 271 271 272 272 printf("-------------------------- top of the stack:%i\n",lua_gettop(script->getLuaState())); -
branches/proxy/src/world_entities/space_ships/space_ship.cc
r9357 r9371 319 319 } 320 320 } 321 PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClass Name(), entity->getClassName(), location.x, location.y, location.z);321 PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 322 322 } 323 323 -
branches/proxy/src/world_entities/space_ships/spacecraft_2d.cc
r9298 r9371 324 324 325 325 default: 326 PRINTF(2)("Playmode %s Not Implemented in %s\n", Playable::playmodeToString(this->getPlaymode()).c_str(), this->getClass Name());326 PRINTF(2)("Playmode %s Not Implemented in %s\n", Playable::playmodeToString(this->getPlaymode()).c_str(), this->getClassCName()); 327 327 } 328 328 } … … 474 474 475 475 default: 476 PRINTF(2)("Playmode %s Not Implemented in %s\n", Playable::playmodeToString(this->getPlaymode()).c_str(), this->getClass Name());476 PRINTF(2)("Playmode %s Not Implemented in %s\n", Playable::playmodeToString(this->getPlaymode()).c_str(), this->getClassCName()); 477 477 } 478 478 } -
branches/proxy/src/world_entities/spawning_point.cc
r9365 r9371 123 123 return; 124 124 125 PRINTF(0)("Spawningpoint spawns Entity (%s)\n", entity->getClass Name());125 PRINTF(0)("Spawningpoint spawns Entity (%s)\n", entity->getClassCName()); 126 126 127 127 … … 203 203 void SpawningPoint::sendRespawnMessage( int uniqueId ) 204 204 { 205 #warning this by e array is not beendeleted according to valginrd205 #warning this byte array is not being deleted according to valginrd 206 206 byte * buf = new byte[2*INTSIZE]; 207 207 -
branches/proxy/src/world_entities/weapons/aiming_system.cc
r9357 r9371 101 101 } 102 102 103 PRINTF(0)("entity: %s\n", nearestEntity->getClass Name());103 PRINTF(0)("entity: %s\n", nearestEntity->getClassCName()); 104 104 return nearestEntity; 105 105 } -
branches/proxy/src/world_entities/weapons/weapon.cc
r9357 r9371 199 199 else 200 200 { 201 PRINTF(1)("Projectile %s does not exist for weapon %s\n", projectile.c_str(), this->get Name());201 PRINTF(1)("Projectile %s does not exist for weapon %s\n", projectile.c_str(), this->getCName()); 202 202 } 203 203 } … … 213 213 projectileFactory->prepare(count); 214 214 else 215 PRINTF(2)("unable to create %d projectile for Weapon %s (%s)\n", count, this->getName(), this->getClassName());215 PRINTF(2)("unable to create %d projectile for Weapon %s::%s\n", count, this->getClassCName(), this->getCName()); 216 216 } 217 217 … … 234 234 else 235 235 { 236 PRINTF(2)("No projectile defined for Weapon %s(%s) can't return any\n", this->get Name(), this->getClassName());236 PRINTF(2)("No projectile defined for Weapon %s(%s) can't return any\n", this->getCName(), this->getClassCName()); 237 237 return NULL; 238 238 } … … 442 442 this->updateWidgets(); 443 443 // activate 444 PRINTF(4)("Activating the Weapon %s\n", this->get Name());444 PRINTF(4)("Activating the Weapon %s\n", this->getCName()); 445 445 this->activate(); 446 446 // setting up for next action … … 458 458 // if (this->currentState != WS_INACTIVE) 459 459 { 460 PRINTF(4)("Deactivating the Weapon %s\n", this->get Name());460 PRINTF(4)("Deactivating the Weapon %s\n", this->getCName()); 461 461 // play Sound 462 462 if (this->soundBuffers[WA_DEACTIVATE] != NULL) … … 527 527 bool Weapon::reloadW() 528 528 { 529 PRINTF(4)("Reloading Weapon %s\n", this->get Name());529 PRINTF(4)("Reloading Weapon %s\n", this->getCName()); 530 530 if (this->ammoContainer.get() != NULL && 531 531 unlikely(this->energy + this->ammoContainer->getStoredEnergy() < this->minCharge)) … … 632 632 void Weapon::debug() const 633 633 { 634 PRINT(0)("Weapon-Debug %s, state: %s (duration: %fs), nextAction: %s\n", this->get Name(), Weapon::stateToChar(this->currentState), this->stateDuration, Weapon::actionToChar(requestedAction));634 PRINT(0)("Weapon-Debug %s, state: %s (duration: %fs), nextAction: %s\n", this->getCName(), Weapon::stateToChar(this->currentState), this->stateDuration, Weapon::actionToChar(requestedAction)); 635 635 PRINT(0)("Energy: max: %f; current: %f; chargeMin: %f, chargeMax %f\n", 636 636 this->energyMax, this->energy, this->minCharge, this->maxCharge); -
branches/proxy/src/world_entities/weapons/weapon_manager.cc
r8844 r9371 83 83 // NAMING 84 84 char* tmpName; 85 if ( this->getName())86 { 87 tmpName = new char[ strlen(this->getName()) + 10];88 sprintf(tmpName, "%s_slot%d", this->get Name(), i);85 if (!this->getName().empty()) 86 { 87 tmpName = new char[this->getName().size() + 10]; 88 sprintf(tmpName, "%s_slot%d", this->getCName(), i); 89 89 } 90 90 else … … 265 265 if (configID > 0 && slotID > 0 && this->configs[configID][slotID] != NULL) 266 266 { 267 PRINTF(3)("Weapon-slot %d/%d of %s already poulated, remove weapon (%s::%s) first\n", configID, slotID, this->get Name(), weapon->getClassName(), weapon->getName());267 PRINTF(3)("Weapon-slot %d/%d of %s already poulated, remove weapon (%s::%s) first\n", configID, slotID, this->getCName(), weapon->getClassCName(), weapon->getCName()); 268 268 return false; 269 269 } … … 302 302 weapon->setDefaultTarget(this->crosshair); 303 303 } 304 PRINTF(3)("Added a new Weapon (%s::%s) to the WeaponManager: config %i/ slot %i\n", weapon->getClass Name(), weapon->getName(), configID, slotID);304 PRINTF(3)("Added a new Weapon (%s::%s) to the WeaponManager: config %i/ slot %i\n", weapon->getClassCName(), weapon->getCName(), configID, slotID); 305 305 return true; 306 306 } … … 555 555 { 556 556 if (this->configs[i][j] != NULL) 557 PRINT(3)("Slot %d loaded a %s\n", j, this->configs[i][j]->getClass Name());558 } 559 } 560 } 557 PRINT(3)("Slot %d loaded a %s\n", j, this->configs[i][j]->getClassCName()); 558 } 559 } 560 } -
branches/proxy/src/world_entities/world_entity.cc
r9235 r9371 414 414 bool WorldEntity::registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB) 415 415 { 416 PRINTF(5)("registering collision of type: %s vs %s\n", entityA->getClass Name(), entityB->getClassName());416 PRINTF(5)("registering collision of type: %s vs %s\n", entityA->getClassCName(), entityB->getClassCName()); 417 417 // is there any handler listening? 418 418 if( !this->bReactive) … … 518 518 void WorldEntity::collidesWithGround(const Vector& location) 519 519 { 520 PRINTF(0)("BSP_GROUND: %s collides \n", this->getClass Name() );520 PRINTF(0)("BSP_GROUND: %s collides \n", this->getClassCName() ); 521 521 } 522 522 … … 676 676 if (this->health > this->healthMax) 677 677 { 678 PRINTF(3)("new maxHealth is bigger as the old health. Did you really intend to do this for (%s::%s)\n", this->getClass Name(), this->getName());678 PRINTF(3)("new maxHealth is bigger as the old health. Did you really intend to do this for (%s::%s)\n", this->getClassCName(), this->getCName()); 679 679 this->health = this->healthMax; 680 680 } … … 699 699 } 700 700 else 701 PRINTF(3)("Allready created the HealthWidget for %s::%s\n", this->getClass Name(), this->getName());701 PRINTF(3)("Allready created the HealthWidget for %s::%s\n", this->getClassCName(), this->getCName()); 702 702 } 703 703 … … 745 745 this->decreaseHealth(damage); 746 746 747 PRINTF(5)("Hit me: %s now only %f/%f health\n", this->getClassName(), this->getHealth(), this->getHealthMax());747 PRINTF(5)("Hit me: %s::%s now only %f/%f health\n", this->getClassCName(), this->getCName(), this->getHealth(), this->getHealthMax()); 748 748 749 749 if( this->getHealth() > 0) … … 811 811 void WorldEntity::debugEntity() const 812 812 { 813 PRINT(0)("WorldEntity %s::%s (DEBUG)\n", this->getClass Name(), this->getName());813 PRINT(0)("WorldEntity %s::%s (DEBUG)\n", this->getClassCName(), this->getCName()); 814 814 this->debugNode(); 815 815 PRINT(0)("List: %s ; ModelCount %d - ", ObjectManager::OMListToString(this->objectListNumber) , this->models.size()); … … 817 817 { 818 818 if (models[i] != NULL) 819 PRINT(0)(" : %d:%s", i, this->models[i]->get Name());819 PRINT(0)(" : %d:%s", i, this->models[i]->getCName()); 820 820 } 821 821 PRINT(0)("\n");
Note: See TracChangeset
for help on using the changeset viewer.