Changeset 44 for trunk/src/game/QuestDef.h
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/QuestDef.h
r37 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 19 #ifndef MANGOSSERVER_QUEST_H20 #define MANGOSSERVER_QUEST_H21 #ifndef TRINITYCORE_QUEST_H 22 #define TRINITYCORE_QUEST_H 21 23 22 24 #include "Platform/Define.h" … … 128 130 QUEST_FLAGS_DAILY = 4096, // Used to know quest is Daily one 129 131 130 // Mangosflags for set SpecialFlags in DB if required but used only at server131 QUEST_ MANGOS_FLAGS_REPEATABLE = 0x010000, // Set by 1 in SpecialFlags from DB132 QUEST_ MANGOS_FLAGS_EXPLORATION_OR_EVENT = 0x020000, // Set by 2 in SpecialFlags from DB (if reequired area explore, spell SPELL_EFFECT_QUEST_COMPLETE casting, table `*_script` command SCRIPT_COMMAND_QUEST_EXPLORED use, set from script DLL)133 QUEST_ MANGOS_FLAGS_DB_ALLOWED = 0xFFFF | QUEST_MANGOS_FLAGS_REPEATABLE | QUEST_MANGOS_FLAGS_EXPLORATION_OR_EVENT,134 135 // Mangosflags for internal use only136 QUEST_ MANGOS_FLAGS_DELIVER = 0x040000, // Internal flag computed only137 QUEST_ MANGOS_FLAGS_SPEAKTO = 0x080000, // Internal flag computed only138 QUEST_ MANGOS_FLAGS_KILL_OR_CAST = 0x100000, // Internal flag computed only139 QUEST_ MANGOS_FLAGS_TIMED = 0x200000, // Internal flag computed only132 // Trinity flags for set SpecialFlags in DB if required but used only at server 133 QUEST_TRINITY_FLAGS_REPEATABLE = 0x010000, // Set by 1 in SpecialFlags from DB 134 QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT = 0x020000, // Set by 2 in SpecialFlags from DB (if reequired area explore, spell SPELL_EFFECT_QUEST_COMPLETE casting, table `*_script` command SCRIPT_COMMAND_QUEST_EXPLORED use, set from script DLL) 135 QUEST_TRINITY_FLAGS_DB_ALLOWED = 0xFFFF | QUEST_TRINITY_FLAGS_REPEATABLE | QUEST_TRINITY_FLAGS_EXPLORATION_OR_EVENT, 136 137 // Trinity flags for internal use only 138 QUEST_TRINITY_FLAGS_DELIVER = 0x040000, // Internal flag computed only 139 QUEST_TRINITY_FLAGS_SPEAKTO = 0x080000, // Internal flag computed only 140 QUEST_TRINITY_FLAGS_KILL_OR_CAST = 0x100000, // Internal flag computed only 141 QUEST_TRINITY_FLAGS_TIMED = 0x200000, // Internal flag computed only 140 142 }; 141 143 … … 213 215 uint32 GetQuestStartScript() const { return QuestStartScript; } 214 216 uint32 GetQuestCompleteScript() const { return QuestCompleteScript; } 215 bool IsRepeatable() const { return QuestFlags & QUEST_ MANGOS_FLAGS_REPEATABLE; }217 bool IsRepeatable() const { return QuestFlags & QUEST_TRINITY_FLAGS_REPEATABLE; } 216 218 bool IsAutoComplete() const { return QuestMethod ? false : true; } 217 219 uint32 GetFlags() const { return QuestFlags; }