Major code reorganization
This commit only updates the XCode project for the changes. A later commit each will update it for scons and MSVC. A few actual changes are mixed in: - Add a prefix header for a handful of common definitions - Moved current_cursor into the Cursor class as a static member - Removed the make_cursor_sword and make_cursor_watch functions - Include tests in the All target - Remove redundant -l flags for Common and Common-Party (since they're included in the Link phases anyway)
This commit is contained in:
25
src/scenario/quest.hpp
Normal file
25
src/scenario/quest.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// quest.hpp
|
||||
// BoE
|
||||
//
|
||||
// Created by Celtic Minstrel on 17-04-13.
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef BoE_QUEST_HPP
|
||||
#define BoE_QUEST_HPP
|
||||
|
||||
enum class eQuestStatus {AVAILABLE, STARTED, COMPLETED, FAILED};
|
||||
|
||||
class cQuest {
|
||||
public:
|
||||
short flags = 0; // 0 - absolute deadline, 1 - relative to when quest started, +10 - start quest when scenario starts
|
||||
short deadline = -1;
|
||||
short event = -1; // if this event occurs before the deadline, then the deadline is waived
|
||||
short xp = 0, gold = 0; // automatically award this much XP and gold to the party when the quest is marked complete
|
||||
short bank1 = -1, bank2 = -1; // which job bank(s) this quest is in; -1 for none
|
||||
std::string name;
|
||||
std::string descr;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user