kolibrios-fun/programs/games/mine/trunk/access.h--
heavyiron 630234432f Changed structure of svn repository
git-svn-id: svn://kolibrios.org@109 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-07-28 13:39:16 +00:00

68 lines
1.6 KiB
Plaintext

/*******************************************************************************
MenuetOS MineSweeper
Copyright (C) 2003 Ivan Poddubny
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*******************************************************************************/
:int get_value(int x, y)
{
EBX=x*ncy+y;
return massiv[EBX].value;
}
:void set_value(int x, y, byte val)
{
EBX=x*ncy+y;
massiv[EBX].value=val;
}
:int get_open(int x, y)
{
EBX=x*ncy+y;
return massiv[EBX].open;
}
:void set_open(int x, y, byte op)
{
EBX=x*ncy+y;
massiv[EBX].open=op;
}
:int get_press(int x, y)
{
EBX=x*ncy+y;
return massiv[EBX].press;
}
:void set_press(int x, y, byte pr)
{
EBX=x*ncy+y;
massiv[EBX].press=pr;
}
:int get_mark(int x, y)
{
EBX=x*ncy+y;
return massiv[EBX].mark;
}
:void set_mark(int x, y, byte mar)
{
EBX=x*ncy+y;
massiv[EBX].mark=mar;
}