| 1 | // SuperTux badguy - Ghostflame a flame-like enemy that cannot be killed |
|---|---|
| 2 | // Copyright (C) 2013 LMH <lmh.0013@gmail.com> |
| 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 3 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, see <http://www.gnu.org/licenses/>. |
| 16 | |
| 17 | #include "badguy/ghostflame.hpp" |
| 18 | |
| 19 | #include "audio/sound_source.hpp" |
| 20 | #include "sprite/sprite.hpp" |
| 21 | #include "sprite/sprite_manager.hpp" |
| 22 | |
| 23 | Ghostflame::Ghostflame(const ReaderMapping& reader) : |
| 24 | Flame(reader) |
| 25 | { |
| 26 | m_lightsprite->set_color(Color(0.21f, 0.00f, 0.21f)); |
| 27 | m_sprite = SpriteManager::current()->create("images/creatures/flame/ghostflame.sprite"); |
| 28 | } |
| 29 | |
| 30 | bool |
| 31 | Ghostflame::is_flammable() const |
| 32 | { |
| 33 | return false; |
| 34 | } |
| 35 | |
| 36 | bool |
| 37 | Ghostflame::is_freezable() const |
| 38 | { |
| 39 | return false; |
| 40 | } |
| 41 | |
| 42 | ObjectSettings |
| 43 | Ghostflame::get_settings() |
| 44 | { |
| 45 | ObjectSettings result = Flame::get_settings(); |
| 46 | return result; |
| 47 | } |
| 48 | |
| 49 | void |
| 50 | Ghostflame::after_editor_set() |
| 51 | { |
| 52 | m_sprite_name = "images/creatures/flame/ghostflame.sprite"; |
| 53 | } |
| 54 | |
| 55 | /* EOF */ |
| 56 |