Original author: Pierre Sarrazin. Preserve upstream GPLv3-or-later and file-specific notices. Source: http://sarrazip.com/dev/coco-planes-0.1.0.tar.gz Archive SHA-256: 29191e6ba225965caa637ee726e1189639dc7fcdf2b68310fb93fbffd56c9c52
28 lines
414 B
C
28 lines
414 B
C
#ifndef _H_Score
|
|
#define _H_Score
|
|
|
|
#include <coco.h>
|
|
|
|
|
|
typedef struct Score
|
|
{
|
|
byte digits[2];
|
|
} Score;
|
|
|
|
|
|
void Score_init(Score *self);
|
|
|
|
|
|
// Adds a point to the given Score, unless it has already reached WINNING_SCORE.
|
|
//
|
|
__gcccall void Score_addPoint(Score *self);
|
|
|
|
|
|
// Returns TRUE iff this Score is equal to WINNING_SCORE.
|
|
//
|
|
__gcccall BOOL Score_isWinningScore(const Score *self);
|
|
|
|
|
|
|
|
#endif /* _H_Score */
|