-
Notifications
You must be signed in to change notification settings - Fork 2
/
field-operations.ads
31 lines (26 loc) · 1.26 KB
/
field-operations.ads
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
-- Mine Detector Game
-- Copyright (C) 2014 by PragmAda Software Engineering. All rights reserved.
-- **************************************************************************
--
-- Encapsulates the operations on the mine field
--
-- V7.0 2014 Dec 01 First Gnoga version
--
package Field.Operations is
procedure Reset; -- Reset the mine field to its initial condition
procedure Mark (Cell : in Cell_Location); -- Mark a cell as having a mine, or unmark a marked cell
procedure Step (Cell : in Cell_Location); -- Step on a cell
type Game_State_ID is (In_Progress, Won, Lost);
function Game_State return Game_State_ID;
procedure Set_Mine_Count (New_Mine_Count : in Natural);
-- Takes effect the next time a game is created.
end Field.Operations;
--
-- This is free software; you can redistribute it and/or modify it under
-- terms of the GNU General Public License as published by the Free Software
-- Foundation; version 2.
-- This software is distributed in the hope that it will be useful, but WITH
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-- for more details. Free Software Foundation, 59 Temple Place - Suite
-- 330, Boston, MA 02111-1307, USA.