TrinityCore
Loading...
Searching...
No Matches
QuestMgr.h
Go to the documentation of this file.
1/*
2* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3*
4* This program is free software; you can redistribute it and/or modify it
5* under the terms of the GNU General Public License as published by the
6* Free Software Foundation; either version 2 of the License, or (at your
7* option) any later version.
8*
9* This program is distributed in the hope that it will be useful, but WITHOUT
10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12* more details.
13*
14* You should have received a copy of the GNU General Public License along
15* with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef TRINITYCORE_QUEST_MGR_H
19#define TRINITYCORE_QUEST_MGR_H
20
21#include "Define.h"
22#include <span>
23
25class Player;
26
27namespace QuestMgr
28{
29void Load();
30
31// QuestLine
32TC_GAME_API std::span<QuestLineXQuestEntry const* const> GetQuestsForQuestLine(uint32 questLineId);
33
34TC_GAME_API bool IsQuestLineQuestAvailableForPlayer(uint32 questLineId, Player const* player);
35
36TC_GAME_API bool IsQuestLineQuestActiveForPlayer(uint32 questLineId, Player const* player);
37
38TC_GAME_API bool IsQuestLineCompletedByPlayer(uint32 questLineId, Player const* player);
39
42
43TC_GAME_API void SkipQuestLineForPlayer(uint32 questLineId, Player* player);
44
45// Campaign
46TC_GAME_API bool IsCampaignCompletedByPlayer(uint32 campaignId, Player const* player);
47
49
50TC_GAME_API void SkipCampaignForPlayer(uint32 campaignId, Player* player);
51}
52
53#endif // TRINITYCORE_CAMPAIGN_MGR_H
#define TC_GAME_API
Definition Define.h:129
uint32_t uint32
Definition Define.h:154
TC_GAME_API bool IsQuestLineQuestActiveForPlayer(uint32 questLineId, Player const *player)
Definition QuestMgr.cpp:110
TC_GAME_API void SkipCampaignForPlayer(uint32 campaignId, Player *player)
Definition QuestMgr.cpp:205
TC_GAME_API bool IsQuestLineCompletedByPlayer(uint32 questLineId, Player const *player)
Definition QuestMgr.cpp:119
TC_GAME_API bool IsCampaignCompletedByPlayer(uint32 campaignId, Player const *player)
Definition QuestMgr.cpp:156
TC_GAME_API bool IsQuestLineQuestAvailableForPlayer(uint32 questLineId, Player const *player)
Definition QuestMgr.cpp:100
TC_GAME_API bool IsCampaignQuestStatusVisibleForPlayer(uint32 questId, Player const *player)
Definition QuestMgr.cpp:170
TC_GAME_API QuestLineStats GetQuestLineStatsForPlayer(uint32 questLineId, Player const *player)
Definition QuestMgr.cpp:133
void Load()
Definition QuestMgr.cpp:65
TC_GAME_API void SkipQuestLineForPlayer(uint32 questLineId, Player *player)
Definition QuestMgr.cpp:148
TC_GAME_API std::span< QuestLineXQuestEntry const *const > GetQuestsForQuestLine(uint32 questLineId)
Definition QuestMgr.cpp:91