Flips the card.
the card informations
Optionalsettings: FlipCardSettingsthe flip params (to update the card in current stock)
the card height set in the settings (undefined if unset)
the filtering to apply on card click events. Default 'selectable'.
the card height set in the settings (undefined if unset)
Return the card rotation.
Use getCardRotation from settings if set, else will return 0
the card informations
the card rotation
the card informations
the HTML element of the faces of the card
the HTML element of the card
the HTML element of the faces of the card
the card with set in the settings (undefined if unset)
the style to apply to the last played card. Default to class 'bga-cards_last-played-card'.
the style to apply to selectable cards. Default to class 'bga-cards_selectable-card'.
the style to apply to selectable slots. Default to class 'bga-cards_selectable-slot'.
the style to apply to selected cards. Default to class 'bga-cards_selected-card'.
the style to apply to selected slots. Default to class 'bga-cards_selected-slot'.
the type of the cards, either set in the settings or by using a default one if there is only 1 type.
the style to apply to unselectable cards. Default to class 'bga-cards_unselectable-card'.
the style to apply to unselectable slots. Default to class 'bga-cards_unselectable-slot'.
Return if the card passed as parameter is suppose to be visible or not.
Use isCardVisible from settings if set, else will check if card.type is defined
the card informations
the visiblility of the card (true means front side should be displayed)
Place a card based on the autoPlace settings of each stock.
Place some cards based on the autoPlace settings of each stock.
Remove a card.
the card to remove
Optionalsettings: RemoveCardSettingsa RemoveCardSettings object
Set the card to its front (visible) or back (not visible) side.
the card informations
Optionalvisible: booleanif the card is set to visible face. If unset, will use isCardVisible(card)
Optionalsettings: FlipCardSettingsthe flip params (to update the card in current stock)
Mark the last play card. Remove the other last play card classes.
the card to mark as last played
Optionalcolor: stringthe color to use to mark the last played card, usually the player color
OptionalcardClass: stringa class applied on this type of cards, to limit removal to these type of cards.
Mark the last play cards. Remove the other last play card classes.
the cards to mark as last played
Optionalcolor: stringthe color to use to mark the last played card, usually the player color
OptionalcardClass: stringa class applied on this type of cards, to limit removal to these type of cards.
Update the card informations. Used when a card with just an id (back shown) should be revealed, with all data needed to populate the front.
the card informations
Optionalsettings: Omit<FlipCardSettings, "updateData">
a
CardManagerSettingsobject