2024-05-25 18:31:09 +00:00
|
|
|
#ifndef TH03_SCORE_HPP
|
|
|
|
#define TH03_SCORE_HPP
|
|
|
|
|
|
|
|
#include "th03/common.h"
|
2020-01-18 20:43:21 +00:00
|
|
|
#include "th02/score.h"
|
|
|
|
|
2024-01-17 08:03:39 +00:00
|
|
|
struct score_lebcd_t {
|
2021-12-25 21:17:36 +00:00
|
|
|
// Not including the amount of continues used.
|
2020-01-18 20:43:21 +00:00
|
|
|
unsigned char digits[SCORE_DIGITS];
|
2024-01-17 08:03:39 +00:00
|
|
|
};
|
2020-01-18 20:43:21 +00:00
|
|
|
|
|
|
|
extern score_lebcd_t score_lebcd[PLAYER_COUNT];
|
|
|
|
|
2021-12-17 21:19:17 +00:00
|
|
|
// Adds the given amount of [score] points to the given player's [score_lebcd].
|
|
|
|
void pascal score_add(uint16_t score, bool pid);
|
2024-05-25 18:31:09 +00:00
|
|
|
|
|
|
|
#endif /* TH03_SCORE_HPP */
|