Removed unimplemented GUI actions.
[tagua/yd.git] / src / namedsprite.h
blob7c884faa277f0cc7fe180cd90b8703177b0fee94
1 /*
2 Copyright (c) 2006-2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006-2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef NAMEDSPRITE_H
12 #define NAMEDSPRITE_H
14 #include <QString>
15 #include "sprite.h"
16 #include "fwd.h"
18 class NamedSprite {
19 public:
20 QString m_name;
21 SpritePtr m_sprite;
23 NamedSprite();
24 NamedSprite(const QString& name, const SpritePtr& s);
26 QString name() const { return m_name; }
27 SpritePtr sprite() const { return m_sprite; }
28 operator bool() const { return !!m_sprite; }
30 NamedSprite duplicate() const;
33 #endif //NAMEDSPRITE_H