Back to index

gcompris  8.2.2
gcompris-board.h
Go to the documentation of this file.
00001 /* gcompris - gcompris-board.h
00002  *
00003  * Time-stamp: <2005/09/21 22:14:01 yves>
00004  *
00005  * Copyright (C) 2000 Bruno Coudoin
00006  *
00007  * This program 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 2 of the License, or
00010  * (at your option) 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, write to the Free Software
00019  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  */
00021 #ifndef TYPES_H
00022 #define TYPES_H
00023 
00024 
00025 
00026 /*****************************************************************************/
00027 /* The following structure describes a board object.  */
00028 
00029 struct _GcomprisBoard
00030 {
00031   /* Board Type */
00032   gchar               *type;
00033   gboolean           board_ready;
00034 
00035   /* The directory from which it was started */
00036   gchar                    *board_dir;
00037 
00038   /* Board specific mode */
00039   gchar                    *mode;
00040 
00041   /* Name of this board */
00042   gchar               *name;
00043   gchar               *title;
00044   gchar               *description;
00045   gchar               *icon_name;
00046   gchar                    *author;
00047   gchar                    *boarddir;
00048   gchar                    *filename;
00049   gchar                    *difficulty;
00050   gchar                    *mandatory_sound_file;
00051   gchar                    *mandatory_sound_dataset;
00052 
00053   /* Menu positionning */
00054   gchar                    *section;
00055   gchar                    *menuposition;
00056 
00057   /* Help information */
00058   gchar                    *prerequisite;
00059   gchar                    *goal;
00060   gchar                    *manual;
00061   gchar                    *credit;
00062 
00063   /* Size of the window in which we have to run */
00064   gint16               width;
00065   gint16               height;
00066   GnomeCanvas         *canvas;
00067 
00068   /* Pointors to boards's own functions */
00069   BoardPlugin         *plugin;
00070 
00071   /* The gmodule pointers */
00072   GModule           *gmodule;
00073   gchar                    *gmodule_file;
00074 
00075 
00076   /* Pointors to the previous board to start when this one ends */
00077   GcomprisBoard       *previous_board;
00078 
00079   /* Dynamic board information (status) */
00080   guint                level;
00081   guint                maxlevel;
00082   guint                sublevel;
00083   guint                number_of_sublevel;
00084 
00085   /* database value */
00086   guint                board_id;
00087   guint                section_id;
00088 
00089   /* IM_context control */
00090   gboolean             disable_im_context;
00091 };
00092 
00093 
00094 
00095 
00096 #endif
00097 
00098 /* Local Variables: */
00099 /* mode:c */
00100 /* eval:(load-library "time-stamp") */
00101 /* eval:(make-local-variable 'write-file-hooks) */
00102 /* eval:(add-hook 'write-file-hooks 'time-stamp) */
00103 /* eval:(setq time-stamp-format '(time-stamp-yyyy/mm/dd time-stamp-hh:mm:ss user-login-name)) */
00104 /* End: */