yasuki_gui.visuals.cardface.HiddenFace#

class HiddenFace(id, side, owner, bowed=False, inverted=False, face_up=False, shown=False, note=None, image_front=None, image_back=None, name='')[source]#

A back-only render facade for a redacted HiddenCard.

Exposes the card-render interface the visuals read — face_up False, no front art, a known side and image_back for the back — so a hidden card draws as a face-down back without the visuals special-casing it. active_face returns self so the visuals’ card.active_face.image_front and .name reads resolve harmlessly while the back draws.

Attributes:
idstr

The hidden card’s stable id, so a sprite can still be keyed and animated.

sideSide

Which back art to draw.

ownerPlayerId or None

Whose card it is — public even while the face is secret.

Methods

HiddenFace.__init__(id, side, owner[, ...])

Attributes

id

side

owner

bowed

inverted

face_up

shown

note

image_front

image_back

name

active_face