Skip to main content

KillReward Class

Score type awarded when an entity is killed. More...

Declaration

class helios::engine::mechanics::scoring::types::KillReward { ... }

Base class

classScore

Abstract base class for score value types. More...

Public Constructors Index

KillReward (const double score)

Constructs a KillReward with the given score value. More...

Public Member Functions Index

ScoreTypeIdtypeId () const noexcept override

Returns the unique type identifier for this score type. More...

Description

Score type awarded when an entity is killed.

Used by the combat scoring system to award points when an entity with a KillReward ScoreValueComponent is destroyed.

Definition at line 23 of file KillReward.ixx.

Public Constructors

KillReward()

helios::engine::mechanics::scoring::types::KillReward::KillReward (const double score)
inline explicit

Constructs a KillReward with the given score value.

Parameters
score

The points awarded for the kill.

Definition at line 33 of file KillReward.ixx.

33 explicit KillReward(const double score) : Score(score){}

Reference helios::engine::mechanics::scoring::types::Score::Score.

Public Member Functions

typeId()

ScoreTypeId helios::engine::mechanics::scoring::types::KillReward::typeId ()
inline nodiscard noexcept virtual

Returns the unique type identifier for this score type.

Returns

The ScoreTypeId for this concrete score type.

Definition at line 38 of file KillReward.ixx.

38 [[nodiscard]] ScoreTypeId typeId() const noexcept override {
40 };

Reference helios::engine::mechanics::scoring::types::ScoreTypeId::id.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.