fix(ci): Add all missing override keywords in BotSpawner.h and fix test include path
- BotSpawner.h: Add override to all IBotSpawner interface methods - ActionPriorityQueue_tests.cpp: Fix include path to use CMake include dirs Signed-off-by: luis <[email protected]>
This commit is contained in:
@@ -132,21 +132,21 @@ public:
|
|||||||
void SetConfig(SpawnConfig const& config) override { _config = config; }
|
void SetConfig(SpawnConfig const& config) override { _config = config; }
|
||||||
|
|
||||||
// Single bot spawning
|
// Single bot spawning
|
||||||
bool SpawnBot(SpawnRequest const& request);
|
bool SpawnBot(SpawnRequest const& request) override;
|
||||||
|
|
||||||
// Batch spawning
|
// Batch spawning
|
||||||
uint32 SpawnBots(::std::vector<SpawnRequest> const& requests);
|
uint32 SpawnBots(::std::vector<SpawnRequest> const& requests) override;
|
||||||
|
|
||||||
// Population management
|
// Population management
|
||||||
void SpawnToPopulationTarget();
|
void SpawnToPopulationTarget() override;
|
||||||
void UpdatePopulationTargets();
|
void UpdatePopulationTargets() override;
|
||||||
void DespawnBot(ObjectGuid guid, bool forced = false);
|
void DespawnBot(ObjectGuid guid, bool forced = false) override;
|
||||||
bool DespawnBot(ObjectGuid guid, ::std::string const& reason);
|
bool DespawnBot(ObjectGuid guid, ::std::string const& reason) override;
|
||||||
void DespawnAllBots();
|
void DespawnAllBots() override;
|
||||||
|
|
||||||
// Zone management
|
// Zone management
|
||||||
void UpdateZonePopulation(uint32 zoneId, uint32 mapId);
|
void UpdateZonePopulation(uint32 zoneId, uint32 mapId) override;
|
||||||
void UpdateZonePopulationSafe(uint32 zoneId, uint32 mapId);
|
void UpdateZonePopulationSafe(uint32 zoneId, uint32 mapId) override;
|
||||||
ZonePopulation GetZonePopulation(uint32 zoneId) const override;
|
ZonePopulation GetZonePopulation(uint32 zoneId) const override;
|
||||||
::std::vector<ZonePopulation> GetAllZonePopulations() const override;
|
::std::vector<ZonePopulation> GetAllZonePopulations() const override;
|
||||||
|
|
||||||
@@ -159,11 +159,11 @@ public:
|
|||||||
|
|
||||||
// Statistics
|
// Statistics
|
||||||
SpawnStats const& GetStats() const override { return _stats; }
|
SpawnStats const& GetStats() const override { return _stats; }
|
||||||
void ResetStats();
|
void ResetStats() override;
|
||||||
|
|
||||||
// Player login detection
|
// Player login detection
|
||||||
void OnPlayerLogin();
|
void OnPlayerLogin() override;
|
||||||
void CheckAndSpawnForPlayers();
|
void CheckAndSpawnForPlayers() override;
|
||||||
|
|
||||||
// Population caps
|
// Population caps
|
||||||
bool CanSpawnMore() const override;
|
bool CanSpawnMore() const override;
|
||||||
@@ -171,15 +171,15 @@ public:
|
|||||||
bool CanSpawnOnMap(uint32 mapId) const override;
|
bool CanSpawnOnMap(uint32 mapId) const override;
|
||||||
|
|
||||||
// Runtime control
|
// Runtime control
|
||||||
void SetEnabled(bool enabled) { _enabled = enabled; }
|
void SetEnabled(bool enabled) override { _enabled = enabled; }
|
||||||
bool IsEnabled() const override { return _enabled.load(); }
|
bool IsEnabled() const override { return _enabled.load(); }
|
||||||
|
|
||||||
// Configuration methods
|
// Configuration methods
|
||||||
void SetMaxBots(uint32 maxBots) { _config.maxBotsTotal = maxBots; }
|
void SetMaxBots(uint32 maxBots) override { _config.maxBotsTotal = maxBots; }
|
||||||
void SetBotToPlayerRatio(float ratio) { _config.botToPlayerRatio = ratio; }
|
void SetBotToPlayerRatio(float ratio) override { _config.botToPlayerRatio = ratio; }
|
||||||
|
|
||||||
// Chat command support - Create new bot character and spawn it
|
// Chat command support - Create new bot character and spawn it
|
||||||
bool CreateAndSpawnBot(uint32 masterAccountId, uint8 classId, uint8 race, uint8 gender, ::std::string const& name, ObjectGuid& outCharacterGuid);
|
bool CreateAndSpawnBot(uint32 masterAccountId, uint8 classId, uint8 race, uint8 gender, ::std::string const& name, ObjectGuid& outCharacterGuid) override;
|
||||||
|
|
||||||
// Create bot character (database record) using async-safe path via sPlayerbotCharDB
|
// Create bot character (database record) using async-safe path via sPlayerbotCharDB
|
||||||
// Used by InstanceBotPool for pool warmup when BotCharacterCreator would crash
|
// Used by InstanceBotPool for pool warmup when BotCharacterCreator would crash
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tc_catch2.h"
|
#include "tc_catch2.h"
|
||||||
#include "modules/Playerbot/AI/Decision/ActionPriorityQueue.h"
|
#include "AI/Decision/ActionPriorityQueue.h"
|
||||||
#include "modules/Playerbot/AI/Decision/DecisionFusionSystem.h"
|
#include "AI/Decision/DecisionFusionSystem.h"
|
||||||
|
|
||||||
using namespace bot::ai;
|
using namespace bot::ai;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user