Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2008, 4:40:00 PM (17 years ago)
Author:
dafrick
Message:
  • Created QuestListeners, they can be used to affect Objects due to status changes of quests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem3/src/orxonox/objects/quest/Quest.h

    r2261 r2328  
    110110           
    111111            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.
     112            virtual bool fail(PlayerInfo* player); //!< Fails the Quest.
     113            virtual bool complete(PlayerInfo* player); //!< Completes the Quest.
     114           
     115            bool addListener(QuestListener* listener); //!< Adds a QuestListener to the list of QuestListeners listening to this Quest.
    114116
    115117        protected:
     
    150152            std::list<QuestEffect*> completeEffects_; //!< A list of QuestEffects to be invoked, when the Quest has been completed.
    151153           
     154            std::list<QuestListener*> listeners_; //!< A list of QuestListeners, that listen to what exactly happens with this Quest.
     155           
    152156            bool setParentQuest(Quest* quest); //!< Sets the parentquest of the Quest.
    153157            bool addSubQuest(Quest* quest); //!< Adds a subquest to the Quest.
Note: See TracChangeset for help on using the changeset viewer.