Skip to main content

KillReward.ixx File

Score type awarded for killing an entity. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacemechanics

High-level gameplay systems and components for game logic. More...

namespacescoring

Score management and tracking system for game mechanics. More...

namespacetypes

Score data types and value classes. More...

Classes Index

classKillReward

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

Description

Score type awarded for killing an entity.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file KillReward.ixx
3 * @brief Score type awarded for killing an entity.
4 */
5module;
6
7
8export module helios.engine.mechanics.scoring.types.KillReward;
9
10import helios.engine.mechanics.scoring.types.Score;
11import helios.engine.mechanics.scoring.types.ScoreTypeId;
12
13
15
16
17 /**
18 * @brief Score type awarded when an entity is killed.
19 *
20 * Used by the combat scoring system to award points when
21 * an entity with a KillReward ScoreValueComponent is destroyed.
22 */
23 class KillReward: public Score {
24
25
26 public:
27
28 /**
29 * @brief Constructs a KillReward with the given score value.
30 *
31 * @param score The points awarded for the kill.
32 */
33 explicit KillReward(const double score) : Score(score){}
34
35 /**
36 * @copydoc Score::typeId()
37 */
38 [[nodiscard]] ScoreTypeId typeId() const noexcept override {
40 };
41
42 };
43
44
45}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.