OptionalpersonalityKey: stringActivate AI opponent
PrivateadjustAdjust personality based on training context
PrivatecalculateDeactivate AI opponent
Get AI's current decision for debugging
Get current AI state (for display/debugging)
PrivateisReset AI state
PrivateselectSelect appropriate personality for difficulty level
Check if AI should block incoming attack
Check if AI should counter incoming attack
Update AI behavior (60fps game loop)
Internal method called each frame by the TrainingAI system to process AI decision-making and update state. Respects reaction time delays based on difficulty level.
Time since last frame in seconds
Current player state
Current AI player state (for combat systems)
Updated AI decision or null if inactive/delayed
Update adaptive difficulty based on match performance
TrainingAI System
Manages AI opponent behavior in training mode using existing AI systems. Provides configurable difficulty and realistic martial arts behavior.