Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
31 | halyavin | 1 | /******************************************************************************* |
2 | |||
3 | MenuetOS MineSweeper |
||
4 | Copyright (C) 2003 Ivan Poddubny |
||
5 | |||
6 | This program is free software; you can redistribute it and/or modify |
||
7 | it under the terms of the GNU General Public License as published by |
||
8 | the Free Software Foundation; either version 2 of the License, or |
||
9 | (at your option) any later version. |
||
10 | |||
11 | This program is distributed in the hope that it will be useful, |
||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
14 | GNU General Public License for more details. |
||
15 | |||
16 | You should have received a copy of the GNU General Public License |
||
17 | along with this program; if not, write to the Free Software |
||
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
19 | |||
20 | *******************************************************************************/ |
||
21 | |||
22 | :int get_value(int x, y) |
||
23 | { |
||
24 | EBX=x*ncy+y; |
||
25 | return massiv[EBX].value; |
||
26 | } |
||
27 | |||
28 | :void set_value(int x, y, byte val) |
||
29 | { |
||
30 | EBX=x*ncy+y; |
||
31 | massiv[EBX].value=val; |
||
32 | } |
||
33 | |||
34 | :int get_open(int x, y) |
||
35 | { |
||
36 | EBX=x*ncy+y; |
||
37 | return massiv[EBX].open; |
||
38 | } |
||
39 | |||
40 | :void set_open(int x, y, byte op) |
||
41 | { |
||
42 | EBX=x*ncy+y; |
||
43 | massiv[EBX].open=op; |
||
44 | } |
||
45 | |||
46 | :int get_press(int x, y) |
||
47 | { |
||
48 | EBX=x*ncy+y; |
||
49 | return massiv[EBX].press; |
||
50 | } |
||
51 | |||
52 | :void set_press(int x, y, byte pr) |
||
53 | { |
||
54 | EBX=x*ncy+y; |
||
55 | massiv[EBX].press=pr; |
||
56 | } |
||
57 | |||
58 | :int get_mark(int x, y) |
||
59 | { |
||
60 | EBX=x*ncy+y; |
||
61 | return massiv[EBX].mark; |
||
62 | } |
||
63 | |||
64 | :void set_mark(int x, y, byte mar) |
||
65 | { |
||
66 | EBX=x*ncy+y; |
||
67 | massiv[EBX].mark=mar; |
||
68 | } |