Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2007, 11:33:10 PM (17 years ago)
Author:
rgrieder
Message:
  • the master has spoken…
  • misc/String.h is not anymore..
Location:
code/branches/FICN/src/orxonox/objects
Files:
16 edited

Legend:

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

    r708 r715  
    2727
    2828#include <vector>
     29#include <string>
    2930
    3031#include <OgreSceneManager.h>
     
    3435#include "misc/String2Number.h"
    3536#include "misc/ColourValue.h"
    36 #include "misc/String.h"
    3737#include "../core/Debug.h"
    3838#include "../core/CoreIncludes.h"
     
    6161        {
    6262
    63                 std::vector<String> colourvalues = tokenize(xmlElem->Attribute("colourvalue"),",");
     63                std::vector<std::string> colourvalues = tokenize(xmlElem->Attribute("colourvalue"),",");
    6464                float r, g, b;
    6565                String2Number<float>(r, colourvalues[0]);
  • code/branches/FICN/src/orxonox/objects/BillboardSet.cc

    r708 r715  
    4545    }
    4646
    47     void BillboardSet::setBillboardSet(const String& file, const ColourValue& colour, int count, const Vector3& position)
     47    void BillboardSet::setBillboardSet(const std::string& file, const ColourValue& colour, int count, const Vector3& position)
    4848    {
    4949        std::ostringstream name;
  • code/branches/FICN/src/orxonox/objects/BillboardSet.h

    r708 r715  
    11#ifndef _BillboardSet_H__
    22#define _BillboardSet_H__
     3
     4#include <string>
    35
    46#include <OgreBillboardSet.h>
     
    68#include "../OrxonoxPrereqs.h"
    79
    8 #include "misc/String.h"
    910#include "../core/CoreIncludes.h"
    1011#include "misc/ColourValue.h"
     
    1819            BillboardSet();
    1920            ~BillboardSet();
    20             void setBillboardSet(const String& file, const ColourValue& colour = ColourValue(1.0, 1.0, 1.0), int count = 1, const Vector3& position = Vector3::ZERO);
     21            void setBillboardSet(const std::string& file, const ColourValue& colour = ColourValue(1.0, 1.0, 1.0), int count = 1, const Vector3& position = Vector3::ZERO);
    2122
    2223            inline Ogre::BillboardSet* getBillboardSet()
    2324                { return this->billboardSet_; }
    2425
    25             inline const String& getName() const
     26            inline const std::string& getName() const
    2627                { return this->billboardSet_->getName(); }
    2728
  • 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);
  • code/branches/FICN/src/orxonox/objects/Fighter.cc

    r708 r715  
    2626 */
    2727
     28#include <string>
     29
    2830#include <OgreCamera.h>
    2931#include <OgreRenderWindow.h>
     
    3335#include "tinyxml/tinyxml.h"
    3436#include "misc/String2Number.h"
    35 #include "misc/String.h"
    3637#include "../core/CoreIncludes.h"
    3738#include "../Orxonox.h"
     
    174175        if (xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft"))
    175176        {
    176             String forwardStr = xmlElem->Attribute("forward");
    177             String rotateupdownStr = xmlElem->Attribute("rotateupdown");
    178             String rotaterightleftStr = xmlElem->Attribute("rotaterightleft");
    179             String looprightleftStr = xmlElem->Attribute("looprightleft");
     177            std::string forwardStr = xmlElem->Attribute("forward");
     178            std::string rotateupdownStr = xmlElem->Attribute("rotateupdown");
     179            std::string rotaterightleftStr = xmlElem->Attribute("rotaterightleft");
     180            std::string looprightleftStr = xmlElem->Attribute("looprightleft");
    180181
    181182            String2Number<float>(this->maxSpeedForward_, forwardStr);
  • code/branches/FICN/src/orxonox/objects/Light.h

    r708 r715  
    11#ifndef _Light_H__
    22#define _Light_H__
     3
     4#include <string>
    35
    46#include <OgreLight.h>
     
    68#include "../OrxonoxPrereqs.h"
    79
    8 #include "misc/String.h"
    910#include "misc/ColourValue.h"
    1011
     
    2122                { return this->light_; }
    2223
    23             inline const String& getName() const
     24            inline const std::string& getName() const
    2425                { return this->light_->getName(); }
    2526
  • code/branches/FICN/src/orxonox/objects/Mesh.cc

    r708 r715  
    4343    }
    4444
    45     void Mesh::setMesh(const String& file)
     45    void Mesh::setMesh(const std::string& file)
    4646    {
    4747        std::ostringstream name;
  • code/branches/FICN/src/orxonox/objects/Mesh.h

    r708 r715  
    11#ifndef _Mesh_H__
    22#define _Mesh_H__
     3
     4#include <string>
    35
    46#include <OgreEntity.h>
    57
    68#include "../OrxonoxPrereqs.h"
    7 
    8 #include "misc/String.h"
    99
    1010namespace orxonox
     
    1515            Mesh();
    1616            ~Mesh();
    17             void setMesh(const String& file);
     17            void setMesh(const std::string& file);
    1818
    1919            inline Ogre::Entity* getEntity()
    2020                { return this->entity_; }
    2121
    22             inline const String& getName() const
     22            inline const std::string& getName() const
    2323                { return this->entity_->getName(); }
    2424
  • code/branches/FICN/src/orxonox/objects/Model.h

    r708 r715  
    2121
    2222        private:
    23             String meshSrc_;
     23            std::string meshSrc_;
    2424            Mesh mesh_;
    2525            void registerAllVariables();
  • code/branches/FICN/src/orxonox/objects/Skybox.cc

    r708 r715  
    2626 */
    2727
     28#include <string>
     29
    2830#include <OgreSceneManager.h>
    2931
     
    3133//#include "misc/Tokenizer.h"
    3234//#include "misc/String2Number.h"
    33 #include "misc/String.h"
    3435#include "../Orxonox.h"
    3536#include "../core/CoreIncludes.h"
     
    5758        if (xmlElem->Attribute("src"))
    5859        {
    59                 String skyboxSrc = xmlElem->Attribute("src");
     60                std::string skyboxSrc = xmlElem->Attribute("src");
    6061                mgr->setSkyBox(true, skyboxSrc);
    6162
  • code/branches/FICN/src/orxonox/objects/SpaceShip.cc

    r708 r715  
    2626 */
    2727
     28#include <string>
     29
    2830#include <OIS/OIS.h>
    2931#include <OgreCamera.h>
     
    3436#include "tinyxml/tinyxml.h"
    3537#include "misc/String2Number.h"
    36 #include "misc/String.h"
    3738#include "../core/CoreIncludes.h"
    3839#include "../core/Debug.h"
     
    196197        if (xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft"))
    197198        {
    198             String forwardStr = xmlElem->Attribute("forward");
    199             String rotateupdownStr = xmlElem->Attribute("rotateupdown");
    200             String rotaterightleftStr = xmlElem->Attribute("rotaterightleft");
    201             String looprightleftStr = xmlElem->Attribute("looprightleft");
     199            std::string forwardStr = xmlElem->Attribute("forward");
     200            std::string rotateupdownStr = xmlElem->Attribute("rotateupdown");
     201            std::string rotaterightleftStr = xmlElem->Attribute("rotaterightleft");
     202            std::string looprightleftStr = xmlElem->Attribute("looprightleft");
    202203
    203204            String2Number<float>(this->maxSpeedForward_, forwardStr);
     
    212213        {
    213214
    214             String msStr = xmlElem->Attribute("maxSpeed");
    215             String msabsStr = xmlElem->Attribute("maxSideAndBackSpeed");
    216             String mrStr = xmlElem->Attribute("maxRotation");
    217             String taStr = xmlElem->Attribute("transAcc");
    218             String raStr = xmlElem->Attribute("rotAcc");
    219             String tdStr = xmlElem->Attribute("transDamp");
    220             String rdStr = xmlElem->Attribute("rotDamp");
     215            std::string msStr = xmlElem->Attribute("maxSpeed");
     216            std::string msabsStr = xmlElem->Attribute("maxSideAndBackSpeed");
     217            std::string mrStr = xmlElem->Attribute("maxRotation");
     218            std::string taStr = xmlElem->Attribute("transAcc");
     219            std::string raStr = xmlElem->Attribute("rotAcc");
     220            std::string tdStr = xmlElem->Attribute("transDamp");
     221            std::string rdStr = xmlElem->Attribute("rotDamp");
    221222
    222223            String2Number<float>(this->maxSpeed_, msStr);
  • code/branches/FICN/src/orxonox/objects/WorldEntity.cc

    r708 r715  
    2626 */
    2727
     28#include <string>
    2829#include <sstream>
    2930
     
    3132#include "misc/Tokenizer.h"
    3233#include "misc/String2Number.h"
    33 #include "misc/String.h"
    3434#include "../core/CoreIncludes.h"
    3535#include "../Orxonox.h"
     
    8888        if (xmlElem->Attribute("position"))
    8989        {
    90             std::vector<String> pos = tokenize(xmlElem->Attribute("position"),",");
     90            std::vector<std::string> pos = tokenize(xmlElem->Attribute("position"),",");
    9191            float x, y, z;
    9292            String2Number<float>(x, pos[0]);
     
    9898        if (xmlElem->Attribute("direction"))
    9999        {
    100             std::vector<String> pos = tokenize(xmlElem->Attribute("direction"),",");
     100            std::vector<std::string> pos = tokenize(xmlElem->Attribute("direction"),",");
    101101            float x, y, z;
    102102            String2Number<float>(x, pos[0]);
     
    125125        if (xmlElem->Attribute("scale"))
    126126        {
    127             String scaleStr = xmlElem->Attribute("scale");
     127            std::string scaleStr = xmlElem->Attribute("scale");
    128128            float scale;
    129129            String2Number<float>(scale, scaleStr);
     
    133133        if (xmlElem->Attribute("rotationAxis"))
    134134        {
    135             std::vector<String> pos = tokenize(xmlElem->Attribute("rotationAxis"),",");
     135            std::vector<std::string> pos = tokenize(xmlElem->Attribute("rotationAxis"),",");
    136136            float x, y, z;
    137137            String2Number<float>(x, pos[0]);
  • code/branches/FICN/src/orxonox/objects/weapon_system/AmmunitionDump.cc

    r708 r715  
    5959  }
    6060
    61   void AmmunitionDump::setDumpSize(const String &name, int size)
     61  void AmmunitionDump::setDumpSize(const std::string &name, int size)
    6262  {
    6363    if (size < 0)
     
    7070
    7171
    72   int AmmunitionDump::store(const String &name, int quantity)
     72  int AmmunitionDump::store(const std::string &name, int quantity)
    7373  {
    7474    int id = Orxonox::getSingleton()->getBulletMgr()->getAmmunitionID(name);
     
    8787
    8888
    89   int AmmunitionDump::getAmmunition(const String &name, int quantity)
     89  int AmmunitionDump::getAmmunition(const std::string &name, int quantity)
    9090  {
    9191    int id = Orxonox::getSingleton()->getBulletMgr()->getAmmunitionID(name);
     
    103103
    104104
    105   int AmmunitionDump::getStockSize(const String &name)
     105  int AmmunitionDump::getStockSize(const std::string &name)
    106106  {
    107107    int id = Orxonox::getSingleton()->getBulletMgr()->getAmmunitionID(name);
  • code/branches/FICN/src/orxonox/objects/weapon_system/AmmunitionDump.h

    r708 r715  
    3030#define _AmmunitionDump_H__
    3131
     32#include <string>
     33
    3234#include <OgrePrerequisites.h>
    3335
     
    3638#include "network/Synchronisable.h"
    3739//#include "../core/CoreIncludes.h"
    38 #include "misc/String.h"
    3940#include "../BaseObject.h"
    4041
     
    4748          ~AmmunitionDump();
    4849
    49     void setDumpSize(const String &name, int size);
     50    void setDumpSize(const std::string &name, int size);
    5051
    51     int store(const String &name, int quantiy);
     52    int store(const std::string &name, int quantiy);
    5253
    53     int getAmmunition(const String &name, int quantity);
     54    int getAmmunition(const std::string &name, int quantity);
    5455
    55     int getStockSize(const String &name);
     56    int getStockSize(const std::string &name);
    5657
    5758    virtual void loadParams(TiXmlElement* xmlElem) { BaseObject::loadParams(xmlElem); };
  • code/branches/FICN/src/orxonox/objects/weapon_system/BulletManager.cc

    r708 r715  
    8282  }
    8383
    84   int BulletManager::getAmmunitionID(const String &ammoName)
     84  int BulletManager::getAmmunitionID(const std::string &ammoName)
    8585  {
    86     String ammoTypes[] = { "Energy Cell", "Barrel", "Lead Shot" };
     86    std::string ammoTypes[] = { "Energy Cell", "Barrel", "Lead Shot" };
    8787    int ammoTypesLength = 3;
    8888
  • code/branches/FICN/src/orxonox/objects/weapon_system/BulletManager.h

    r708 r715  
    3030#define _BulletManager_H__
    3131
     32#include <string>
     33
    3234#include <OgrePrerequisites.h>
    3335
     
    3739#include "tinyxml/tinyxml.h"
    3840//#include "../core/CoreIncludes.h"
    39 #include "misc/String.h"
    4041#include "../BaseObject.h"
    4142#include "../Tickable.h"
     
    5051    void addBullet(Bullet*);
    5152
    52     int getAmmunitionID(const String&);
     53    int getAmmunitionID(const std::string&);
    5354
    5455    int getNumberOfAmmos();
Note: See TracChangeset for help on using the changeset viewer.