Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Changed from ControllableEntity to PlayerInfo…

File:
1 edited

Legend:

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

    r2191 r2205  
    3838#include "core/CoreIncludes.h"
    3939
    40 #include "orxonox/objects/worldentities/ControllableEntity.h"
     40#include "orxonox/objects/infos/PlayerInfo.h"
    4141#include "QuestManager.h"
    4242#include "QuestDescription.h"
     
    313313        Throws an exception if getStatus throws one.
    314314    */
    315     bool Quest::isInactive(const ControllableEntity* player) const
     315    bool Quest::isInactive(const PlayerInfo* player) const
    316316    {
    317317        return this->getStatus(player) == questStatus::inactive;
     
    328328        Throws an exception if getStatus throws one.
    329329    */
    330     bool Quest::isActive(const ControllableEntity* player) const
     330    bool Quest::isActive(const PlayerInfo* player) const
    331331    {
    332332
     
    344344        Throws an exception if getStatus throws one.
    345345    */
    346     bool Quest::isFailed(const ControllableEntity* player) const
     346    bool Quest::isFailed(const PlayerInfo* player) const
    347347    {
    348348        return this->getStatus(player) == questStatus::failed;
     
    359359        Throws an exception if getStatus throws one.
    360360    */
    361     bool Quest::isCompleted(const ControllableEntity* player) const
     361    bool Quest::isCompleted(const PlayerInfo* player) const
    362362    {
    363363        return this->getStatus(player) == questStatus::completed;
     
    372372        Returns true if the Quest could be started, false if not.
    373373    */
    374     bool Quest::start(ControllableEntity* player)
     374    bool Quest::start(PlayerInfo* player)
    375375    {
    376376        if(this->isStartable(player)) //!< Checks whether the quest can be started.
Note: See TracChangeset for help on using the changeset viewer.