![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Functions | |
| PlaymatInfo | resolveEffectivePlaymat (const DeckList &deck, const PlaymatInfo &force, const QList< PlaymatInfo > &fallbackList, PlaymatFallbackMode fallbackMode, int rotationIndex) |
| Resolves the effective playmat for a deck per the resolution chain: force override > deck-configured playmat > fallback list > none. | |
| PlaymatInfo | resolvePlaymatForDeck (const DeckList &deck, const QList< PlaymatInfo > &fallbackList, PlaymatMode mode, PlaymatFallbackMode fallbackBehavior, int rotationIndex) |
| Resolves the playmat to display for a deck according to the user's collection mode (PlaymatMode), combining the deck with the given fallback list. | |
| PlaymatInfo resolveEffectivePlaymat | ( | const DeckList & | deck, |
| const PlaymatInfo & | force, | ||
| const QList< PlaymatInfo > & | fallbackList, | ||
| PlaymatFallbackMode | fallbackMode, | ||
| int | rotationIndex ) |
Resolves the effective playmat for a deck per the resolution chain: force override > deck-configured playmat > fallback list > none.
| deck | The deck to resolve a playmat for. |
| force | An optional user-level override; wins over everything. Pass an empty PlaymatInfo::card to skip it. |
| fallbackList | User-level fallback playmats, consulted only when the deck has no configured playmat. |
| fallbackMode | How fallbackList is consulted (ignored when empty). |
| rotationIndex | In/out cursor for PlaymatFallbackModeRoundRobin; advanced once per call. Unused for the other modes. |
| PlaymatInfo resolvePlaymatForDeck | ( | const DeckList & | deck, |
| const QList< PlaymatInfo > & | fallbackList, | ||
| PlaymatMode | mode, | ||
| PlaymatFallbackMode | fallbackBehavior, | ||
| int | rotationIndex ) |
Resolves the playmat to display for a deck according to the user's collection mode (PlaymatMode), combining the deck with the given fallback list.
| deck | The deck to resolve a playmat for. |
| fallbackList | User-level fallback playmats. |
| mode | How the collection interacts with the deck-configured playmat. |
| fallbackBehavior | How fallbackList is picked from. |
| rotationIndex | Cursor for PlaymatFallbackModeRoundRobin. |