File indexing completed on 2024-05-05 04:02:27
0001 /****************************************************************************** 0002 * KBlocks, a falling blocks game by KDE * 0003 * SPDX-FileCopyrightText: 2010-2021 Julian Helfferich <julian.helfferich@mailbox.org> * 0004 * * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 ******************************************************************************/ 0007 #ifndef MOCKPIECE_H 0008 #define MOCKPIECE_H 0009 0010 #include "PieceInterface.h" 0011 0012 class MockPiece : public PieceInterface 0013 { 0014 public: 0015 MockPiece() : PieceInterface() {} 0016 ~MockPiece() override = default; 0017 0018 public: 0019 int toValue() override { return 0; } 0020 0021 int getType() override { return 0; } 0022 int getPosX() override { return 0; } 0023 int getPosY() override { return 0; } 0024 int getRotation() override { return 0; } 0025 0026 int getCellCount() override { return 0; } 0027 int getRotationCount() override { return 0; } 0028 int getCellPosX(int) override { return 0; } 0029 int getCellPosY(int) override { return 0; } 0030 }; 0031 0032 #endif //MOCKPIECE_H