Public Member Functions | |
DSDealCardsBaseAction (float dealDelay_=0f) | |
override void | Execute () |
![]() | |
void | Execute () |
void | Resolve () |
string | PrintType () |
Protected Member Functions | |
void | AssignBoilerplateDealData (DSCard card) |
![]() | |
void | LogAction (string actionMessage) |
Protected Attributes | |
DSStack | _fromStack = null |
DSStack | _targetStack = null |
float | _dealDelay = 0f |
DSCardPlacementInDeck | _stackPlacement = DSCardPlacementInDeck.Undefined |
int | _stackExactPlacement = -1 |
int | _cardsInMotionThreshold = 4 |
![]() | |
System.Type | _type = null |
bool | _actionLogged = false |
Properties | |
DSCardPlacementInDeck | stackPlacement [set] |
int | stackExactPlacement [set] |
int | cardsInMotionThreshold [set] |
Base abstract class for all Deal Cards actions.
Action code for "dealing" cards between stacks.
A "deal" is when a card is transferred from one stack to another.
Deal actions are designed to have a single origin stack, even when there are multiple target stacks
For optional properties:
Properites defined as "optional" will need to be set through a cached value.
|
inline |
A common Constructor for all DSDealCardsBaseAction derived classes.
|
inlineprotected |
Boilerplate code for just about every DSDealCardsBaseAction derived class.
This will be called in Execute() methods.
|
abstract |
To be overridden by derived classes.
|
protected |
|
protected |
The dealDelay is a clock that runs when a card is at the beginning of the DSCardMove.cardsWaitingToBeDealt queue. Each card will wait that amount of time, in seconds, before being moved to the cardsInMotion queue, which kicks off the card being transferred to its target stack and then moving to its new position in the target stack.
dealDelay is assigned on a per-card basis, but when cards are sent in a batch, the value is applied to all cards in the batch.
|
protected |
For DealCards Actions that require a stack to deal from.
|
protected |
Optional Property
This allows the cards to be dealt to a specified index position in the target DSStack.cards list.
|
protected |
Optional Property
This allows the cards to be dealt to a specified DSCardPlacementInDeck position in the target stack.
|
protected |
Most DealCards Actions require a target stack to deal to.
|
set |
Optional Property
This property tells the card to wait until the DSCardMover.cardsInMotion list is a certain size before being moved out of cardsWaitingToBeDealt.
This has the effect of gradually splaying the cards out when a batch of cards has been dealt to a stack.
|
set |
Optional Property
This allows the cards to be dealt to a specified index position in the target DSStack.cards list.
|
set |
Optional Property
This allows the cards to be dealt to a specified DSCardPlacementInDeck position in the target stack.