Skip to main content

UpdateScoreCommand Class

Command that carries score update information. More...

Declaration

class helios::engine::mechanics::scoring::commands::UpdateScoreCommand { ... }

Public Constructors Index

template <typename... Args>
UpdateScoreCommand (helios::engine::mechanics::scoring::types::ScoreValueContext scoreContext)

Constructs an UpdateScoreCommand with the given score context. More...

Public Member Functions Index

const helios::engine::mechanics::scoring::types::ScoreValueContext &scoreContext () const &noexcept

Returns the score context (lvalue reference). More...

helios::engine::mechanics::scoring::types::ScoreValueContextscoreContext () &&noexcept

Returns the score context (rvalue reference). More...

Private Member Attributes Index

helios::engine::mechanics::scoring::types::ScoreValueContextscoreContext_

The score context containing type, pool, and value. More...

Description

Command that carries score update information.

Contains a ScoreValueContext with the score type, pool ID, and value.

Definition at line 23 of file UpdateScoreCommand.ixx.

Public Constructors

UpdateScoreCommand()

template <typename... Args>
helios::engine::mechanics::scoring::commands::UpdateScoreCommand::UpdateScoreCommand (helios::engine::mechanics::scoring::types::ScoreValueContext scoreContext)
inline explicit

Constructs an UpdateScoreCommand with the given score context.

Parameters
scoreContext

The context containing score update data.

Definition at line 38 of file UpdateScoreCommand.ixx.

Reference scoreContext.

Public Member Functions

scoreContext()

const helios::engine::mechanics::scoring::types::ScoreValueContext & helios::engine::mechanics::scoring::commands::UpdateScoreCommand::scoreContext ()
inline nodiscard noexcept

Returns the score context (lvalue reference).

Returns

Const reference to the score context.

Definition at line 47 of file UpdateScoreCommand.ixx.

48 return scoreContext_;
49 }

Referenced by UpdateScoreCommand.

scoreContext()

helios::engine::mechanics::scoring::types::ScoreValueContext helios::engine::mechanics::scoring::commands::UpdateScoreCommand::scoreContext ()
inline nodiscard noexcept

Returns the score context (rvalue reference).

Returns

The score context by move.

Definition at line 56 of file UpdateScoreCommand.ixx.

57 return std::move(scoreContext_);
58 }

Private Member Attributes

scoreContext_

helios::engine::mechanics::scoring::types::ScoreValueContext helios::engine::mechanics::scoring::commands::UpdateScoreCommand::scoreContext_

The score context containing type, pool, and value.

Definition at line 28 of file UpdateScoreCommand.ixx.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.