Class representing a playing card with a suit, value, and visual appearance.
More...
|
enum | SUIT { DIAMONDS = 1
, SPADES
, HEART
, CLUBS
} |
|
enum | VALUE {
ACE = 14
, TWO = 2
, THREE
, FOUR
,
FIVE
, SIX
, SEVEN
, EIGHT
,
NINE
, TEN
, JACK
, QUEEN
,
KING
, NOTHING = 0
} |
|
|
void | Setup (SUIT suit, VALUE value, Sprite cardBackSprite, Sprite cardFrontSprite) |
| Sets up the card with the specified suit, value, card back sprite, and card front sprite.
|
|
void | CardShowState (bool state) |
| Sets the card's display state.
|
|
void | ShowOutline (Color outlineColor) |
| Shows an outline around the card with the specified color.
|
|
void | DisableOutline () |
| Disables the outline around the card.
|
|
Class representing a playing card with a suit, value, and visual appearance.
◆ SUIT
Enumerator |
---|
DIAMONDS | |
SPADES | |
HEART | |
CLUBS | |
◆ VALUE
Enumerator |
---|
ACE | |
TWO | |
THREE | |
FOUR | |
FIVE | |
SIX | |
SEVEN | |
EIGHT | |
NINE | |
TEN | |
JACK | |
QUEEN | |
KING | |
NOTHING | |
◆ CardShowState()
void SimplePoker.Logic.Card.CardShowState |
( |
bool | state | ) |
|
Sets the card's display state.
- Parameters
-
state | The state to set (true for showing the card, false for hiding it). |
◆ DisableOutline()
void SimplePoker.Logic.Card.DisableOutline |
( |
| ) |
|
Disables the outline around the card.
◆ Setup()
void SimplePoker.Logic.Card.Setup |
( |
SUIT | suit, |
|
|
VALUE | value, |
|
|
Sprite | cardBackSprite, |
|
|
Sprite | cardFrontSprite ) |
Sets up the card with the specified suit, value, card back sprite, and card front sprite.
- Parameters
-
suit | The suit of the card. |
value | The value of the card. |
cardBackSprite | The sprite for the card back. |
cardFrontSprite | The sprite for the card front. |
◆ ShowOutline()
void SimplePoker.Logic.Card.ShowOutline |
( |
Color | outlineColor | ) |
|
Shows an outline around the card with the specified color.
- Parameters
-
outlineColor | The color of the outline. |
◆ HideCard
bool SimplePoker.Logic.Card.HideCard |
◆ ShowCard
bool SimplePoker.Logic.Card.ShowCard |
◆ Suit
SUIT SimplePoker.Logic.Card.Suit |
◆ Value
VALUE SimplePoker.Logic.Card.Value |
The documentation for this class was generated from the following file:
- C:/Users/USER/Documents/Github/Poker Offline AssetStore/Assets/Simple Poker Template/Scripts/Game Scene/Deck/Card.cs