1 /* Pongix - clone of the "Pong" video game with net support
2  * Copyright (C) 2005 - Hugo Ruscitti (see AUTHORS file)
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17  */
18 
19 #ifndef _juego_h
20 #define _juego_h
21 
22 #include "util.h"
23 #include "pelota.h"
24 #include "paleta.h"
25 #include "marcador.h"
26 
27 typedef struct juego
28 {
29 	struct mundo * mundo;
30  	Pelota * pelota;
31 	Paleta * paleta1;
32 	Paleta * paleta2;
33 	Marcador * marcador;
34 	enum tipo_juego tipo;
35 } Juego;
36 
37 
38 Juego * juego_iniciar (struct mundo * mundo);
39 void juego_reiniciar (Juego * data, enum tipo_juego tipo);
40 void juego_actualizar (Juego * data, Uint8 * teclas);
41 void juego_imprimir (Juego * data);
42 void juego_terminar (Juego * data);
43 
44 #endif
45