Changeset 2383 for code/branches/questsystem3/src
- Timestamp:
- Dec 10, 2008, 3:36:47 PM (16 years ago)
- Location:
- code/branches/questsystem3/src/orxonox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem3/src/orxonox/objects/quest/LocalQuest.h
r2352 r2383 55 55 <QuestDescription title="Title" description="Description." /> //The description of the quest. 56 56 <subquests> 57 <Quest id ="questId1" /> //A list of n subquest, be aware, each of the <Quest /> tags must have a description and so on and so forth as well.58 ...59 <Quest id="questIdn" />60 </subquests>61 <hints>62 <QuestHint id="hintId1" /> //A list of n QuestHints, see QuestHint for the full XML representation of those.63 ...64 <QuestHint id="hintIdn" />65 </hints>66 <fail-effects>67 <QuestEffect /> //A list of QuestEffects, invoked when the Quest is failed, see QuestEffect for the full XML representation.68 ...69 <QuestEffect />70 </fail-effects>71 <complete-effects>72 <QuestEffect /> //A list of QuestEffects, invoked when the Quest is completed, see QuestEffect for the full XML representation.73 ...74 <QuestEffect />75 </complete-effects>57 <Quest id ="questId1" /> //A list of n subquest, be aware, each of the <Quest /> tags must have a description and so on and so forth as well. 58 ... 59 <Quest id="questIdn" /> 60 </subquests> 61 <hints> 62 <QuestHint id="hintId1" /> //A list of n QuestHints, see QuestHint for the full XML representation of those. 63 ... 64 <QuestHint id="hintIdn" /> 65 </hints> 66 <fail-effects> 67 <QuestEffect /> //A list of QuestEffects, invoked when the Quest is failed, see QuestEffect for the full XML representation. 68 ... 69 <QuestEffect /> 70 </fail-effects> 71 <complete-effects> 72 <QuestEffect /> //A list of QuestEffects, invoked when the Quest is completed, see QuestEffect for the full XML representation. 73 ... 74 <QuestEffect /> 75 </complete-effects> 76 76 </LocalQuest> 77 77 @author -
code/branches/questsystem3/src/orxonox/objects/quest/QuestHint.h
r2352 r2383 46 46 { 47 47 48 //! The stat usof the hint.48 //! The state of the hint. 49 49 enum Enum 50 50 { … … 95 95 private: 96 96 Quest* quest_; //!< The Quest the QuestHint belongs to. 97 std::map<const PlayerInfo*, questHintStatus::Enum> playerStatus_; //!< List of the stat us for each player, with the Player-pointer as key.97 std::map<const PlayerInfo*, questHintStatus::Enum> playerStatus_; //!< List of the states for each player, with the Player-pointer as key. 98 98 99 99 }; -
code/branches/questsystem3/src/orxonox/objects/quest/QuestItem.cc
r2352 r2383 98 98 @return 99 99 Returns true if the string is likely to be of the required form. 100 @todo101 Clarify form, more vigorous checks.102 100 */ 103 101 /*static*/ bool QuestItem::isId(const std::string & id) -
code/branches/questsystem3/src/orxonox/objects/quest/QuestListener.cc
r2353 r2383 37 37 #include "core/CoreIncludes.h" 38 38 #include "core/XMLPort.h" 39 #include "util/Exception.h" 39 40 40 41 #include "Quest.h" … … 115 116 if(this->quest_ == NULL) //!< If there is no such Quest. 116 117 { 117 COUT(1) << "This is bad! The QuestListener has not found a Quest qith a corresponding id." << std::endl; //TDO Throw a damn Exception!118 ThrowException(Argument, "This is bad! The QuestListener has not found a Quest with a corresponding id.."); 118 119 return false; 119 120 } … … 197 198 bool QuestListener::execute() 198 199 { 199 this->fireEvent(true); //TDO This' right?200 this->fireEvent(true); 200 201 return true; 201 202 } -
code/branches/questsystem3/src/orxonox/overlays/notifications/Notification.h
r2280 r2383 40 40 /** 41 41 @brief 42 42 This is rather temporary, so don't start relying on it, some better version will come soon but the Interface will not likely be the same. 43 43 @author 44 44 Damian 'Mozork' Frick
Note: See TracChangeset
for help on using the changeset viewer.