Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2009, 9:34:47 AM (15 years ago)
Author:
rgrieder
Message:

Use base class method for getInstance (for tolua interface).

Location:
code/branches/presentation2/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/input/InputManager.h

    r6183 r6278  
    171171        std::pair<int, int> getMousePosition() const;
    172172       
    173         static InputManager& getInstance() { return *singletonPtr_s; } // tolua_export
     173        static InputManager& getInstance() { return Singleton<InputManager>::getInstance(); } // tolua_export
    174174
    175175    private: // functions
  • code/branches/presentation2/src/libraries/core/input/KeyBinderManager.h

    r6266 r6278  
    6262        void setConfigValues();
    6363
    64         static KeyBinderManager& getInstance() { return Singleton<KeyBinderManager>::getInstance(); } //tolua_export
     64        static KeyBinderManager& getInstance() //tolua_export
     65            { return Singleton<KeyBinderManager>::getInstance(); }
    6566        //! Returns the currently selected KeyBinder
    66         KeyBinder* getCurrent() { return this->currentBinder_; } //tolua_export
     67        KeyBinder* getCurrent() //tolua_export
     68            { return this->currentBinder_; }
    6769        //! Like getCurrent(), but returns it as InputHandler* (so you don't have to include KeyBinder.h)
    6870        InputHandler* getCurrentAsHandler();
     
    9597
    9698        //! Bind 'command' to any key pressed after this call (use with care!)
    97         inline void keybind(const std::string& command) { this->keybindInternal(command, false); } //tolua_export
     99        inline void keybind(const std::string& command) //tolua_export
     100            { this->keybindInternal(command, false); }
    98101        //! Bind 'command' to any key pressed after this call (use with care!), but temporarily (no file save)
    99102        inline void tkeybind(const std::string& command)
  • code/branches/presentation2/src/orxonox/MoodManager.h

    r6119 r6278  
    5656            const std::string& getMood();
    5757
    58             static MoodManager& getInstance()    { return Singleton<MoodManager>::getInstance(); } // tolua_export
     58            static MoodManager& getInstance() { return Singleton<MoodManager>::getInstance(); } // tolua_export
    5959
    6060        private:
  • code/branches/presentation2/src/orxonox/sound/SoundManager.h

    r6270 r6278  
    8080       
    8181        // tolua_begin
    82         static SoundManager& getInstance()
    83             { return Singleton<SoundManager>::getInstance(); }
     82        static SoundManager& getInstance() { return Singleton<SoundManager>::getInstance(); }
    8483
    8584        std::string getDeviceName(unsigned int index) const
Note: See TracChangeset for help on using the changeset viewer.