File size: 865 Bytes
2b9a95b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | """
Game module - Pure judgment functions.
This module contains the game mechanics that are INDEPENDENT of SCM.
All functions here are pure: given DroneState, return JudgmentResult.
Key principle: Game knows NOTHING about environment or SCM.
All effects are pre-computed in DroneState.
"""
from .judge import (
judge_survival,
SurvivalJudge,
CRITICAL_COMPONENTS,
FAILURE_REASONS,
)
from .damage import (
calculate_damage,
apply_def_reduction,
DamageCalculator,
)
from .combat import (
simulate_combat,
CombatSimulator,
CombatConfig,
)
__all__ = [
# Judge
'judge_survival',
'SurvivalJudge',
'CRITICAL_COMPONENTS',
'FAILURE_REASONS',
# Damage
'calculate_damage',
'apply_def_reduction',
'DamageCalculator',
# Combat
'simulate_combat',
'CombatSimulator',
'CombatConfig',
]
|