yasuki_core.game_pieces.cards.L5RCard#
- class L5RCard(id: str, name: str, side: yasuki_core.game_pieces.constants.Side, printed_id: str | None = None, clan: str | None = None, clans: tuple[str, ...]=(), keywords: tuple[str, ...]=(), traits: tuple[str, ...]=(), card_type: str | None = None, creates: tuple[str, ...]=(), text: str = '', is_unique: bool = False, bowed: bool = False, face_up: bool = True, inverted: bool = False, counters: dict[str, int]=<factory>, image_front: pathlib._local.Path | None = None, image_back: pathlib._local.Path | None = None, owner: yasuki_core.engine.players.PlayerId | None = None, shown: bool = False, peekers: frozenset[yasuki_core.engine.players.PlayerId] = frozenset(), back_card_id: str | None = None, back: 'L5RCard | None' = None, showing_back: bool = False, is_token: bool = False, art_swap: dict | None = None, note: str | None = None)[source]#
Methods
L5RCard.__init__(id, name, side[, ...])L5RCard.add_peeker(seat)L5RCard.adjust_counter(name, delta)Add
deltato the named counter, flooring at zero.L5RCard.remove_peeker(seat)L5RCard.set_note(text)L5RCard.set_owner(owner)Attributes
idnamesideprinted_idclanclanskeywordstraitscard_typecreatestextis_uniquebowedface_upinvertedcountersimage_frontimage_backownershownpeekersback_card_idbackshowing_backis_tokenart_swapnoteactive_faceThe face currently presented: the back card when flipped to it, otherwise this card.