Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2008, 9:55:01 PM (17 years ago)
Author:
dafrick
Message:

Changed from ControllableEntity to PlayerInfo…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem2/src/orxonox/objects/quest/QuestHint.cc

    r2191 r2205  
    3939#include "util/Exception.h"
    4040
    41 #include "orxonox/objects/worldentities/ControllableEntity.h"
     41#include "orxonox/objects/infos/PlayerInfo.h"
    4242#include "Quest.h"
    4343
     
    8686        Returns true if the QuestHint is active for the specified player.
    8787    */
    88     bool QuestHint::isActive(ControllableEntity* player)
     88    bool QuestHint::isActive(const PlayerInfo* player) const
    8989    {
    9090        if(player == NULL) //!< NULL-Pointers are ugly!
    9191        {
    92             ThrowException(Argument, "The input ControllableEntity* is NULL.");
     92            ThrowException(Argument, "The input PlayerInfo* is NULL.");
    9393            return false;
    9494        }
    9595
    9696        //! Find the player.
    97         std::map<ControllableEntity*, questHintStatus::Enum>::iterator it = this->playerStatus_.find(player);
     97        std::map<const PlayerInfo*, questHintStatus::Enum>::const_iterator it = this->playerStatus_.find(player);
    9898        if (it != this->playerStatus_.end()) //!< If the player is in the map.
    9999        {
     
    112112        Returns true if the activation was successful, false if there were problems.
    113113    */
    114     bool QuestHint::setActive(ControllableEntity* player)
     114    bool QuestHint::setActive(PlayerInfo* player)
    115115    {
    116116        if(this->quest_->isActive(player)) //!< For a hint to get activated the quest must be active.
Note: See TracChangeset for help on using the changeset viewer.