Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 11, 2009, 12:27:38 AM (15 years ago)
Author:
landauf
Message:

Reduced dependencies between orxonox and overlays: GUIOverlays send their owners to a map in the QuestManager instead of the QuestManager asking the GUIOverlays.

Location:
code/branches/libraries/src/orxonox/overlays
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/libraries/src/orxonox/overlays/GUIOverlay.cc

    r3370 r5617  
    3636#include "core/GUIManager.h"
    3737#include "core/XMLPort.h"
     38#include "objects/quest/QuestManager.h"
     39#include "objects/infos/PlayerInfo.h"
    3840
    3941namespace orxonox
     
    7981    }
    8082
     83    void GUIOverlay::setGUIName(const std::string& name)
     84    {
     85        this->guiName_ = name;
     86        QuestManager::getInstance().setPlayer(name, orxonox_cast<PlayerInfo*>(this->getOwner()));
     87    }
    8188}
  • code/branches/libraries/src/orxonox/overlays/GUIOverlay.h

    r3196 r5617  
    4646            virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
    4747
    48             inline void setGUIName(const std::string& name) { this->guiName_ = name; }
     48            void setGUIName(const std::string& name);
    4949            inline const std::string& getGUIName() const { return this->guiName_; }
    5050
Note: See TracChangeset for help on using the changeset viewer.