Simple Poker Template 0.0.1
Loading...
Searching...
No Matches
SimplePoker.Logic.Card Class Reference

Class representing a playing card with a suit, value, and visual appearance. More...

Inheritance diagram for SimplePoker.Logic.Card:

Public Types

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
}
 

Public Member Functions

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.
 

Public Attributes

SUIT Suit
 
VALUE Value
 
bool ShowCard
 
bool HideCard
 

Detailed Description

Class representing a playing card with a suit, value, and visual appearance.

Member Enumeration Documentation

◆ SUIT

Enumerator
DIAMONDS 
SPADES 
HEART 
CLUBS 

◆ VALUE

Enumerator
ACE 
TWO 
THREE 
FOUR 
FIVE 
SIX 
SEVEN 
EIGHT 
NINE 
TEN 
JACK 
QUEEN 
KING 
NOTHING 

Member Function Documentation

◆ CardShowState()

void SimplePoker.Logic.Card.CardShowState ( bool state)

Sets the card's display state.

Parameters
stateThe 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
suitThe suit of the card.
valueThe value of the card.
cardBackSpriteThe sprite for the card back.
cardFrontSpriteThe sprite for the card front.

◆ ShowOutline()

void SimplePoker.Logic.Card.ShowOutline ( Color outlineColor)

Shows an outline around the card with the specified color.

Parameters
outlineColorThe color of the outline.

Member Data Documentation

◆ 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: