2
* gcompris - awele.h Copyright (C) 2005 Frederic Mazzarol This program is
3
* free software; you can redistribute it and/or modify it under the terms
4
* of the GNU General Public License as published by the Free Software
5
* Foundation; either version 2 of the License, or (at your option) any
6
* later version. This program is distributed in the hope that it will
7
* be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
8
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9
* General Public License for more details. You should have received a
10
* copy of the GNU General Public License along with this program; if not,
11
* write to the Free Software Foundation, Inc., 59 Temple Place, Suite
12
* 330, Boston, MA 02111-1307 USA
16
#define BOUTON "awele/bouton1.png" //Chemin relatif vers fichiers boutons
17
#define BOUTON_NOTIFY "awele/bouton1_notify.png" //Chemin relatif vers fichiers boutons cliqu�s
18
#define BOUTON_CLIC "awele/bouton1_clic.png" //Chemin relatif vers fichiers boutons cliqu�s
19
#define BEAN "awele/graine1.png" //Chemin relatif vers fichiers graines
21
#define Y_BOUTONS 412 //Abcisse des boutons
23
#define WIDTH 800 // Largeur Fenetre
24
#define HEIGHT 600 // Hauteur Fenetre
29
GnomeCanvasItem *beanPixbuf;
35
GnomeCanvasItem *msg; //Item message pour dialogue avec utilisateur
36
GnomeCanvasItem *nbBeansHole[12]; //Tableau d'item affichant le nbre de graine par trou.
37
BEANHOLE_LINK *ptBeansHoleLink; //pointeur sur structures stockant les item graines et la case dans laquelle elles se trouvent.
38
GnomeCanvasItem *button[6]; //Item des boutons (affich�s avec pixbufButton)
39
GdkPixbuf *pixbufButtonNotify[6]; //pixbux des boutons notifi�s
40
GdkPixbuf *pixbufButton[6]; //pixbuf des boutons(selection de la case a jouer)
41
GdkPixbuf *pixbufButtonClicked[6]; //pixbuf des boutons cliqu�s
42
GnomeCanvasItem *Captures[2]; //Tableau d'item affichage nbre graine captur�es.
43
GdkPixbuf *pixbufBeans[4]; //pixbufs des graines
48
GRAPHICS_ELT *graphsElt;
52
* Fonctions de traitement des events, signaux et rappels
54
static gint buttonClick (GtkWidget *item, GdkEvent *event, gpointer data);
57
* Fonctions Mise a jour de l'affichage
59
static BEANHOLE_LINK * updateNbBeans (int alpha);
60
static void updateCapturedBeans (void);
61
static void initBoardGraphics (GRAPHICS_ELT *graphsElt);