1 /* 2 * IceBreaker 3 * Copyright (c) 2000-2002 Matthew Miller <mattdm@mattdm.org> 4 * 5 * <http://www.mattdm.org/icebreaker/> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the Free 9 * Software Foundation; either version 2 of the License, or (at your option) 10 * any later version. 11 * 12 * This program is distributed in the hope that it will be useful, but 13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 * for more details. 16 * 17 * You should have received a copy of the GNU General Public License along 18 * with this program; if not, write to the Free Software Foundation, Inc., 59 19 * Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * 21 */ 22 23 #ifndef GRID_H 24 #define GRID_H 25 26 extern SDL_Surface* gridsave; 27 extern char grid[WIDTH][HEIGHT]; 28 29 30 extern int initgrid(void); 31 extern void quitgrid(void); 32 33 extern void drawgridblocks(void); 34 35 extern void printboard(void); 36 extern void printwholegrid(void); 37 extern void printwholemaskgrid(); 38 39 extern void markgrid(int x, int y, int w, int h, char fillchar); 40 extern long countcleared(void); 41 extern void checkempty(int x, int y); 42 extern int penguinsearch(int i, int j); 43 extern void floodfill(int x, int y); 44 extern void squarefill(int x, int y); 45 46 #endif /* GRID_H */ 47