Add score API

This commit is contained in:
Daniel Saukel 2020-02-08 17:47:08 +01:00
parent ebc81947d3
commit 1de4780c39

View File

@ -332,6 +332,20 @@ public interface PlayerGroup {
*/
void removeReward(Reward reward);
/**
* Returns the score number, which is used for capture the flag and similar game types.
*
* @return the score number
*/
int getScore();
/**
* Sets the score of this group to a new value.
*
* @param score the value
*/
void setScore(int score);
/**
* Returns the initial amount of lives or -1 if group lives are not used.
*