yasuki_core.engine.intents.MoveCard#
- class MoveCard(card_id, to, position=None, to_bottom=False, index=None, face_down=False)[source]#
Move one card to a zone, deck, or the shared battlefield.
The universal mover behind hand↔battlefield↔zone↔deck transfers.
positionis set only whentois the battlefield, giving the card its table coordinates.to_bottomapplies only to a deck destination: True slides the card under the deck instead of onto its top.indexapplies only to a hand destination: the slot the card lands in, clamped into range; None appends it.face_downapplies only to a battlefield destination: True lays the card face down as it lands and privately peeks it back to the acting seat, so its owner still reads their own card (focusing in a duel) while the opponent sees only a back.Methods
MoveCard.__init__(card_id, to[, position, ...])Attributes
card_idtopositionto_bottomindexface_downop