File indexing completed on 2024-05-05 04:02:03
0001 /* 0002 SPDX-FileCopyrightText: 2007-2008 John-Paul Stanford <jp@stanwood.org.uk> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef BOMB_H 0008 #define BOMB_H 0009 0010 // Bomber 0011 #include "explodable.h" 0012 0013 /** 0014 * This is the bomb game object class. It extends Explodable as it 0015 * is a explodable object. 0016 */ 0017 class Bomb : public Explodable 0018 { 0019 public: 0020 /** The width of the bomb relative to the tile */ 0021 static const qreal BOMB_RELATIVE_SIZE_W; 0022 /** The height of the bomb relative to the tile */ 0023 static const qreal BOMB_RELATIVE_SIZE_H; 0024 0025 Bomb(KGameRenderer * renderer, BomberBoard * board, qreal xPos, qreal yPos, 0026 QSize tileSize); 0027 ~Bomb() override; 0028 0029 /** 0030 * Performs move calculations 0031 * This method is called once per frame 0032 */ 0033 void advanceItem(); 0034 }; 0035 0036 #endif