KillReward Class
Score type awarded when an entity is killed. More...
Declaration
Base class
| class | Score |
|
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
| ScoreTypeId | typeId () 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()
| 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.
Reference helios::engine::mechanics::scoring::types::Score::Score.
Public Member Functions
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.
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.