~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/animationparticle.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-09-17 10:35:51 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130917103551-az7p3nz9jgxwqjfn
Tags: 1.3.9.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  The ManaPlus Client
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
6
 
 *
7
 
 *  This file is part of The ManaPlus Client.
8
 
 *
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
12
 
 *  any later version.
13
 
 *
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.
18
 
 *
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/>.
21
 
 */
22
 
 
23
 
#ifndef ANIMATIONPARTICLE_H
24
 
#define ANIMATIONPARTICLE_H
25
 
 
26
 
#include "imageparticle.h"
27
 
 
28
 
#include "utils/xml.h"
29
 
 
30
 
class Animation;
31
 
class Map;
32
 
class SimpleAnimation;
33
 
 
34
 
class AnimationParticle final : public ImageParticle
35
 
{
36
 
    public:
37
 
        AnimationParticle(Map *const map, Animation *const animation);
38
 
 
39
 
        AnimationParticle(Map *const map, XmlNodePtr const animationNode,
40
 
                          const std::string& dyePalettes = std::string());
41
 
 
42
 
        A_DELETE_COPY(AnimationParticle)
43
 
 
44
 
        ~AnimationParticle();
45
 
 
46
 
        virtual bool update() override;
47
 
 
48
 
    private:
49
 
        SimpleAnimation *mAnimation; /**< Used animation for this particle */
50
 
};
51
 
 
52
 
#endif  // ANIMATIONPARTICLE_H