Skip to main content

decide

Function decide 

Source
pub fn decide(
    state: &CombatState,
    command: &CombatCommand,
    dice: &mut dyn Dice,
) -> Result<Vec<CombatEvent>, CombatError>
Expand description

Decides what events a command produces. Never returns an empty list: a command that would change nothing is an error, so every accepted command is visible in the log.