/src/MenuEnemy.h
C Header | 53 lines | 25 code | 7 blank | 21 comment | 0 complexity | 44d8f3e9b12f2f4f885c3045af59948b MD5 | raw file
Possible License(s): GPL-3.0
1/* 2Copyright 2011 Pavel Kirpichyov (Cheshire) 3 4This file is part of FLARE. 5 6FLARE is free software: you can redistribute it and/or modify it under the terms 7of the GNU General Public License as published by the Free Software Foundation, 8either version 3 of the License, or (at your option) any later version. 9 10FLARE is distributed in the hope that it will be useful, but WITHOUT ANY 11WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12PARTICULAR PURPOSE. See the GNU General Public License for more details. 13 14You should have received a copy of the GNU General Public License along with 15FLARE. If not, see http://www.gnu.org/licenses/ 16*/ 17 18/** 19 * MenuEnemy 20 * 21 * Handles the display of the Enemy info of the screen 22 */ 23 24#ifndef MENU_ENEMY_H 25#define MENU_ENEMY_H 26 27#include "StatBlock.h" 28#include "Utils.h" 29#include "FontEngine.h" 30#include "SharedResources.h" 31#include "Enemy.h" 32 33#include <SDL.h> 34#include <SDL_image.h> 35 36const int MENU_ENEMY_TIMEOUT = FRAMES_PER_SEC * 10; 37 38class MenuEnemy { 39private: 40 SDL_Surface *background; 41 SDL_Surface *bar_hp; 42public: 43 MenuEnemy(); 44 ~MenuEnemy(); 45 Enemy *enemy; 46 void loadGraphics(); 47 void handleNewMap(); 48 void logic(); 49 void render(); 50 int timeout; 51}; 52 53#endif