mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-04 03:13:48 +00:00
[FIX] Folder restructure (#2018)
As requested Poll ``` 1. Yes 2. Yes 3. Maybe, but yes ``` --------- Co-authored-by: Celandriel <22352763+Celandriel@users.noreply.github.com>
This commit is contained in:
148
src/Util/BroadcastHelper.h
Normal file
148
src/Util/BroadcastHelper.h
Normal file
@@ -0,0 +1,148 @@
|
||||
#pragma once
|
||||
|
||||
class PlayerbotAI;
|
||||
class Player;
|
||||
class ItemTemplate;
|
||||
class Quest;
|
||||
class Creature;
|
||||
class Group;
|
||||
|
||||
class BroadcastHelper
|
||||
{
|
||||
public:
|
||||
BroadcastHelper();
|
||||
|
||||
public:
|
||||
enum ToChannel
|
||||
{
|
||||
TO_GUILD = 1,
|
||||
TO_WORLD = 2,
|
||||
TO_GENERAL = 3,
|
||||
TO_TRADE = 4,
|
||||
TO_LOOKING_FOR_GROUP = 5,
|
||||
TO_LOCAL_DEFENSE = 6,
|
||||
TO_WORLD_DEFENSE = 7,
|
||||
TO_GUILD_RECRUITMENT = 8
|
||||
};
|
||||
|
||||
static uint8_t GetLocale();
|
||||
static bool BroadcastTest(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastToChannelWithGlobalChance(
|
||||
PlayerbotAI* ai,
|
||||
std::string message,
|
||||
std::list<std::pair<ToChannel, uint32_t>> toChannels
|
||||
);
|
||||
static bool BroadcastLootingItem(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
const ItemTemplate* proto
|
||||
);
|
||||
static bool BroadcastQuestAccepted(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
const Quest* quest
|
||||
);
|
||||
static bool BroadcastQuestUpdateAddKill(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Quest const* quest,
|
||||
uint32_t availableCount,
|
||||
uint32_t requiredCount,
|
||||
std::string obectiveName
|
||||
);
|
||||
static bool BroadcastQuestUpdateAddItem(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Quest const* quest,
|
||||
uint32_t availableCount,
|
||||
uint32_t requiredCount,
|
||||
const ItemTemplate* proto
|
||||
);
|
||||
static bool BroadcastQuestUpdateFailedTimer(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Quest const* quest
|
||||
);
|
||||
static bool BroadcastQuestUpdateComplete(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Quest const* quest
|
||||
);
|
||||
static bool BroadcastQuestTurnedIn(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Quest const* quest
|
||||
);
|
||||
static bool BroadcastKill(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Creature* creature
|
||||
);
|
||||
static bool BroadcastLevelup(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastGuildMemberPromotion(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Player* player
|
||||
);
|
||||
static bool BroadcastGuildMemberDemotion(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Player* player
|
||||
);
|
||||
static bool BroadcastGuildGroupOrRaidInvite(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot,
|
||||
Player* player,
|
||||
Group* group
|
||||
);
|
||||
static bool BroadcastSuggestInstance(
|
||||
PlayerbotAI* ai,
|
||||
std::vector<std::string>& allowedInstances,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastSuggestQuest(
|
||||
PlayerbotAI* ai,
|
||||
std::vector<uint32>& quests,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastSuggestGrindMaterials(
|
||||
PlayerbotAI* ai,
|
||||
std::string item,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastSuggestGrindReputation(
|
||||
PlayerbotAI* ai,
|
||||
std::vector<std::string> levels,
|
||||
std::vector<std::string> allowedFactions,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastSuggestSell(
|
||||
PlayerbotAI* ai,
|
||||
const ItemTemplate* proto,
|
||||
uint32_t count,
|
||||
uint32_t price,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastSuggestSomething(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastSuggestSomethingToxic(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastSuggestToxicLinks(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot
|
||||
);
|
||||
static bool BroadcastSuggestThunderfury(
|
||||
PlayerbotAI* ai,
|
||||
Player* bot
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user