|
PVcollib
1.5.0
A devkit for ColecoVision
|
coleco generic score support. More...
#include <coleco/coltypes.h>Go to the source code of this file.
Data Structures | |
| struct | score_t |
| score value Can manage score with more than 65536 values (max of an unsigned) More... | |
Functions | |
| void | sys_scoadd (score_t *sco, unsigned value) |
| Add a unsigned value to a score variable. More... | |
| void | sys_scoclear (score_t *sco) |
| Init a score variable with value 0. More... | |
| u16 | sys_scocmp (score_t *sco1, score_t *sco2) |
| Compare two scores and return 1 if 1st one is lower than 2nd one. More... | |
| void | sys_scocpy (score_t *sco1, score_t *sco2) |
| Copy a score sco1 into another score sco2. More... | |
| char * | sys_scostr (score_t *sco, unsigned length) |
| Convert a score variable to a string of specific length. More... | |
coleco generic score support.
This unit provides methods to manage scores.
Here is the list of supported features:
| void sys_scoadd | ( | score_t * | sco, |
| unsigned | value | ||
| ) |
Add a unsigned value to a score variable.
| sco | score variable |
| value | value to add to score |
| void sys_scoclear | ( | score_t * | sco | ) |
Init a score variable with value 0.
| sco | score variable to reset |
Compare two scores and return 1 if 1st one is lower than 2nd one.
| sco1 | score variable |
| sco2 | score variable |
Copy a score sco1 into another score sco2.
| sco1 | score variable |
| sco2 | score variable |
| char * sys_scostr | ( | score_t * | sco, |
| unsigned | length | ||
| ) |
Convert a score variable to a string of specific length.
| sco | score variable |
| length | number of digits for displkay (max 9) |
1.8.13