File indexing completed on 2024-02-25 04:08:53

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 KBATTLESHIP_SPRITEFACTORY_H
0008 #define KBATTLESHIP_SPRITEFACTORY_H
0009 
0010 #include <QString>
0011 
0012 class KBSRenderer;
0013 class Sprite;
0014 class Ship;
0015 
0016 class SpriteFactory
0017 {
0018     KBSRenderer* m_renderer;
0019     
0020     Sprite* createSimpleSprite(const QString& name);
0021 public:
0022     explicit SpriteFactory(KBSRenderer* renderer);
0023     
0024     Sprite* createShip(Ship* ship);
0025     Sprite* createHit();
0026     Sprite* createMiss();
0027     Sprite* createImpact();
0028 };
0029 
0030 #endif // KBATTLESHIP_SPRITEFACTORY_H