Brunot
Loading...
Searching...
No Matches
sys::ScoringFeedbackContext Struct Reference
Collaboration diagram for sys::ScoringFeedbackContext:
[legend]

Public Member Functions

void increaseHandsScored ()
void increaseCardsScored ()
void increaseHandTypeTracker (int index)
void increaseOldHandTypeTracker (int index)
void setHandType (HandRating::HandType type)
auto slowestActionLifetime () const -> float
auto fastestActionLifetime () const -> float

Public Attributes

GameRulesgameRules = Engine::getSystem<GameRules>()
Tabletable = Engine::getSystem<Table>()
PlayerTurnplayerTurn = Engine::getSystem<PlayerTurn>()
Menumenu = nullptr
Vector4D originalScale = {0, 0, 0, 0}
float movePlayersDuration = 0.3f
float totalDuration = 1.f
float beginAndEndRatio = 0.1f
float waitRatio = 0.8f
float cardDelay = 0.07f
float cardScaleAmount = 0.515f
float cardOffsetAmount = 0.15f
float minActionPercentage = 0.15f
float decreasingActionSpeedModifier = 0.357f
int oldHandTypeTracker [9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }
int handTypeTracker [9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }
int boardWidth = gameRules->getBoardDimensions().first
int boardHeight = gameRules->getBoardDimensions().second
float handsScored = 0.f
float cardsScored = 0.f
float moveZAmount = 300.f
HandRating::HandType currentHandType
float sumOfActionLifetimes = 0.f
float actionLength = 0.f
float actionDuration = 0.f
float normalizedSpeedUpRatio = 0.f
 normalized ratio that says how much scoring has sped up 0 for base speed, 1 for max speed (max speed will be base speed * minActionPercentage)
float visualChangeLifetime = 0.f
 total lifetime of an action, at the current speed

Member Function Documentation

◆ fastestActionLifetime()

auto sys::ScoringFeedbackContext::fastestActionLifetime ( ) const->float
inline
Here is the caller graph for this function:

◆ increaseCardsScored()

void sys::ScoringFeedbackContext::increaseCardsScored ( )
inline

◆ increaseHandsScored()

void sys::ScoringFeedbackContext::increaseHandsScored ( )
inline
Here is the caller graph for this function:

◆ increaseHandTypeTracker()

void sys::ScoringFeedbackContext::increaseHandTypeTracker ( int index)
inline
Here is the caller graph for this function:

◆ increaseOldHandTypeTracker()

void sys::ScoringFeedbackContext::increaseOldHandTypeTracker ( int index)
inline
Here is the caller graph for this function:

◆ setHandType()

void sys::ScoringFeedbackContext::setHandType ( HandRating::HandType type)
inline
Here is the caller graph for this function:

◆ slowestActionLifetime()

auto sys::ScoringFeedbackContext::slowestActionLifetime ( ) const->float
inline
Here is the caller graph for this function:

Member Data Documentation

◆ actionDuration

float sys::ScoringFeedbackContext::actionDuration = 0.f

◆ actionLength

float sys::ScoringFeedbackContext::actionLength = 0.f

◆ beginAndEndRatio

float sys::ScoringFeedbackContext::beginAndEndRatio = 0.1f

◆ boardHeight

int sys::ScoringFeedbackContext::boardHeight = gameRules->getBoardDimensions().second

◆ boardWidth

int sys::ScoringFeedbackContext::boardWidth = gameRules->getBoardDimensions().first

◆ cardDelay

float sys::ScoringFeedbackContext::cardDelay = 0.07f

◆ cardOffsetAmount

float sys::ScoringFeedbackContext::cardOffsetAmount = 0.15f

◆ cardScaleAmount

float sys::ScoringFeedbackContext::cardScaleAmount = 0.515f

◆ cardsScored

float sys::ScoringFeedbackContext::cardsScored = 0.f

◆ currentHandType

HandRating::HandType sys::ScoringFeedbackContext::currentHandType

◆ decreasingActionSpeedModifier

float sys::ScoringFeedbackContext::decreasingActionSpeedModifier = 0.357f

◆ gameRules

GameRules* sys::ScoringFeedbackContext::gameRules = Engine::getSystem<GameRules>()

◆ handsScored

float sys::ScoringFeedbackContext::handsScored = 0.f

◆ handTypeTracker

int sys::ScoringFeedbackContext::handTypeTracker[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }

◆ menu

Menu* sys::ScoringFeedbackContext::menu = nullptr

◆ minActionPercentage

float sys::ScoringFeedbackContext::minActionPercentage = 0.15f

◆ movePlayersDuration

float sys::ScoringFeedbackContext::movePlayersDuration = 0.3f

◆ moveZAmount

float sys::ScoringFeedbackContext::moveZAmount = 300.f

◆ normalizedSpeedUpRatio

float sys::ScoringFeedbackContext::normalizedSpeedUpRatio = 0.f

normalized ratio that says how much scoring has sped up 0 for base speed, 1 for max speed (max speed will be base speed * minActionPercentage)

◆ oldHandTypeTracker

int sys::ScoringFeedbackContext::oldHandTypeTracker[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }

◆ originalScale

Vector4D sys::ScoringFeedbackContext::originalScale = {0, 0, 0, 0}

◆ playerTurn

PlayerTurn* sys::ScoringFeedbackContext::playerTurn = Engine::getSystem<PlayerTurn>()

◆ sumOfActionLifetimes

float sys::ScoringFeedbackContext::sumOfActionLifetimes = 0.f

◆ table

Table* sys::ScoringFeedbackContext::table = Engine::getSystem<Table>()

◆ totalDuration

float sys::ScoringFeedbackContext::totalDuration = 1.f

◆ visualChangeLifetime

float sys::ScoringFeedbackContext::visualChangeLifetime = 0.f

total lifetime of an action, at the current speed

◆ waitRatio

float sys::ScoringFeedbackContext::waitRatio = 0.8f

The documentation for this struct was generated from the following file:
  • /home/egrazil/sites/Brunot/The House/source/Gameplay/Systems/Scoring.cpp