DeckStacker v1.0
A card game engine for Unity games
 
Loading...
Searching...
No Matches
DeckStacker.DSDealCardsToStackListAction Class Reference
Inheritance diagram for DeckStacker.DSDealCardsToStackListAction:
DeckStacker.DSDealCardsBaseAction DeckStacker.DSAction

Public Member Functions

 DSDealCardsToStackListAction (DSStack fromStack_, List< DSStack > targetStacks_, int howManyCardsPerStack_, 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 version is for when you want to deal a number of cards from a single stack to multiple other stacks.

Example: A main deck dealing 2 cards each, to 3 other stacks.

Constructor & Destructor Documentation

◆ DSDealCardsToStackListAction()

DeckStacker.DSDealCardsToStackListAction.DSDealCardsToStackListAction ( DSStack fromStack_,
List< DSStack > targetStacks_,
int howManyCardsPerStack_,
float dealDelay_ = 0f )
inline

Standard Constructor

  • fromStack = the DSStack that is dealing the cards out.
  • targetStacks = a list of stacks that will get an allotment of cards from fromStack.
  • howManyCardsPerStack = the number of cards the fromStack is attempting to deal to each target stack.

Member Function Documentation

◆ Execute()

override void DeckStacker.DSDealCardsToStackListAction.Execute ( )
inline

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