Proyecto X-Soldiers V1 Mayo 2011
|
00001 00010 #ifndef _VENTANA_H_ 00011 #define _VENTANA_H_ 00012 00013 #include <Gosu/AutoLink.hpp> 00014 #include <Gosu/Gosu.hpp> 00015 00016 #include "caja.h" 00017 #include "constantes.h" 00018 #include "jugador.h" 00019 #include "arma.h" 00020 00021 00031 class Ventana : public Gosu::Window{ 00032 public: 00033 00035 Ventana(); 00036 00038 ~Ventana(); 00039 00041 void update(); 00042 00044 void draw(); 00045 00047 void buttonDown(Gosu::Button B); 00048 00050 bool needsCursor() const; 00051 00052 private: 00054 Gosu::Image * mapa, * soldado1[3][4], * soldado2[3][4]; 00055 00057 Gosu::Font * fuente, * fuentecred; 00058 00060 Gosu::Song * musicajuego, * musicamenu; 00061 /* 00063 Caja cajaP1, cajaP2, cajaBala; */ 00064 00066 enum tipoEstado{ ESTADO_MENU, ESTADO_JUEGO, ESTADO_CREDITOS, ESTADO_OPCIONES, ESTADO_REINICIAR }; 00067 00069 tipoEstado estadoActual; 00070 00072 00073 float mouseX, mouseY; 00074 00076 Jugador *Jugador1; 00077 Jugador *Jugador2; 00078 00080 void ReiniciarPartida(); //funcion tenemos que modificarla para que sea capaz de reiniciar una partida si el usuario lo pide 00081 00082 }; 00083 00084 #endif /* _VENTANA_H_ */