Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 16, 2010, 11:22:36 AM (15 years ago)
Author:
rgrieder
Message:

Merged revisions 6430-6440 from the gamestate branch to the trunk.
This adds keybindings merging functionality.

(from log of r6437)
When running development builds, the keybinder will merge the local file and the one from the data folder.
Catch: if you want to remove a binding, you'll have to write "NoBinding" (not case sensitive) to override the default command

The keybind command already does that for you though.

Location:
code/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/modules/questsystem/QuestManager.cc

    r6417 r6536  
    235235    CEGUI::Window* QuestManager::getQuestGUI(const std::string & guiName)
    236236    {
    237         PlayerInfo* player = this->retreivePlayer(guiName);
     237        PlayerInfo* player = this->retrievePlayer(guiName);
    238238
    239239        if(this->questGUIs_.find(player) == this->questGUIs_.end()) //!< Create a new GUI, if there is none, yet.
     
    253253        This very well might be outdated. So: Check if still needed, and update if necessary.
    254254    */
    255     PlayerInfo* QuestManager::retreivePlayer(const std::string & guiName)
     255    PlayerInfo* QuestManager::retrievePlayer(const std::string & guiName)
    256256    {
    257257        PlayerInfo* player = GUIManager::getInstance().getPlayer(guiName);
  • code/trunk/src/modules/questsystem/QuestManager.h

    r6417 r6536  
    5252    /**
    5353    @brief
    54         Is a Singleton and manages Quests, by registering every Quest/QuestHint (through registerX()) and making them globally accessable (through findX()).
     54        Is a Singleton and manages Quests, by registering every Quest/QuestHint (through registerX()) and making them globally accessible (through findX()).
    5555        Quests (and QuestHints) are registered in the QuestManager with their id, and can be accessed in the same way.
    5656    @author
     
    7272            static QuestManager& getInstance() { return Singleton<QuestManager>::getInstance(); } // tolua_export
    7373
    74             //! Retreive the main window for the GUI.
     74            //! Retrieve the main window for the GUI.
    7575            CEGUI::Window* getQuestGUI(const std::string & guiName); // tolua_export
    7676
     
    8282
    8383        protected:
    84             std::map<std::string, Quest*> & getQuests(void); //!< Retreive all Quests.
     84            std::map<std::string, Quest*> & getQuests(void); //!< Retrieve all Quests.
    8585
    8686        private:
    8787            static QuestManager* singletonPtr_s;
    88             PlayerInfo* retreivePlayer(const std::string & guiName); //!< Retrieve the player for a certain GUI.
     88            PlayerInfo* retrievePlayer(const std::string & guiName); //!< Retrieve the player for a certain GUI.
    8989
    9090            std::map<std::string, Quest*> questMap_; //!< All Quests registered by their id's.
Note: See TracChangeset for help on using the changeset viewer.