[−][src]Module diplomacy::judge
Contains the logic needed to adjudicate a turn.
Re-exports
pub use self::support::SupportOutcome; |
Modules
build | Resolver for build phases. |
retreat | Types and functions to set up, adjudicate, and report on a retreat phase. |
support | Contains helper functions for evaluating the success of support commands during the main phase of a turn. |
Structs
Outcome | Contains information about the outcome of a turn, used for reporting back to players and for setting up the next turn. |
ResolverContext | The immutable inputs for a resolution equation. |
ResolverState | |
Rulebook | The standard Diplomacy rules. |
Enums
AttackOutcome | |
ConvoyOutcome | |
HoldOutcome | |
OrderOutcome | The outcome of a specific order. The variant of the outcome will match the issued order type. |
OrderState | Struct representing the success or failure of an order. The meaning of success and failure is contextually-dependent, and should be derived from the outcome map of a resolution cycle. |
Traits
Adjudicate | A clonable container for a rulebook which can be used to adjudicate a turn. |
Functions
adjudicate | Adjudicate a set of orders |
Type Definitions
MappedBuildOrder | |
MappedMainOrder | |
MappedRetreatOrder |