return (s.(scores(scorefield)) += score);
}
+float PlayerScore_Get(entity player, PlayerScoreField scorefield)
+{
+ return player.scorekeeper.scores(scorefield);
+}
+
float PlayerTeamScore_Add(entity player, PlayerScoreField pscorefield, float tscorefield, float score)
{
float r;
*/
float PlayerScore_Add(entity player, PlayerScoreField scorefield, float score);
+/**
+ * \brief Returns the player's score.
+ * \param[in] player Player to inspect.
+ * \param[in] scorefield Field of the score.
+ * \return Player's score.
+ */
+float PlayerScore_Get(entity player, PlayerScoreField scorefield);
+
/**
* Initialize the score of this player if needed.
* Does nothing in teamplay.