tcgcard_deck
A stack item that's not actually a stack because ORDER MATTERS with a deck of cards! The "top" card of the deck will always be the bottom card in the stack for our purposes.
Procs | |
draw_card | The user draws a single card. The deck is then handled based on how many cards are left. |
---|---|
flip_deck | The user flips the deck, turning it into a face up/down pile, and reverses the order of the cards from top to bottom. |
on_item_removed | Signal handler for COMSIG_STORAGE_REMOVED_ITEM. Qdels src if contents are empty, flips the removed card if needed. |
shuffle_deck | The user shuffles the order of the deck, then closes any visability into the deck's storage to prevent cheesing. *User: The person doing the shuffling, used in visable message and closing UI. *Visible: Will anyone need to hear the visable message about the shuffling? |
Proc Details
draw_card
The user draws a single card. The deck is then handled based on how many cards are left.
flip_deck
The user flips the deck, turning it into a face up/down pile, and reverses the order of the cards from top to bottom.
on_item_removed
Signal handler for COMSIG_STORAGE_REMOVED_ITEM. Qdels src if contents are empty, flips the removed card if needed.
shuffle_deck
The user shuffles the order of the deck, then closes any visability into the deck's storage to prevent cheesing. *User: The person doing the shuffling, used in visable message and closing UI. *Visible: Will anyone need to hear the visable message about the shuffling?