OpenMW
apps/openmw/mwworld/fallback.hpp
Go to the documentation of this file.
00001 #ifndef GAME_MWWORLD_FALLBACK_H
00002 #define GAME_MWWORLD_FALLBACK_H
00003 
00004 #include <map>
00005 #include <string>
00006 
00007 #include <OgreColourValue.h>
00008 
00009 namespace MWWorld
00010 {
00011     class Fallback
00012     {
00013             const std::map<std::string,std::string> mFallbackMap;
00014         public:
00015             Fallback(const std::map<std::string,std::string>& fallback);
00016             std::string getFallbackString(const std::string& fall) const;
00017             float getFallbackFloat(const std::string& fall) const;
00018             bool getFallbackBool(const std::string& fall) const;
00019             Ogre::ColourValue getFallbackColour(const std::string& fall) const;
00020     };
00021 }
00022 #endif