Consolidate active quest data into a single map

This commit is contained in:
2017-04-14 11:38:06 -04:00
parent 5b5b2af46f
commit e57441f6a0
11 changed files with 55 additions and 58 deletions

View File

@@ -22,6 +22,15 @@ public:
std::string descr;
};
class cJob {
public:
cJob() : status(eQuestStatus::AVAILABLE), start(0), source(-1) {}
explicit cJob(int start, int source = -1) : status(eQuestStatus::STARTED), start(start), source(source) {}
eQuestStatus status;
int start; // the day the quest was started; used for quests with relative deadlines
int source; // if gotten from a job board, this is the number of the job board; otherwise -1
};
std::istream& operator>>(std::istream& in, eQuestStatus& type);
std::ostream& operator<<(std::ostream& out, eQuestStatus type);