Commit Graph
8 Commits
Author SHA1 Message Date
Shauren 7274ff07fb Core/Misc: Reduce memory usage when data query cache is disabled in config
Signed-off-by: luis <[email protected]>
2026-03-13 19:34:15 -03:00
agathoandClaude Opus 4.5 2277d32f74 feat(movement): Port BotMovement system Phase 1 from playerbot-dev
Port movement system refactoring commits from TrinityCore playerbot-dev:
- Phase 1.1: Core Infrastructure Setup (BotMovementDefines, ValidationResult)
- Phase 1.2: Configuration System (BotMovementConfig)
- Phase 1.3: BotMovementManager Singleton
- Phase 1.6: BotMovementController Base Implementation
- Phase 1.7: Integration Testing

Movement System Components:
- BotMovementManager: Singleton managing bot movement globally
- BotMovementController: Per-bot movement control
- BotMovementConfig: Configuration with validation levels and thresholds
- PositionValidator: Position bounds and map ID validation
- GroundValidator: Ground/terrain validation
- PathCache: Path caching for performance
- MovementMetrics: Movement statistics tracking
- ValidationResult: Validation result structures

Key Features:
- ValidationLevel enum (None, Basic, Standard, Strict)
- MovementStateType enum (Idle, Ground, Swimming, Flying, Falling, Stuck)
- RecoveryLevel progressive recovery (5 levels from path recalculation to evade)
- Stuck detection with configurable thresholds
- Path caching with configurable TTL
- NaN/Infinity coordinate detection
- Map ID validation
- Comprehensive integration tests

Ported commits:
- ad0cf3c6af Phase 1.1 - Core Infrastructure Setup
- a819487d00 Phase 1.2 - Configuration System
- 4abacbc805, f6aab87e7d, 7713626fc0 Phase 1.3 - BotMovementManager
- f96836f550 Phase 1.6 - BotMovementController Base
- 79ddf8479d Phase 1.7 - Integration Testing

Co-Authored-By: Claude Opus 4.5 <[email protected]>
2026-01-27 17:49:19 +01:00
agathoandClaude Opus 4.5 5215722b7e fix(ci): Link tests to playerbot library for Phase5 tests
The Phase5 tests use DecisionFusionSystem, ActionPriorityQueue, and
BehaviorTree which are defined in playerbot-ai-base library.

Add conditional linking to playerbot target when BUILD_PLAYERBOT is enabled.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Signed-off-by: luis <[email protected]>
2026-01-23 19:33:14 -03:00
agathoandClaude Opus 4.5 fe030ac19e fix(ci): Align Phase5 test files with actual header interfaces
- Change SpellPriority::OPTIONAL to OPTIONAL_PRIORITY (line 69)
- Fix DecisionResult: recommendedAction -> actionId
- Fix DecisionResult: confidence -> consensusScore
- Fix DecisionResult: totalVotes -> contributingVotes.size()
- Fix DecisionResult: reasoning -> fusionReasoning
- Remove non-existent winningSource field references
- Fix SetSystemWeights call (5 floats, not array)
- Fix ResetStatistics -> ResetStats
- Remove non-existent SetUrgencyThreshold/GetUrgencyThreshold
- Fix CombatContext to use 8 values (no RAID_MYTHIC)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Signed-off-by: luis <[email protected]>
2026-01-23 19:32:16 -03:00
agatho c068170d74 fix(ci): Fix namespace in Phase5 test files
- Change 'using namespace bot::ai' to 'using namespace Playerbot::bot::ai'

Signed-off-by: luis <[email protected]>
2026-01-22 21:41:13 -03:00
agatho ce80b6ce5f fix(ci): Add Playerbot include directories to tests CMakeLists.txt
- tests/CMakeLists.txt: Add Playerbot module include paths
- Fix include paths in all Phase5 test files to use relative paths

Signed-off-by: luis <[email protected]>
2026-01-22 21:40:10 -03:00
agatho 4d3216a2b9 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]>
2026-01-22 21:38:45 -03:00
luis 62ea7784c4 full source 2026-01-20 21:37:09 -03:00