Changeset 1064 for code/trunk/src/orxonox
- Timestamp:
- Apr 14, 2008, 9:39:57 PM (17 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/OrxonoxPlatform.h
r1056 r1064 226 226 //# pragma warning (disable : 4305) 227 227 228 // disable: "<type> needs to have dll-interface to be used by clients'228 // set to level 4: "<type> needs to have dll-interface to be used by clients' 229 229 // Happens on STL member variables which are not public therefore is ok 230 // This has been dealt with in base_properties of the solution since the 231 // warning primarily occurs in library header files (which are mostly 232 // included before OrxonoxPlatform.h is) 233 //# pragma warning (disable : 4251) 230 # pragma warning (disable : 4251) 234 231 235 232 // disable: 'MultiTypeString' : multiple assignment operators specified -
code/trunk/src/orxonox/OrxonoxStableHeaders.h
r1056 r1064 55 55 #include <OgreFrameListener.h> 56 56 #include <OgreLight.h> 57 #include <OgreLog.h> 58 #include <OgreLogManager.h> 57 59 #include <OgreMath.h> 58 60 #include <OgreMatrix3.h> … … 62 64 #include <OgreParticleEmitter.h> 63 65 #include <OgreParticleSystem.h> 64 #include <OgrePlatform.h>65 #include <OgrePrerequisites.h>66 66 #include <OgreQuaternion.h> 67 67 #include <OgreResourceGroupManager.h> … … 81 81 #include <OIS/OIS.h> 82 82 83 /** 84 * Some of the not so stable header files. 85 * It's not very useful to include them anyway.. 86 **/ 83 //----------------------------------------------------------------------- 84 // ORXONOX HEADERS 85 //----------------------------------------------------------------------- 87 86 88 #include "core/CoreIncludes.h" 89 #include "core/BaseObject.h" 90 #include "core/Tickable.h" 91 #include "core/Error.h" 92 #include "core/Loader.h" 93 #include "core/XMLPort.h" 94 95 #include "network/Synchronisable.h" 96 //#include "network/Server.h" 97 //#include "network/Client.h" 98 87 #include "util/Convert.h" 99 88 #include "util/Math.h" 100 #include "util/Sleep.h"101 #include "util/String2Number.h"102 #include "util/Tokenizer.h"103 89 #include "util/Multitype.h" 104 90 #include "util/MultiTypeMath.h" 105 91 #include "util/MultiTypePrimitive.h" 106 92 #include "util/MultiTypeString.h" 107 #include "util/substring.h" 93 #include "util/Sleep.h" 94 #include "util/String.h" 95 #include "util/SubString.h" 108 96 #include "util/XMLIncludes.h" 109 110 97 #include "util/tinyxml/ticpp.h" 111 98 #include "util/tinyxml/tinyxml.h" 112 99 100 #include "core/BaseObject.h" 101 #include "core/CommandExecutor.h" 102 #include "core/CoreIncludes.h" 103 #include "core/ConfigValueIncludes.h" 104 #include "core/Debug.h" 105 #include "core/Executor.h" 106 #include "core/Tickable.h" 107 #include "core/XMLPort.h" 108 109 #include "network/Synchronisable.h" 110 111 #include "OrxonoxPlatform.h" 112 #include "OrxonoxPrereqs.h" 113 #include "tools/Timer.h" 113 114 #include "objects/Model.h" 114 115 #include "objects/WorldEntity.h" -
code/trunk/src/orxonox/objects/Ambient.cc
r1056 r1064 36 36 37 37 #include "util/tinyxml/tinyxml.h" 38 #include "util/ Tokenizer.h"39 #include "util/ String2Number.h"38 #include "util/SubString.h" 39 #include "util/Convert.h" 40 40 #include "util/Math.h" 41 41 #include "core/Debug.h" … … 67 67 if (xmlElem->Attribute("colourvalue")) 68 68 { 69 SubString colourvalues(xmlElem->Attribute("colourvalue"), ','); 69 70 70 std::vector<std::string> colourvalues = tokenize(xmlElem->Attribute("colourvalue"),",");71 71 float r, g, b; 72 String2Number<float>(r, colourvalues[0]);73 String2Number<float>(g, colourvalues[1]);74 String2Number<float>(b, colourvalues[2]);72 convertValue<std::string, float>(&r, colourvalues[0]); 73 convertValue<std::string, float>(&g, colourvalues[1]); 74 convertValue<std::string, float>(&b, colourvalues[2]); 75 75 76 76 this->setAmbientLight(ColourValue(r, g, b)); -
code/trunk/src/orxonox/objects/Camera.cc
r1056 r1064 38 38 39 39 #include "util/tinyxml/tinyxml.h" 40 #include "util/ Tokenizer.h"41 #include "util/ String2Number.h"40 #include "util/Substring.h" 41 #include "util/Convert.h" 42 42 #include "util/Math.h" 43 43 #include "core/Debug.h" … … 73 73 74 74 float x, y, z; 75 std::vector<std::string> posVec = tokenize(xmlElem->Attribute("pos"),",");76 String2Number<float>(x, posVec[0]);77 String2Number<float>(y, posVec[1]);78 String2Number<float>(z, posVec[2]);75 SubString posVec(xmlElem->Attribute("pos"), ','); 76 convertValue<std::string, float>(&x, posVec[0]); 77 convertValue<std::string, float>(&y, posVec[1]); 78 convertValue<std::string, float>(&z, posVec[2]); 79 79 80 80 cam->setPosition(Vector3(x,y,z)); 81 81 82 posVec = tokenize(xmlElem->Attribute("lookat"),",");83 String2Number<float>(x, posVec[0]);84 String2Number<float>(y, posVec[1]);85 String2Number<float>(z, posVec[2]);82 posVec = SubString(xmlElem->Attribute("lookat"), ','); 83 convertValue<std::string, float>(&x, posVec[0]); 84 convertValue<std::string, float>(&y, posVec[1]); 85 convertValue<std::string, float>(&z, posVec[2]); 86 86 87 87 cam->lookAt(Vector3(x,y,z)); … … 93 93 94 94 // FIXME: unused var 95 Ogre::Viewport* vp = GraphicsEngine::getSingleton().getRenderWindow()->addViewport(cam); 95 //Ogre::Viewport* vp = 96 GraphicsEngine::getSingleton().getRenderWindow()->addViewport(cam); 96 97 97 98 -
code/trunk/src/orxonox/objects/Model.cc
r1056 r1064 31 31 32 32 #include "util/tinyxml/tinyxml.h" 33 #include "util/Tokenizer.h"34 #include "util/String2Number.h"35 33 #include "core/CoreIncludes.h" 36 34 #include "GraphicsEngine.h" -
code/trunk/src/orxonox/objects/Skybox.cc
r1056 r1064 35 35 36 36 #include "util/tinyxml/tinyxml.h" 37 //#include "util/Tokenizer.h"38 //#include "util/String2Number.h"39 37 #include "GraphicsEngine.h" 40 38 #include "core/CoreIncludes.h" -
code/trunk/src/orxonox/objects/SpaceShip.cc
r1056 r1064 39 39 40 40 #include "util/tinyxml/tinyxml.h" 41 #include "util/ String2Number.h"41 #include "util/Convert.h" 42 42 #include "util/Math.h" 43 43 #include "core/CoreIncludes.h" … … 259 259 std::string rdStr = xmlElem->Attribute("rotDamp"); 260 260 261 String2Number<float>(this->maxSpeed_, msStr);262 String2Number<float>(this->maxSideAndBackSpeed_, msabsStr);263 String2Number<float>(this->maxRotation_, mrStr);264 String2Number<float>(this->translationAcceleration_, taStr);265 String2Number<float>(this->rotationAcceleration_, raStr);266 String2Number<float>(this->translationDamping_, tdStr);267 String2Number<float>(this->rotationDamping_, rdStr);261 convertValue<std::string, float>(&this->maxSpeed_, msStr); 262 convertValue<std::string, float>(&this->maxSideAndBackSpeed_, msabsStr); 263 convertValue<std::string, float>(&this->maxRotation_, mrStr); 264 convertValue<std::string, float>(&this->translationAcceleration_, taStr); 265 convertValue<std::string, float>(&this->rotationAcceleration_, raStr); 266 convertValue<std::string, float>(&this->translationDamping_, tdStr); 267 convertValue<std::string, float>(&this->rotationDamping_, rdStr); 268 268 269 269 this->maxRotationRadian_ = Radian(this->maxRotation_); … … 458 458 459 459 OIS::Keyboard* mKeyboard = InputManager::getSingleton().getKeyboard(); 460 OIS::Mouse* mMouse = InputManager::getSingleton().getMouse(); 460 //FIXME: variable never used 461 //OIS::Mouse* mMouse = InputManager::getSingleton().getMouse(); 461 462 462 463 -
code/trunk/src/orxonox/objects/WorldEntity.cc
r1056 r1064 34 34 35 35 #include "util/tinyxml/tinyxml.h" 36 #include "util/Tokenizer.h" 37 #include "util/String2Number.h" 36 #include "util/SubString.h" 38 37 #include "core/CoreIncludes.h" 39 38 #include "GraphicsEngine.h"
Note: See TracChangeset
for help on using the changeset viewer.