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

Public Member Functions

 DSMoveCardInDirAction (DSCard singleMovingCard_, Vector3 directionV3_, float dealDelay_=0f)
 
 DSMoveCardInDirAction (List< DSCard > movingCards_, Vector3 directionV3_, 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

Moves a card in the specified vector3 direction.

directionV3 input is in localspace.
The distance moved is the magnitude of the given vector.

Constructor & Destructor Documentation

◆ DSMoveCardInDirAction() [1/2]

DeckStacker.DSMoveCardInDirAction.DSMoveCardInDirAction ( DSCard singleMovingCard_,
Vector3 directionV3_,
float dealDelay_ = 0f )
inline

Constructor overload for a single card.

  • singleMovingCard = the DSCard to move
  • directionV3 = localspace Vector3 for the direction the card should move
  • dealDelay = how long should the DSCard wait in the cardsWaitingToBeDealt queue before moving

◆ DSMoveCardInDirAction() [2/2]

DeckStacker.DSMoveCardInDirAction.DSMoveCardInDirAction ( List< DSCard > movingCards_,
Vector3 directionV3_,
float dealDelay_ = 0f )
inline

Constructor overload for a list of cards.

  • movingCards = the DSCard to flip
  • directionV3 = a speed multiplier for the flip animation
  • dealDelay = how long should the DSCard wait in the cardsWaitingToBeDealt queue before moving

Member Function Documentation

◆ Execute()

override void DeckStacker.DSMoveCardInDirAction.Execute ( )
inline

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