1 /* 2 * This file is part of EasyRPG Player. 3 * 4 * EasyRPG Player 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 3 of the License, or 7 * (at your option) any later version. 8 * 9 * EasyRPG Player 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 EasyRPG Player. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef EP_SPRITE_ENEMY_H 19 #define EP_SPRITE_ENEMY_H 20 21 // Headers 22 #include "sprite_battler.h" 23 #include "async_handler.h" 24 25 class BattleAnimation; 26 class Game_Battler; 27 class Game_Enemy; 28 29 /** 30 * Sprite_Battler class, used for battle sprites 31 */ 32 class Sprite_Enemy : public Sprite_Battler { 33 public: 34 /** 35 * Constructor. 36 * 37 * @param battler game battler to display 38 */ 39 Sprite_Enemy(Game_Enemy* battler); 40 41 ~Sprite_Enemy() override; 42 43 void Draw(Bitmap& dst) override; 44 45 Game_Enemy* GetBattler() const; 46 47 void Refresh(); 48 49 void ResetZ() final; 50 51 protected: 52 void CreateSprite(); 53 void OnMonsterSpriteReady(FileRequestResult* result); 54 55 std::string sprite_name; 56 BitmapRef graphic; 57 int hue = 0; 58 float zoom = 1.0; 59 60 FileRequestBinding request_id; 61 }; 62 63 64 #endif 65