Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.0
    Preparing search index...

    Class CombatInjuryIntegration

    Combat Injury Integration Handler.

    Korean: 전투 부상 통합 핸들러

    Processes combat damage events and records injuries for visualization. Automatically maps damage types to injury types and applies blood effects.

    // Recommended: Use PlayerInjuryTrackingManager for per-player tracking
    import { playerInjuryManager } from '@/systems/bodypart';
    const integration = playerInjuryManager.getIntegrationForPlayer('player-1');

    // Or create with explicit tracker for testing/custom scenarios
    const handler = new CombatInjuryIntegration({
    ...DEFAULT_COMBAT_INJURY_CONFIG,
    tracker: new InjuryTracker(),
    });

    // Record combat damage
    handler.recordCombatDamage({
    damage: 35,
    bodyRegion: BodyRegion.TORSO,
    damageType: DamageType.BLUNT,
    });

    // Get injuries for visualization
    const injuries = handler.getInjuries();
    Index

    Constructors

    Methods

    • Record injury from combat damage event.

      Korean: 전투 피해로부터 부상 기록

      Automatically determines injury type from damage type and applies appropriate visual effects.

      Parameters

      Returns boolean

      Whether injury was recorded (false if damage too low)

    • Check if damage should trigger blood effects.

      Korean: 피해가 출혈 효과를 발생시켜야 하는지 확인

      Parameters

      • damage: number

        Damage amount

      Returns boolean

      Whether to show blood effects

    Properties

    tracker: InjuryTracker