File indexing completed on 2024-04-21 04:02:05
0001 /*************************************************************************** 0002 * KBlocks, a falling blocks game by KDE * 0003 * SPDX-FileCopyrightText: 2010 Zhongjie Cai <squall.leonhart.cai@gmail.com> * 0004 * * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 ***************************************************************************/ 0007 #ifndef FIELD_INTERFACE 0008 #define FIELD_INTERFACE 0009 0010 class FieldInterface 0011 { 0012 protected: 0013 FieldInterface() : maBoard(nullptr), mHeight(0), mWidth(0) {}; 0014 0015 public: 0016 virtual ~FieldInterface() {}; 0017 0018 public: 0019 virtual bool getCell(int xPos, int yPos) = 0; 0020 0021 virtual int getWidth() = 0; 0022 virtual int getHeight() = 0; 0023 0024 protected: 0025 bool **maBoard; 0026 int mHeight; 0027 int mWidth; 0028 }; 0029 0030 #endif //FIELD_INTERFACE