nSnake
A ncurses implementation of the classic Snake game
|
00001 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ 00002 * nSnake - The classic snake game with ncurses. * 00003 * Copyright (C) 2011-2012 Alexandre Dantas (kure) * 00004 * * 00005 * This file is part of nSnake. * 00006 * * 00007 * nSnake is free software: you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation, either version 3 of the License, or * 00010 * any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 00019 * * 00020 * homepage: http://sourceforge.net/projects/nsnake/ * 00021 * * 00022 \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00023 00029 #ifndef FRUIT_DEFINED 00030 #define FRUIT_DEFINED 00031 00032 00039 struct fruit_t 00040 { 00041 int x; 00042 int y; 00043 int bonus; 00045 }; 00046 00047 00049 extern struct fruit_t fruit; 00050 00051 00052 void fruit_init (); 00053 void fruit_update_bonus (); 00054 00055 00056 #endif