Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2007, 10:30:29 PM (18 years ago)
Author:
rgrieder
Message:
  • added Vector2, Vector3, Matrix3, ColourValue, Quaternion and String to the misc folder as header files (each of them contains #include <string> … typedef std::string String , etc.)
  • please use String from now on by including <misc/String.h"
  • removed #include <OgreVector3.h", etc. from "CoreIncludes.h" (adjusted all source files)
  • adjusted all the source files (except network, that keeps <string> for the moment) (what a mess..)
  • moved usleep hack to misc/Sleep.h
  • relative include paths for files from other root directories (like misc, network, etc.) (but it stills writes "../Orxonox.h" when in folder orxonox/objects)
  • "OgreSceneManager.h" —> <OgreSceneManager.h>
  • included OrxonoxPrereqs in every file in folder orxonox
  • moved HUD and ParticleInterface to namespace orxonox
  • removed some using namespace Ogre/std when appropriate
  • I hope I haven't forgotten important points..
Location:
code/branches/FICN/src/loader
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/loader/LevelLoader.cc

    r702 r708  
    4242{
    4343
    44   LevelLoader::LevelLoader(std::string file, std::string path)
     44  LevelLoader::LevelLoader(orxonox::String file, orxonox::String path)
    4545  {
    4646    valid_ = false;
     
    155155
    156156              tElem = tNode->ToElement();
    157               std::string elemVal = tElem->Value();
     157              orxonox::String elemVal = tElem->Value();
    158158              if (elemVal == "ogg")
    159159              {
  • code/branches/FICN/src/loader/LevelLoader.h

    r682 r708  
    99#define _LevelLoader_H__
    1010
    11 #include <string>
     11#include "LoaderPrereqs.h"
    1212
    13 #include "LoaderPrereqs.h"
     13#include "misc/String.h"
    1414#include "tinyxml/tinyxml.h"
    1515
     
    2323  public:
    2424    // Constructors, loads the level file and some information data
    25     LevelLoader(std::string file, std::string dir = "levels");
     25    LevelLoader(orxonox::String file, orxonox::String dir = "levels");
    2626    // Destructor
    2727    virtual ~LevelLoader();
     
    3030
    3131    // Getters
    32     inline std::string name() {return name_; };
    33     inline std::string description() {return description_; };
    34     inline std::string image() {return image_; };
     32    inline orxonox::String name() {return name_; };
     33    inline orxonox::String description() {return description_; };
     34    inline orxonox::String image() {return image_; };
    3535  private:
    3636    //! Level information
    37     std::string name_;
    38     std::string description_;
    39     std::string image_;
    40     std::string loadingBackgroundColor_;
    41     std::string loadingBackgroundImage_;
    42     std::string loadingBarImage_;
    43     std::string loadingBarTop_;
    44     std::string loadingBarLeft_;
    45     std::string loadingBarWidth_;
    46     std::string loadingBarHeight_;
     37    orxonox::String name_;
     38    orxonox::String description_;
     39    orxonox::String image_;
     40    orxonox::String loadingBackgroundColor_;
     41    orxonox::String loadingBackgroundImage_;
     42    orxonox::String loadingBarImage_;
     43    orxonox::String loadingBarTop_;
     44    orxonox::String loadingBarLeft_;
     45    orxonox::String loadingBarWidth_;
     46    orxonox::String loadingBarHeight_;
    4747
    4848    //! Set to true if it was possible to load the level file
Note: See TracChangeset for help on using the changeset viewer.