Changeset 3265 for code/branches/core4/src/orxonox
- Timestamp:
- Jul 1, 2009, 1:24:30 PM (15 years ago)
- Location:
- code/branches/core4/src/orxonox
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/objects/gametypes/UnderAttack.cc
r3196 r3265 173 173 if ( gameTime_ <= timesequence_ && gameTime_ > 0) 174 174 { 175 std::string message = convertToString(timesequence_) + " seconds left!";175 std::string message = multi_cast<std::string>(timesequence_) + " seconds left!"; 176 176 /* 177 177 COUT(0) << message << std::endl; -
code/branches/core4/src/orxonox/objects/weaponsystem/projectiles/LightningGunProjectile.cc
r3196 r3265 56 56 this->materialBase_ = material; 57 57 58 BillboardProjectile::setMaterial(material + convertToString(this->textureIndex_));58 BillboardProjectile::setMaterial(material + multi_cast<std::string>(this->textureIndex_)); 59 59 } 60 60 -
code/branches/core4/src/orxonox/overlays/OrxonoxOverlay.cc
r3250 r3265 72 72 // create the Ogre::Overlay 73 73 overlay_ = Ogre::OverlayManager::getSingleton().create("OrxonoxOverlay_overlay_" 74 + convertToString(hudOverlayCounter_s++));74 + multi_cast<std::string>(hudOverlayCounter_s++)); 75 75 76 76 // create background panel (can be used to show any picture) 77 77 this->background_ = static_cast<Ogre::PanelOverlayElement*>( 78 78 Ogre::OverlayManager::getSingleton().createOverlayElement("Panel", 79 "OrxonoxOverlay_background_" + convertToString(hudOverlayCounter_s++)));79 "OrxonoxOverlay_background_" + multi_cast<std::string>(hudOverlayCounter_s++))); 80 80 this->overlay_->add2D(this->background_); 81 81 -
code/branches/core4/src/orxonox/overlays/console/InGameConsole.cc
r3262 r3265 220 220 for (int i = 0; i < LINES; i++) 221 221 { 222 this->consoleOverlayTextAreas_[i] = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + convertToString(i)));222 this->consoleOverlayTextAreas_[i] = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + multi_cast<std::string>(i))); 223 223 this->consoleOverlayTextAreas_[i]->setMetricsMode(Ogre::GMM_PIXELS); 224 224 this->consoleOverlayTextAreas_[i]->setFontName("MonofurConsole"); -
code/branches/core4/src/orxonox/overlays/hud/GametypeStatus.cc
r3239 r3265 70 70 { 71 71 if (gtinfo->isStartCountdownRunning()) 72 this->setCaption( convertToString((int)ceil(gtinfo->getStartCountdown())));72 this->setCaption(multi_cast<std::string>((int)ceil(gtinfo->getStartCountdown()))); 73 73 else if (ce->isA(Class(Spectator))) 74 74 this->setCaption("Press [Fire] to respawn"); -
code/branches/core4/src/orxonox/overlays/hud/HUDBar.cc
r3250 r3265 72 72 73 73 // create new material 74 std::string materialname = "barmaterial" + getConvertedValue<unsigned int,std::string>(materialcount_s++);74 std::string materialname = "barmaterial" + multi_cast<std::string>(materialcount_s++); 75 75 Ogre::MaterialPtr material = (Ogre::MaterialPtr)Ogre::MaterialManager::getSingleton().create(materialname, "General"); 76 76 material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA); -
code/branches/core4/src/orxonox/overlays/hud/HUDHealthBar.cc
r3239 r3265 83 83 { 84 84 this->setValue(this->owner_->getHealth() / this->owner_->getInitialHealth()); 85 this->textoverlay_->setCaption( convertToString((int)this->owner_->getHealth()));85 this->textoverlay_->setCaption(multi_cast<std::string>((int)this->owner_->getHealth())); 86 86 } 87 87 -
code/branches/core4/src/orxonox/overlays/hud/HUDNavigation.cc
r3250 r3265 142 142 // set text 143 143 int dist = (int) getDist2Focus(); 144 navText_->setCaption( convertToString(dist));145 float textLength = convertToString(dist).size() * navText_->getCharHeight() * 0.3;144 navText_->setCaption(multi_cast<std::string>(dist)); 145 float textLength = multi_cast<std::string>(dist).size() * navText_->getCharHeight() * 0.3; 146 146 147 147 /* -
code/branches/core4/src/orxonox/overlays/hud/HUDTimer.cc
r3239 r3265 59 59 if (gametype->getTimerIsActive()) 60 60 { 61 this->setCaption( convertToString((int)gametype->getTime() + 1));61 this->setCaption(multi_cast<std::string>((int)gametype->getTime() + 1)); 62 62 } 63 63 } -
code/branches/core4/src/orxonox/overlays/hud/PongScore.cc
r3239 r3265 83 83 { 84 84 name1 = player1->getName(); 85 score1 = convertToString(this->owner_->getScore(player1));85 score1 = multi_cast<std::string>(this->owner_->getScore(player1)); 86 86 } 87 87 … … 89 89 { 90 90 name2 = player2->getName(); 91 score2 = convertToString(this->owner_->getScore(player2));91 score2 = multi_cast<std::string>(this->owner_->getScore(player2)); 92 92 } 93 93 -
code/branches/core4/src/orxonox/overlays/hud/TeamBaseMatchScore.cc
r3239 r3265 71 71 if (this->owner_) 72 72 { 73 std::string bases1 = "(" + convertToString(this->owner_->getTeamBases(0)) + ")";74 std::string bases2 = "(" + convertToString(this->owner_->getTeamBases(1)) + ")";73 std::string bases1 = "(" + multi_cast<std::string>(this->owner_->getTeamBases(0)) + ")"; 74 std::string bases2 = "(" + multi_cast<std::string>(this->owner_->getTeamBases(1)) + ")"; 75 75 76 std::string score1 = convertToString(this->owner_->getTeamPoints(0));77 std::string score2 = convertToString(this->owner_->getTeamPoints(1));76 std::string score1 = multi_cast<std::string>(this->owner_->getTeamPoints(0)); 77 std::string score2 = multi_cast<std::string>(this->owner_->getTeamPoints(1)); 78 78 79 79 std::string output1; -
code/branches/core4/src/orxonox/overlays/stats/CreateLines.cc
r3196 r3265 99 99 // while (textColumns_.size() < numberOfColumns) 100 100 // { 101 // Ogre::TextAreaOverlayElement* tempTextArea = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "StatsLineTextArea" + getName() + convertToString(lineIndex) + convertToString(colIndex)));101 // Ogre::TextAreaOverlayElement* tempTextArea = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "StatsLineTextArea" + getName() + multi_cast<std::string>(lineIndex) + multi_cast<std::string>(colIndex))); 102 102 // textColumns_.push_back(tempTextArea); 103 103 // this->background_->addChild(tempTextArea); -
code/branches/core4/src/orxonox/tools/BillboardSet.cc
r3250 r3265 74 74 if (GameMode::showsGraphics()) 75 75 { 76 this->billboardSet_ = scenemanager->createBillboardSet("Billboard" + convertToString(BillboardSet::billboardSetCounter_s++), count);76 this->billboardSet_ = scenemanager->createBillboardSet("Billboard" + multi_cast<std::string>(BillboardSet::billboardSetCounter_s++), count); 77 77 this->billboardSet_->createBillboard(position); 78 78 this->billboardSet_->setMaterialName(file); … … 97 97 if (GameMode::showsGraphics()) 98 98 { 99 this->billboardSet_ = scenemanager->createBillboardSet("Billboard" + convertToString(BillboardSet::billboardSetCounter_s++), count);99 this->billboardSet_ = scenemanager->createBillboardSet("Billboard" + multi_cast<std::string>(BillboardSet::billboardSetCounter_s++), count); 100 100 this->billboardSet_->createBillboard(position, colour); 101 101 this->billboardSet_->setMaterialName(file); -
code/branches/core4/src/orxonox/tools/Mesh.cc
r3250 r3265 68 68 try 69 69 { 70 this->entity_ = this->scenemanager_->createEntity("Mesh" + convertToString(Mesh::meshCounter_s++), meshsource);70 this->entity_ = this->scenemanager_->createEntity("Mesh" + multi_cast<std::string>(Mesh::meshCounter_s++), meshsource); 71 71 this->entity_->setCastShadows(this->bCastShadows_); 72 72 -
code/branches/core4/src/orxonox/tools/ParticleInterface.cc
r3257 r3265 69 69 try 70 70 { 71 this->particleSystem_ = this->scenemanager_->createParticleSystem("particles" + getConvertedValue<unsigned int,std::string>(ParticleInterface::counter_s++), templateName);71 this->particleSystem_ = this->scenemanager_->createParticleSystem("particles" + multi_cast<std::string>(ParticleInterface::counter_s++), templateName); 72 72 this->setSpeedFactor(1.0f); 73 73 } -
code/branches/core4/src/orxonox/tools/TextureGenerator.cc
r3196 r3265 72 72 if (it == colourMap.end()) 73 73 { 74 std::string materialName = textureName + "_Material_" + convertToString(materialCount_s++);74 std::string materialName = textureName + "_Material_" + multi_cast<std::string>(materialCount_s++); 75 75 Ogre::MaterialPtr material = (Ogre::MaterialPtr)Ogre::MaterialManager::getSingleton().create(materialName, "General"); 76 76 material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA);
Note: See TracChangeset
for help on using the changeset viewer.