File indexing completed on 2024-09-08 06:47:59
0001 /* 0002 SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SPRITE_H 0008 #define SPRITE_H 0009 0010 #include <KGameRenderedItem> 0011 0012 #include "coord.h" 0013 0014 class KBSRenderer; 0015 0016 class Sprite : public KGameRenderedItem 0017 { 0018 Coord m_scale; 0019 QString m_name; 0020 bool m_rotated; 0021 public: 0022 Sprite(KBSRenderer* renderer, const Coord& scale, const QString& name, bool rotated); 0023 ~Sprite() override; 0024 0025 void refresh(KBSRenderer* renderer); 0026 void turnRed(); 0027 void turnGreen(); 0028 }; 0029 0030 #endif // SPRITE_H 0031