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.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.