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

Public Member Functions

 DSFlipCardAction (DSCard flippingCard_, float flipSpd_=-1f)
 DSFlipCardAction (List< DSCard > flippingCards_, float flipSpd_=-1f)
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 flips a list of cards.

You can adjust the card flip spd with the flipSpd parameter in the constructor.
flipSpd is a multiplier on deltaTime, so you can think of this equation when determining how long you want a flip to take:
1f / flipSpd = flipTime

Constructor & Destructor Documentation

◆ DSFlipCardAction() [1/2]

DeckStacker.DSFlipCardAction.DSFlipCardAction ( DSCard flippingCard_,
float flipSpd_ = -1f )
inline

Constructor overload for a single card.

  • flippingCard = the DSCard to flip
  • flipSpd = a speed multiplier for the flip animation

◆ DSFlipCardAction() [2/2]

DeckStacker.DSFlipCardAction.DSFlipCardAction ( List< DSCard > flippingCards_,
float flipSpd_ = -1f )
inline

Constructor overload for a DSCard list.

  • flippingCards = the DSCard list to flip
  • flipSpd = a speed multiplier for the flip animation

Member Function Documentation

◆ Execute()

override void DeckStacker.DSFlipCardAction.Execute ( )
inline

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