controller/ludo_controller library
Classes
- LudoController
- Owns a game of Ludo: holds the current LudoGameState, applies rolls and moves through LudoEngine, animates piece movement step by step, and plays turns automatically for bot seats.
Typedefs
- LudoDiceRolledCallback = void Function(int value)
-
LudoGameFinishedCallback
= void Function(List<
int> winnersInOrder) - LudoPieceCapturedCallback = void Function(LudoPiece captured, LudoPiece by)
- LudoPieceMovedCallback = void Function(LudoPiece piece, int from, int to)
- LudoPlayerWonCallback = void Function(int playerIndex, int place)
- LudoTeamWonCallback = void Function(LudoTeam team)
- Fired when a full team wins in teams mode.
- LudoTurnChangedCallback = void Function(int value)
- LudoTurnForfeitedCallback = void Function(int playerIndex, int place)
- Fired when a roll is forfeited by LudoDiceRules.forfeitStreak.