|
Colobot
|
Scoreboard used to score complex code battles. More...
#include <src/level/scoreboard.h>
Classes | |
| class | CScoreboardEndTakeRule |
| Scoreboard rule for EndMissionTake rewards. More... | |
| class | CScoreboardKillRule |
| Scoreboard rule for destroying other objects. More... | |
| class | CScoreboardRule |
| Base class for scoreboard rules. More... | |
Public Member Functions | |
| CScoreboard () | |
| ~CScoreboard () | |
| Destroys the scoreboard. More... | |
| void | AddKillRule (std::unique_ptr< CScoreboardKillRule > rule) |
| Add ScoreboardKillRule. More... | |
| void | AddEndTakeRule (std::unique_ptr< CScoreboardEndTakeRule > rule) |
| Add ScoreboardEndTakeRule. More... | |
| void | ProcessKill (CObject *target, CObject *killer=nullptr) |
| void | ProcessEndTake (int team) |
| Called after EndTake contition has been met, used to handle ScoreboardEndTakeRule. More... | |
| void | AddPoints (int team, int points) |
| int | GetScore (int team) |
| void | SetScore (int team, int score) |
Scoreboard used to score complex code battles.
|
inline |
Creates the scoreboard The scoreboard exists only if enabled in level file
|
inline |
Destroys the scoreboard.
| void CScoreboard::AddKillRule | ( | std::unique_ptr< CScoreboardKillRule > | rule | ) |
Add ScoreboardKillRule.
| void CScoreboard::AddEndTakeRule | ( | std::unique_ptr< CScoreboardEndTakeRule > | rule | ) |
Add ScoreboardEndTakeRule.
Called after an object is destroyed by another object
| target | The object that has just been destroyed |
| killer | The object that caused the destruction, can be null |
| void CScoreboard::ProcessEndTake | ( | int | team | ) |
Called after EndTake contition has been met, used to handle ScoreboardEndTakeRule.
1.8.13