PrivatecalculatePrivatecalculatePrivatecalculateCalculate direct approach position (straight line to opponent) Used primarily by Musa archetype for charging attacks
PrivatecalculateCalculate flanking approach position (diagonal/side approach) Used primarily by Amsalja archetype for stealth positioning
PrivatecalculatePrivateclampPrivatedecidePrivateevaluateEvaluate approach tactics with archetype-specific behavior
Korean Philosophy (접근 전략):
PrivateevaluateEvaluate close range tactics with vital point targeting
Korean Philosophy (급소 공격): At close range, AI targets specific vital points based on difficulty level. Higher difficulty = more precise targeting of critical points.
PrivateevaluateEvaluate combo initiation (fix for issue #2529467014)
PrivateevaluateEvaluate counter-attack opportunity
PrivateevaluateEvaluate defensive tactics
PrivateevaluatePrivateevaluateEvaluate mid-range tactics with distance awareness
Korean Philosophy (중거리 전술):
PrivateevaluateEvaluate stance change using TrigramSystem
Korean Philosophy (자세 전환): Uses I Ching-based trigram system to find optimal stance transitions. Considers resource costs, counter-stance effectiveness, and archetype preferences. Each archetype has favored stances that they switch to more frequently.
PrivateevaluateEvaluate survival tactics when critically low health
Korean Philosophy (생존 전략):
PrivategetGet archetype-specific movement bias multipliers
Applies movement pattern modifiers based on archetype behavior profiles:
PrivategetGet optimal combat range based on AI personality archetype
Uses archetype behavior profiles to determine preferred combat distance. Range is converted from cell units to pixels (1 cell = ~40px).
Make strategic decision based on combat context
Applies difficulty-based reaction time delays if difficulty parameters are set
Reset decision state
PrivateselectSelect counter-stance to opponent's stance (fix for issue #2529466994) Implements actual counter logic based on Korean martial arts philosophy
PrivateselectSelect vital point to target based on difficulty and stance
Korean Philosophy (급소 선택):
Set AI difficulty level for vital point targeting accuracy
0.0 (beginner) to 1.0 (master)
Set difficulty parameters for AI behavior Affects reaction time, accuracy, decision quality, etc.
Calculates a randomized reaction delay (within parameter range) once when parameters change. This provides varied AI timing while maintaining consistent behavior throughout the current parameter set.
Difficulty parameters to apply
PrivateconsecutivePrivatecurrentPrivatedecisionPrivatedifficultyPrivate OptionaldifficultyPrivatelastPrivatelastPrivate ReadonlystancePrivatetrigramStatic ReadonlyARENA_Arena boundary margins - exported for test validation These values represent the player character size/collision margins
Static ReadonlyARENA_Private Static ReadonlyMIN_Private Static ReadonlyMOVE_
AI Decision Tree System
Korean Combat Philosophy (한국 무술 철학): This system embodies traditional Korean martial arts principles: