This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
127 additions
and
12 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,27 +1,54 @@ | ||
with p_fenbase, p_combinaisons, text_io; | ||
use p_fenbase, p_combinaisons, text_io; | ||
with p_fenbase, p_combinaisons, text_io, Forms, sequential_IO; | ||
use p_fenbase, p_combinaisons, text_io, Forms; | ||
|
||
package p_vue_graph is | ||
type TR_Score is record | ||
pseudo: string(1..20); | ||
score: integer; | ||
end record; | ||
|
||
package p_score_io is new sequential_IO(TR_Score); use p_score_io; | ||
|
||
nbCasesSolution : integer; | ||
nbCombinaisons : integer; | ||
fichierSolution : text_io.file_type; | ||
combinaisonAct : integer; | ||
|
||
dernier : string(1..14); | ||
fichierJeu : text_io.file_type; | ||
pseudo: string(1..20); | ||
|
||
|
||
procedure afficherGrille(fen: in out TR_Fenetre; x,y: in natural); | ||
-- {} => {Affiche la grille avec le bord gauche à la position (x,y)} | ||
|
||
procedure fenetreaccueil; | ||
--{} => {Affiche la fenetre d'Accueil} | ||
|
||
procedure appuiBoutonAccueil (Elem : in string; fenetre : in out TR_Fenetre); | ||
--{} => {Affiche la fenetre Solutions} | ||
|
||
procedure appuiBoutonSolution (Elem : in string; fenetre : in out TR_Fenetre); | ||
|
||
procedure actualisationInfos(fen: in out TR_Fenetre; combinaisonOld: integer); | ||
-- {} => {Actualisation des informations pour la solution nbSol} | ||
|
||
procedure actualisationGraph(fen: in out TR_Fenetre; combinaisonOld, combinaisonCurr: in string); | ||
-- {} => {Actualisation de la grille avec la nouvelle combinaison} | ||
procedure debutJeu(fen: in out TR_Fenetre); | ||
-- {} => {Lance le jeu} | ||
|
||
function compterPoints return integer; | ||
-- {} => {résultat = nombre de points du joueur} | ||
|
||
procedure enregistrerScore(score: in TR_Score); | ||
-- {} => {le score a été enregistré dans le fichier de scores} | ||
|
||
procedure finJeu; | ||
-- {} => {Finit le jeu} | ||
|
||
procedure affichageSol(fen: in out TR_Fenetre; combinaison: in string; coul: in FL_Color); | ||
-- {} => {Actualisation de la grille avec la solution de couleur coul} | ||
|
||
procedure verifSol(fen: in out TR_Fenetre; solution: in string); | ||
-- {} => {Vérifie si la solution est correcte} | ||
|
||
end p_vue_graph; |