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

Public Member Functions

 DSDealCardsListAction (List< DSCard > dealtCards_, float dealDelay_=0f)
 
 DSDealCardsListAction (List< DSCard > dealtCards_, DSStack targetStack_, 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 specific list of cards to one or more stacks.

Requirements:

  1. The list of cards will need to be prepared before this object is constructed.
  2. Target stacks will be assigned on a per-card basis.
  3. OR A common target stack can be provided with the second constructor overload.

Example: Reloading a table / level's state from saved game data.

  1. First you make all the necessary cards (assigning them to a list),
  2. then assign where they will go,
  3. then this action will send them to their places.

Constructor & Destructor Documentation

◆ DSDealCardsListAction() [1/2]

DeckStacker.DSDealCardsListAction.DSDealCardsListAction ( List< DSCard > dealtCards_,
float dealDelay_ = 0f )
inline

This constructor is for a list of cards that will have their target stacks defined outside of this DSAction.

◆ DSDealCardsListAction() [2/2]

DeckStacker.DSDealCardsListAction.DSDealCardsListAction ( List< DSCard > dealtCards_,
DSStack targetStack_,
float dealDelay_ = 0f )
inline

This constructor is for a list of cards that will all be going to the same target stack.

Member Function Documentation

◆ Execute()

override void DeckStacker.DSDealCardsListAction.Execute ( )
inline

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