Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 3, 2008, 1:49:06 AM (16 years ago)
Author:
landauf
Message:

new loader-concept is taking shape, but not yet finished

added new classes: Functor, Executor and XMLPortParamContainer.
more to come (i.e. XMLPortObjectContainer)

Executor might be useless, depends on how we'll implement the ingame shell-commands and the keybindings

moved all non-identifier-related functions and variables from OrxonoxClass to BaseObject. this might result in some casts to BaseObject when working with all objects of an interface (like Synchronisable), but I think it improves the class hierarchy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/core/Language.h

    r845 r847  
    5151#include "OrxonoxClass.h"
    5252
     53
     54#define AddLanguageEntry(label, fallbackstring) \
     55    orxonox::Language::getLanguage().addEntry(label, fallbackstring)
     56
     57#define GetLocalisation(label) \
     58    orxonox::Language::getLanguage().getLocalisation(label)
     59
     60
    5361namespace orxonox
    5462{
     
    7886                { return this->fallbackEntry_; }
    7987
     88            /**
     89                @brief Sets the label of this entry.
     90                @param label The label
     91            */
     92            inline void setLabel(const LanguageEntryLabel& label)
     93                { this->label_ = label; }
     94
     95            /**
     96                @brief Returns the label of this entry.
     97                @return The label
     98            */
     99            inline const LanguageEntryLabel& getLabel() const
     100                { return this->label_; }
     101
    80102        private:
    81             std::string fallbackEntry_;                             //!< The default entry: Used, if no translation is available or no language configured
    82             std::string localisedEntry_;                            //!< The localised entry in the configured language
    83             bool bLocalisationSet_;                                 //!< True if the translation was set
     103            LanguageEntryLabel label_;              //!< The label of the entry
     104            std::string fallbackEntry_;             //!< The default entry: Used, if no translation is available or no language configured
     105            std::string localisedEntry_;            //!< The localised entry in the configured language
     106            bool bLocalisationSet_;                 //!< True if the translation was set
    84107    };
    85108
     
    118141}
    119142
    120 #define AddLanguageEntry(label, fallbackstring) \
    121     orxonox::Language::getLanguage().addEntry(label, fallbackstring)
    122 
    123 #define GetLocalisation(label) \
    124     orxonox::Language::getLanguage().getLocalisation(label)
    125 
    126143#endif /* _Language_H__ */
Note: See TracChangeset for help on using the changeset viewer.