-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscores.h
More file actions
24 lines (19 loc) · 679 Bytes
/
Copy pathscores.h
File metadata and controls
24 lines (19 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*******************************************************************************************
** Authors: Matthew Feidt
** Date: 10 NOV 2018
** Description: scores header file
**
** Functions to save and retrieve high scores.
*******************************************************************************************/
#ifndef SCORES_H
#define SCORES_H
#define HIGHSCORES_FILENAME "highscores.txt"
#define TEMP_HIGHSCORES_FILENAME "highscores.tmp"
#define MULTIPLAYER_HIGHSCORES_FILENAME "multiplayer-highscores.txt"
struct highscore {
int score;
char name[11];
};
void getScores(struct highscore *scores, int n, int offset);
void putScore(struct highscore score);
#endif