-/*
- Mines ver. 1.0
-
- Copyright (C) 2001 Antonin Vecera
-
- email: antonin.vecera@gmail.com
-
- 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
-*/
-
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <event.h>
-#include "game.h"
-#include "push.h"
-#include "move.h"
-#include "win.h"
-#include "oops.h"
-#include "sign.h"
-#include "digit0.h"
-#include "digit1.h"
-#include "digit2.h"
-#include "digit3.h"
-#include "digit4.h"
-#include "digit5.h"
-#include "digit6.h"
-#include "digit7.h"
-#include "digit8.h"
-#include "digit9.h"
-#include "unknown.h"
-#include "empty0.h"
-#include "empty1.h"
-#include "empty2.h"
-#include "empty3.h"
-#include "empty4.h"
-#include "empty5.h"
-#include "empty6.h"
-#include "empty7.h"
-#include "empty8.h"
-#include "query.h"
-#include "mouse.h"
-#include "mark.h"
-#include "mined.h"
-#include "explosion.h"
-#include "fault.h"
-
-enum {
- FALSE = 0,
- TRUE = 1,
- CellBytes = 15 * 15 * 3,
- DigitBytes = 11 * 21 * 3,
- ButtonBytes = 25 * 25 * 3,
- INT_MAX = 0x7fffffff
-};
-
-enum {
- Beginner,
- Advanced,
- Expert,
- Custom
-};
-
-enum {
- Game,
- Push,
- Move,
- Win,
- Oops
-};
-
-enum {
- Empty0 = 0,
- Empty1 = 1,
- Empty2 = 2,
- Empty3 = 3,
- Empty4 = 4,
- Empty5 = 5,
- Empty6 = 6,
- Empty7 = 7,
- Empty8 = 8,
- Query,
- MouseQuery,
- Mark,
- Fault,
- Mined,
- Explosion,
- Unknown
-};
-
-typedef
-struct {
- int Mine, Picture, Neighbours;
-} FieldCell;
-
-struct {
- int MaxX, MaxY, Mines;
-} Settings[] = { {8, 8, 10}, {16, 16, 40}, {30, 16, 99}, {0, 0, 0} };
+#include "dat.h"
int MaxX, MaxY, Mines, Level, UnknownCell, Playing, MinesRemain, Time, Status, UseQuery = TRUE, UseColor = TRUE;