The Tricycle's Ninja
|
00001 #ifndef _VENTANA_H_ 00002 #define _VENTANA_H_ 00003 00004 #include <Gosu/Gosu.hpp> 00005 00006 #include "caja.h" 00007 #include "constantes.h" 00008 #include "jugador.h" 00009 #include "background.h" 00010 #include "fase.h" 00011 #include "selector.h" 00012 #include "shuriken.h" 00013 #include "enemigo.h" 00014 #include "animatedplayer.h" 00015 #include <vector> 00016 #include <list> 00017 00028 class Ventana : public Gosu::Window{ 00029 public: 00030 00032 Ventana(); 00033 00035 ~Ventana(); 00036 00038 void update(); 00039 00041 void draw(); 00042 00044 void buttonDown(Gosu::Button B); 00045 00047 bool needsCursor() const; 00048 00050 void movimientos(Fase &ni); 00051 00052 private: 00054 Gosu::Image * cursor; 00055 00057 Jugador player; 00058 Background fondo; 00059 Fase nivel1, nivel2; 00060 Selector sel; 00061 Shuriken shu; 00062 Enemigo malo; 00063 00065 Gosu::Font * fuente; 00066 00068 Caja cajaCursor; 00069 00070 bool estadoReset; 00071 00073 enum tipoEstado{ ESTADO_MENU, ESTADO_PRIMERO, ESTADO_SEGUNDO, ESTADO_TERCERO,ESTADO_SELECTOR, ESTADO_DISPARO, NO_ESTADO}; 00075 enum tipoModo{SURVIVAL, AVENTURA, NO_MODO}; 00077 enum tipoSalto{NO_SALTO, SALTO}; 00078 00080 tipoEstado estadoActual; 00081 tipoModo estadoModo; 00082 tipoEstado estadoShuriken; 00083 tipoSalto estadoSalto; 00084 00085 00087 int velocidad_pantalla; 00088 int cont_niveles; 00089 int cont_salto; 00090 00091 }; 00092 00093 #endif /*_VENTANA_H_*/