Top-level code for combat system.