3
* Copyright (C) 2006-2009 The Mana World Development Team
4
* Copyright (C) 2009-2010 The Mana Developers
5
* Copyright (C) 2011-2013 The ManaPlus Developers
7
* This file is part of The ManaPlus Client.
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef PARTICLE_ROTATIONALPARTICLE_H
24
#define PARTICLE_ROTATIONALPARTICLE_H
26
#include "particle/imageparticle.h"
28
#include "utils/xml.h"
32
class SimpleAnimation;
34
class RotationalParticle final : public ImageParticle
37
RotationalParticle(Map *const map, Animation *const animation);
39
RotationalParticle(Map *const map, const XmlNodePtr animationNode,
40
const std::string& dyePalettes = std::string());
42
A_DELETE_COPY(RotationalParticle)
44
~RotationalParticle();
46
virtual bool update() override;
49
SimpleAnimation *mAnimation; /**< Used animation for this particle */
52
#endif // PARTICLE_ROTATIONALPARTICLE_H