[][src]Module weasel::round

Everything related to the battle's turns and rounds.

Structs

EndRound

Event to trigger the end of the current round.

EndRoundTrigger

Trigger to build and fire an EndRound event.

EndTurn

Event to end the current turn.

EndTurnTrigger

Trigger to build and fire an EndTurn event.

EnvironmentTurn

Event to perform a collective turn for the environment's inanimate entities.
The purpose of this event is to update the statuses of all objects.

EnvironmentTurnTrigger

Trigger to build and fire an EnvironmentTurn event.

ResetRounds

Event to reset the rounds model.

ResetRoundsTrigger

Trigger to build and fire a ResetRounds event.

Rounds

Manages the battle's rounds. The main purpose is to tell which actor(s) will act next.

StartTurn

Event to make an actor start a new turn.

StartTurnTrigger

Trigger to build and fire a StartTurn event.

Enums

TurnState

State machine to manage the turns' state.

Traits

RoundsRules

Rules to determine the order of turns among actors.

Type Definitions

RoundsCount

Type for counting the number of rounds.

RoundsModel

Type to store all information about the order of turns and rounds in the game.

RoundsSeed

Type to represent a rounds seed. It is used to bootstrap the RoundsModel for a game.

TurnStateType

TurnState alias parameterized on the BattleRules R.

TurnsCount

Type for counting the number of turns.