-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Menu e novo obstaculo e inicio do Ranking
- Loading branch information
1 parent
d0ae3a4
commit 17caaf9
Showing
12 changed files
with
106 additions
and
41 deletions.
There are no files selected for viewing
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Igor - 138532; | ||
Caua - 11; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "utils.h" | ||
|
||
typedef struct type_ranking* Ranking; | ||
|
||
// Função para inicializar o ranking, abrindo o arquivo e lendo o ranking. | ||
void ranking_init(Ranking *ranking); | ||
|
||
// Função para salvar o ranking no arquivo. | ||
void ranking_save(Ranking ranking); | ||
|
||
// Função para adicionar um score ao ranking, no ranking temp. | ||
void ranking_add(Ranking ranking, char* name, int score); | ||
|
||
// Função para recuperar uma informação do raking, baseado no index. | ||
char* ranking_get(Ranking ranking, int index); | ||
|
||
// Função para destruir o ranking, fechando o arquivo e liberando memoria. | ||
void ranking_destroy(Ranking *ranking); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters