Changeset 7401 for code/trunk/src/modules/questsystem
- Timestamp:
- Sep 11, 2010, 12:34:00 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 12 deleted
- 13 edited
- 14 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/doc (added) merged: 7290-7292,7296-7300,7302-7304,7306-7312,7315-7318,7323,7325,7327,7331-7332,7334-7335,7345-7347,7352-7353,7356-7357,7361,7363-7367,7371-7375,7388
- Property svn:mergeinfo changed
-
code/trunk/src/modules/questsystem/CMakeLists.txt
r7164 r7401 1 1 SET_SOURCE_FILES(QUESTSYSTEM_SRC_FILES 2 AddQuest.cc3 AddQuestHint.cc4 AddReward.cc5 ChangeQuestStatus.cc6 CompleteQuest.cc7 FailQuest.cc8 2 GlobalQuest.cc 9 3 LocalQuest.cc … … 18 12 QuestNotification.cc 19 13 ) 14 15 ADD_SUBDIRECTORY(effects) 20 16 21 17 ORXONOX_ADD_LIBRARY(questsystem -
code/trunk/src/modules/questsystem/GlobalQuest.h
r5781 r7401 50 50 Creating a GlobalQuest through XML goes as follows: 51 51 52 <GlobalQuest id="questId"> //Where questId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information 52 @code 53 <GlobalQuest id="questId"> 53 54 <QuestDescription title="Title" description="Description." /> //The description of the quest. 54 55 <subquests> … … 78 79 </reward-effects> 79 80 </GlobalQuest> 81 @endcode 80 82 @author 81 83 Damian 'Mozork' Frick -
code/trunk/src/modules/questsystem/LocalQuest.h
r5781 r7401 49 49 Creating a LocalQuest through XML goes as follows: 50 50 51 <LocalQuest id="questId"> //Where questId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information 51 @code 52 <LocalQuest id="questId"> 52 53 <QuestDescription title="Title" description="Description." /> //The description of the quest. 53 54 <subquests> … … 72 73 </complete-effects> 73 74 </LocalQuest> 75 @endcode 74 76 @author 75 77 Damian 'Mozork' Frick -
code/trunk/src/modules/questsystem/Quest.cc
r7163 r7401 197 197 @brief 198 198 Returns the subquest at the given index. 199 @param 199 @param index 200 200 The index. 201 201 @return … … 222 222 @brief 223 223 Returns the QuestHint at the given index. 224 @param 224 @param index 225 225 The index. 226 226 @return … … 246 246 @brief 247 247 Returns the fail QuestEffect at the given index. 248 @param 248 @param index 249 249 The index. 250 250 @return … … 270 270 @brief 271 271 Returns the complete QuestEffect at the given index. 272 @param 272 @param index 273 273 The index. 274 274 @return -
code/trunk/src/modules/questsystem/QuestDescription.h
r7163 r7401 50 50 Creating a QuestDescription through XML goes as follows: 51 51 52 @code 52 53 <QuestDescription title="Title" description="Description Text" failMessage="You fail." completeMessage="You win!" /> 54 @endcode 53 55 @author 54 56 Damian 'Mozork' Frick -
code/trunk/src/modules/questsystem/QuestEffectBeacon.cc
r7163 r7401 92 92 Executes the QuestEffectBeacon. 93 93 This means extracting the Pawn from the PlayerTrigger, provided by the Event causing the execution, and the extracting the PlayerInfo from the received Pawn and invoking the QuestEffectbeacon's QuestEffects on the received PlayerInfo. 94 @param bTriggered 95 true means the trigger was activated while false means it was deactivated 94 96 @param trigger 95 97 A pointer to the PlayerTrigger that threw the Event. … … 97 99 Returns true if successfully executed, false if not. 98 100 */ 99 bool QuestEffectBeacon::execute(bool b , BaseObject* trigger)100 { 101 if(!b )101 bool QuestEffectBeacon::execute(bool bTriggered, BaseObject* trigger) 102 { 103 if(!bTriggered) 102 104 { 103 105 return false; -
code/trunk/src/modules/questsystem/QuestEffectBeacon.h
r6800 r7401 61 61 Creating a QuestEffectBeacon through XML goes as follows: 62 62 63 @code 63 64 <QuestEffectBeacon times=n> //Where 'n' is eighter a number >= 0, which means the QuestEffectBeacon can be executed n times. Or n = -1, which means the QuestEffectBeacon can be executed an infinite number of times. 64 65 <effects> … … 76 77 </attached> 77 78 </QuestEffectBeacon> 79 @endcode 78 80 @author 79 81 Damian 'Mozork' Frick … … 88 90 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); 89 91 90 bool execute(bool b , BaseObject* trigger); //!< Executes the QuestEffects of the QuestEffectBeacon.92 bool execute(bool bTriggered, BaseObject* trigger); //!< Executes the QuestEffects of the QuestEffectBeacon. 91 93 92 94 /** -
code/trunk/src/modules/questsystem/QuestHint.h
r7163 r7401 60 60 Creating a QuestHint through XML goes as follows: 61 61 62 <QuestHint id="hintId"> //Where hintId is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information 62 @code 63 <QuestHint id="hintId"> 63 64 <QuestDesctription title="" description="" /> 64 65 </QuestHint> 66 @endcode 65 67 @author 66 68 Damian 'Mozork' Frick -
code/trunk/src/modules/questsystem/QuestItem.cc
r7163 r7401 78 78 @brief 79 79 Sets the id of the QuestItem. 80 The id must be of GUID form. See 'http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure' for more information. 80 The id can be any string and must be unique in the context it is used (commonly a level file). To ensure uniqueness one could use GUIDs, however they are in general less readable, so make your own choice. 81 @see 82 http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure 81 83 @param id 82 84 The id to be set. -
code/trunk/src/modules/questsystem/QuestItem.h
r7163 r7401 98 98 99 99 private: 100 std::string id_; //!< Identifier. Should be of GUID form: http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure100 std::string id_; //!< Identifier. Must be unique. 101 101 QuestDescription* description_; //!< The QuestDescription of the QuestItem. 102 102 -
code/trunk/src/modules/questsystem/QuestListener.h
r5781 r7401 62 62 You can use the QuestListener as if it were a Trigger or EventListener, that fires an Event when the status (depending on the set mode) of the given Quest changes. 63 63 64 @code 64 65 <BaseObject> // The object that should react to the status change of a Quest. 65 66 <events> … … 69 70 </events> 70 71 </BaseObject> 72 @endcode 71 73 @author 72 74 Damian 'Mozork' Frick -
code/trunk/src/modules/questsystem/QuestNotification.cc
r7163 r7401 48 48 @brief 49 49 Creates a QuestNotification with the input message. 50 @param creator 51 The creator of this object 50 52 @param message 51 53 The message to be sent.
Note: See TracChangeset
for help on using the changeset viewer.