Skip to main content

Module attack_requirement

Module attack_requirement 

Source

Structs§

AttackRequirement
Represents a requirement for a creature to attack. Mirrors Java’s AttackRequirement.java.

Functions§

compute_attack_requirements
Compute attack requirements for all available creatures. Returns a list of requirements — creatures that must attack if able.
compute_attack_requirements_with_defenders
Compute attack requirements with a full list of possible defenders.
must_attack_ids
Get all creature IDs that must attack (from requirements).