Files
Brian Holman 7939132267 Import coco-planes 0.1.0 upstream source snapshot
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
2026-11-09 23:39:59 -07:00

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 */