DeckStacker v1.0
A card manager plugin for Unity games.
 
Loading...
Searching...
No Matches
DeckStacker.DSDealCardsAction Class Reference
Inheritance diagram for DeckStacker.DSDealCardsAction:
DeckStacker.DSDealCardsBaseAction DeckStacker.DSAction

Public Member Functions

 DSDealCardsAction (DSStack fromStack_, DSStack targetStack_, float dealDelay_=0f)
 
 DSDealCardsAction (DSStack fromStack_, DSStack targetStack_, int howManyCards_, float dealDelay_=0f)
 
override void Execute ()
 
- Public Member Functions inherited from DeckStacker.DSDealCardsBaseAction
 DSDealCardsBaseAction (float dealDelay_=0f)
 
override void Execute ()
 
- Public Member Functions inherited from DeckStacker.DSAction
void Execute ()
 
void Resolve ()
 
string PrintType ()
 

Additional Inherited Members

- Protected Member Functions inherited from DeckStacker.DSDealCardsBaseAction
void AssignBoilerplateDealData (DSCard card)
 
- Protected Member Functions inherited from DeckStacker.DSAction
void LogAction (string actionMessage)
 
- Protected Attributes inherited from DeckStacker.DSDealCardsBaseAction
DSStack _fromStack = null
 
DSStack _targetStack = null
 
float _dealDelay = 0f
 
DSCardPlacementInDeck _stackPlacement = DSCardPlacementInDeck.Undefined
 
int _stackExactPlacement = -1
 
int _cardsInMotionThreshold = 4
 
- Protected Attributes inherited from DeckStacker.DSAction
System.Type _type = null
 
bool _actionLogged = false
 
- Properties inherited from DeckStacker.DSDealCardsBaseAction
DSCardPlacementInDeck stackPlacement [set]
 
int stackExactPlacement [set]
 
int cardsInMotionThreshold [set]
 

Detailed Description

Derived from DSDealCardsBaseAction.
This Deal Cards action is designed for dealing cards off the top of 1 stack to a single target stack.

Constructor & Destructor Documentation

◆ DSDealCardsAction() [1/2]

DeckStacker.DSDealCardsAction.DSDealCardsAction ( DSStack fromStack_,
DSStack targetStack_,
float dealDelay_ = 0f )
inline

Default is dealing all cards from fromStack to targetStack.

◆ DSDealCardsAction() [2/2]

DeckStacker.DSDealCardsAction.DSDealCardsAction ( DSStack fromStack_,
DSStack targetStack_,
int howManyCards_,
float dealDelay_ = 0f )
inline

If howManyCards is given, then we only send that amount from fromStack to targetStack, taken from the top of the stack.

Member Function Documentation

◆ Execute()

override void DeckStacker.DSDealCardsAction.Execute ( )
inline

The documentation for this class was generated from the following file: