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

Public Member Functions

 DSDistributeCardsBetweenStackListAction (DSStack fromStack_, List< DSStack > targetStackList_, float dealDelay_)
 DSDistributeCardsBetweenStackListAction (DSStack fromStack_, List< DSStack > targetStackList_, int preferredCardsPerStack_=1, DSItemDistribution cardDistribution_=DSItemDistribution.Even, DSDistributionWeight distributionWeight_=DSDistributionWeight.End, float dealDelay_=0f)
 DSDistributeCardsBetweenStackListAction (List< DSCard > cardList_, List< DSStack > targetStackList_, float dealDelay_)
 DSDistributeCardsBetweenStackListAction (List< DSCard > cardList_, List< DSStack > targetStackList_, int preferredCardsPerStack_=1, DSItemDistribution cardDistribution_=DSItemDistribution.Even, DSDistributionWeight distributionWeight_=DSDistributionWeight.End, 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.DSAction
void LogAction (string actionMessage)
Protected Attributes inherited from DeckStacker.DSAction
System.Type _type = null
bool _actionLogged = false

Detailed Description

This action will use the DSItemDistributor to split up a list of cards, and distribute them between several stacks.

Default distribution is Even and weighted at the end of the stack list.

Constructor & Destructor Documentation

◆ DSDistributeCardsBetweenStackListAction() [1/4]

DeckStacker.DSDistributeCardsBetweenStackListAction.DSDistributeCardsBetweenStackListAction ( DSStack fromStack_,
List< DSStack > targetStackList_,
float dealDelay_ )
inline

Use this constructor if you want to capture a stack's card list at the time of Execute(). (Short Version)

  • fromStack = the DSStack that will distribute all its cards.
  • targetStackList = a prepared DSStack list that will have cards distributed to.

◆ DSDistributeCardsBetweenStackListAction() [2/4]

DeckStacker.DSDistributeCardsBetweenStackListAction.DSDistributeCardsBetweenStackListAction ( DSStack fromStack_,
List< DSStack > targetStackList_,
int preferredCardsPerStack_ = 1,
DSItemDistribution cardDistribution_ = DSItemDistribution::Even,
DSDistributionWeight distributionWeight_ = DSDistributionWeight::End,
float dealDelay_ = 0f )
inline

Use this constructor if you want to capture a stack's card list at the time of Execute(). (Full Version)

  • fromStack = the DSStack that will distribute all its cards.
  • targetStackList = a prepared DSStack list that will have cards distributed to.
  • preferredCardsPerStack = the amount of cards a stack will get before DSItemDistributor starts distributing to additional stacks.
  • cardDistribution = DSItemDistribution setting
  • distributionWeight = DSDistributionWeight setting

◆ DSDistributeCardsBetweenStackListAction() [3/4]

DeckStacker.DSDistributeCardsBetweenStackListAction.DSDistributeCardsBetweenStackListAction ( List< DSCard > cardList_,
List< DSStack > targetStackList_,
float dealDelay_ )
inline

Use this constructor if you know the list of cards you want to distrubute at the time the action is queued. (Short Version)

  • cardList = the DSCard list of cards that will be distributed between stacks.
  • targetStackList = a prepared DSStack list that will have cards distributed to.

◆ DSDistributeCardsBetweenStackListAction() [4/4]

DeckStacker.DSDistributeCardsBetweenStackListAction.DSDistributeCardsBetweenStackListAction ( List< DSCard > cardList_,
List< DSStack > targetStackList_,
int preferredCardsPerStack_ = 1,
DSItemDistribution cardDistribution_ = DSItemDistribution::Even,
DSDistributionWeight distributionWeight_ = DSDistributionWeight::End,
float dealDelay_ = 0f )
inline

Use this constructor if you know the list of cards you want to distrubute at the time the action is queued. (Full Version)

  • cardList = the DSCard list of cards that will be distributed between stacks.
  • targetStackList = a prepared DSStack list that will have cards distributed to.
  • preferredCardsPerStack = the amount of cards a stack will get before DSItemDistributor starts distributing to additional stacks.
  • cardDistribution = DSItemDistribution setting
  • distributionWeight = DSDistributionWeight setting

Member Function Documentation

◆ Execute()

override void DeckStacker.DSDistributeCardsBetweenStackListAction.Execute ( )
inline

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