-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathuser_if.ads
More file actions
39 lines (30 loc) · 1.46 KB
/
user_if.ads
File metadata and controls
39 lines (30 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
-- Mine Detector Game
-- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved.
-- **************************************************************************
--
-- Provide the user interface
--
-- V7.1 2021 Jun 15 Fix GNAT 11 circular-elaboration error
-- V7.0 2014 Dec 01 First Gnoga version
--
with Field;
package User_IF is
procedure Play_Game;
-- Called from main program to start the game
-- Returns when the user quits
procedure Display_Count (Count : in Field.Valid_Count;
Stepped : in Boolean;
Cell : in Field.Cell_Location);
procedure Display_Mark (Count : in Field.Valid_Count; Cell : in Field.Cell_Location); -- Display a marked cell
procedure Display_Mine (Cell : in Field.Cell_Location); -- Display a mine.
procedure Display_Blank (Cell : in Field.Cell_Location); -- Display a blank cell
procedure Display_To_Go (To_Go : in Integer); -- Display # of mines still to mark; can be negative
procedure Reset_Screen; -- Return to start of game condition
function Auto_Marking return Boolean; -- Get auto-marking state
function Extended_Stepping return Boolean; -- Get extended-stepping (after mark) state
end User_IF;
--
-- SPDX-License-Identifier: GPL-2.0-only
-- See https://spdx.org/licenses/
-- If you find this software useful, please let me know, either through
-- github.com/jrcarter or directly to pragmada@pragmada.x10hosting.com