1 /* 2 Copyright (C) 2003 Cedric Cellier, Dominique Lavault 3 4 This program is free software; you can redistribute it and/or 5 modify it under the terms of the GNU General Public License 6 as published by the Free Software Foundation; either version 2 7 of the License, or (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, write to the Free Software 16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 #ifndef MODES_H 19 #define MODES_H 20 21 #define MODE_INIT 0 22 #define MODE_TESTCSG 1 23 #define MODE_INTRO 2 24 #define MODE_PLAY 3 /* init enigm_to_play before switching to this one */ 25 #define MODE_SHUTDOWN 666 26 27 extern int mode; 28 29 extern unsigned enigm_to_play; 30 extern int edit_session; 31 extern char *edit_session_name; 32 /* change current mode to another */ 33 extern void mode_change(unsigned); 34 35 extern void (*mode_display[])(); 36 extern void (*mode_mouse[])(int, int); 37 extern void (*mode_mouse_motion[])(float, float); 38 extern void (*mode_key[])(int, float, float, int); 39 40 #endif 41