Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2007, 11:33:10 PM (16 years ago)
Author:
rgrieder
Message:
  • the master has spoken…
  • misc/String.h is not anymore..
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/Camera.cc

    r708 r715  
     1#include <string>
     2
    13#include <OgreSceneManager.h>
    24#include <OgreSceneNode.h>
     
    911#include "misc/String2Number.h"
    1012#include "misc/Vector3.h"
    11 #include "misc/String.h"
    1213#include "../core/Debug.h"
    1314#include "../core/CoreIncludes.h"
     
    3839        //    <Camera name="Camera" pos="0,0,-250" lookat="0,0,0" />
    3940
    40         String name = xmlElem->Attribute("name");
    41         String pos = xmlElem->Attribute("pos");
    42         String lookat = xmlElem->Attribute("lookat");
     41        std::string name = xmlElem->Attribute("name");
     42        std::string pos = xmlElem->Attribute("pos");
     43        std::string lookat = xmlElem->Attribute("lookat");
    4344
    4445        Ogre::Camera *cam = mgr->createCamera(name);
    4546
    4647        float x, y, z;
    47         std::vector<String> posVec = tokenize(xmlElem->Attribute("pos"),",");
     48        std::vector<std::string> posVec = tokenize(xmlElem->Attribute("pos"),",");
    4849        String2Number<float>(x, posVec[0]);
    4950        String2Number<float>(y, posVec[1]);
     
    5960        cam->lookAt(Vector3(x,y,z));
    6061
    61         String node = xmlElem->Attribute("node");
     62        std::string node = xmlElem->Attribute("node");
    6263
    6364        Ogre::SceneNode* sceneNode = (Ogre::SceneNode*)mgr->getRootSceneNode()->createChildSceneNode(node); //getChild(node);
Note: See TracChangeset for help on using the changeset viewer.