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/Quest.h

    r2191 r2205  
    4444
    4545#include "core/XMLPort.h"
     46
    4647#include "QuestItem.h"
    47 
    4848
    4949namespace questStatus
     
    104104                { return this->hints_; }
    105105
    106             bool isInactive(const ControllableEntity* player) const; //!< Returns true if the quest status for the specific player is 'inactive'.
    107             bool isActive(const ControllableEntity* player) const; //!< Returns true if the quest status for the specific player is 'active'.
    108             bool isFailed(const ControllableEntity* player) const; //!< Returns true if the quest status for the specific player is 'failed'.
    109             bool isCompleted(const ControllableEntity* player) const; //!< Returns true if the quest status for the specific player is 'completed'.
     106            bool isInactive(const PlayerInfo* player) const; //!< Returns true if the quest status for the specific player is 'inactive'.
     107            bool isActive(const PlayerInfo* player) const; //!< Returns true if the quest status for the specific player is 'active'.
     108            bool isFailed(const PlayerInfo* player) const; //!< Returns true if the quest status for the specific player is 'failed'.
     109            bool isCompleted(const PlayerInfo* player) const; //!< Returns true if the quest status for the specific player is 'completed'.
    110110
    111             bool start(ControllableEntity* player); //!< Sets a Quest to active.
    112             virtual bool fail(ControllableEntity* player) = 0; //!< Fails the Quest.
    113             virtual bool complete(ControllableEntity* player) = 0; //!< Completes the Quest.
     111            bool start(PlayerInfo* player); //!< Sets a Quest to active.
     112            virtual bool fail(PlayerInfo* player) = 0; //!< Fails the Quest.
     113            virtual bool complete(PlayerInfo* player) = 0; //!< Completes the Quest.
    114114
    115115        protected:
    116             virtual bool isStartable(const ControllableEntity* player) const = 0; //!< Checks whether the Quest can be started.
    117             virtual bool isFailable(const ControllableEntity* player) const = 0; //!< Checks whether the Quest can be failed.
    118             virtual bool isCompletable(const ControllableEntity* player) const = 0; //!< Checks whether the Quest can be completed.
     116            virtual bool isStartable(const PlayerInfo* player) const = 0; //!< Checks whether the Quest can be started.
     117            virtual bool isFailable(const PlayerInfo* player) const = 0; //!< Checks whether the Quest can be failed.
     118            virtual bool isCompletable(const PlayerInfo* player) const = 0; //!< Checks whether the Quest can be completed.
    119119
    120120            const Quest* getParentQuest(void); //!< Returns the parentquest of the Quest.
     
    138138                { return this->completeEffects_; }
    139139
    140             virtual questStatus::Enum getStatus(const ControllableEntity* player) const = 0; //!< Returns the status of the Quest for a specific player.
    141             virtual bool setStatus(ControllableEntity* player, const questStatus::Enum & status) = 0; //!< Changes the status for a specific player.
     140            virtual questStatus::Enum getStatus(const PlayerInfo* player) const = 0; //!< Returns the status of the Quest for a specific player.
     141            virtual bool setStatus(PlayerInfo* player, const questStatus::Enum & status) = 0; //!< Changes the status for a specific player.
    142142           
    143143        private:
Note: See TracChangeset for help on using the changeset viewer.