- Timestamp:
- Nov 8, 2008, 7:58:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/Quest.cc
r2146 r2159 48 48 /** 49 49 @brief 50 Constructor. Initializes object.50 Constructor. Registers and initializes object. 51 51 */ 52 52 Quest::Quest(BaseObject* creator) : QuestItem(creator) 53 53 { 54 this->initialize();55 }56 57 /**58 @brief59 Initializes the object. Needs to be called first in every constructor of this class.60 Sets defaults.61 */62 void Quest::initialize(void)63 {64 54 RegisterObject(Quest); 65 55 … … 84 74 SUPER(Quest, XMLPort, xmlelement, mode); 85 75 86 XMLPortObject(Quest, Quest, "subquests", addSubQuest, getSubQuest s, xmlelement, mode);87 XMLPortObject(Quest, QuestHint, "hints", addHint, getHint s, xmlelement, mode);88 XMLPortObject(Quest, QuestEffect, "fail-effects", addFailEffect, getFailEffect s, xmlelement, mode);89 XMLPortObject(Quest, QuestEffect, "complete-effects", addCompleteEffect, getCompleteEffect s, xmlelement, mode);76 XMLPortObject(Quest, Quest, "subquests", addSubQuest, getSubQuest, xmlelement, mode); 77 XMLPortObject(Quest, QuestHint, "hints", addHint, getHint, xmlelement, mode); 78 XMLPortObject(Quest, QuestEffect, "fail-effects", addFailEffect, getFailEffect, xmlelement, mode); 79 XMLPortObject(Quest, QuestEffect, "complete-effects", addCompleteEffect, getCompleteEffect, xmlelement, mode); 90 80 91 81 QuestManager::registerQuest(this); //Registers the quest with the QuestManager. … … 224 214 Returns the subquest of the given index. NULL if there is no element on the given index. 225 215 */ 226 const Quest* Quest::getSubQuest s(unsigned int index) const216 const Quest* Quest::getSubQuest(unsigned int index) const 227 217 { 228 218 int i = index; … … 249 239 Returns the hint of the given index. NULL if there is no element on the given index. 250 240 */ 251 const QuestHint* Quest::getHint s(unsigned int index) const241 const QuestHint* Quest::getHint(unsigned int index) const 252 242 { 253 243 int i = index; … … 273 263 Returns the failEffect of the given index. NULL if there is no element on the given index. 274 264 */ 275 const QuestEffect* Quest::getFailEffect s(unsigned int index) const265 const QuestEffect* Quest::getFailEffect(unsigned int index) const 276 266 { 277 267 int i = index; … … 297 287 Returns the completeEffect of the given index. NULL if there is no element on the given index. 298 288 */ 299 const QuestEffect* Quest::getCompleteEffect s(unsigned int index) const289 const QuestEffect* Quest::getCompleteEffect(unsigned int index) const 300 290 { 301 291 int i = index;
Note: See TracChangeset
for help on using the changeset viewer.