rndbot teleport to city

This commit is contained in:
Yunfan Li
2023-10-27 21:54:35 +08:00
parent 966c33f944
commit 917e55c92a
5 changed files with 127 additions and 345 deletions

View File

@@ -69,6 +69,7 @@ class RandomPlayerbotMgr : public PlayerbotHolder
uint32 GetTradeDiscount(Player* bot, Player* master);
void Refresh(Player* bot);
void RandomTeleportForLevel(Player* bot);
void RandomTeleportGrindForLevel(Player* bot);
void RandomTeleportForRpg(Player* bot);
uint32 GetMaxAllowedBotCount();
bool ProcessBot(Player* player);
@@ -122,6 +123,8 @@ class RandomPlayerbotMgr : public PlayerbotHolder
std::vector<Player*> players;
uint32 processTicks;
std::map<uint8, std::vector<WorldLocation>> locsPerLevelCache;
std::map<uint8, std::vector<WorldLocation>> bankerLocsPerLevelCache;
// std::map<uint32, std::vector<WorldLocation>> rpgLocsCache;
std::map<uint32, std::map<uint32, std::vector<WorldLocation>>> rpgLocsCacheLevel;
std::map<TeamId, std::map<BattlegroundTypeId, std::vector<uint32>>> BattleMastersCache;