1 | /*************************************************************************** |
2 | * KBlocks, a falling blocks game for KDE * |
3 | * Copyright (C) 2010 Zhongjie Cai <squall.leonhart.cai@gmail.com> * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
6 | * it under the terms of the GNU General Public License as published by * |
7 | * the Free Software Foundation; either version 2 of the License, or * |
8 | * (at your option) any later version. * |
9 | ***************************************************************************/ |
10 | #ifndef FIELD_INTERFACE |
11 | #define FIELD_INTERFACE |
12 | |
13 | class FieldInterface |
14 | { |
15 | public: |
16 | FieldInterface(){}; |
17 | virtual ~FieldInterface(){}; |
18 | |
19 | public: |
20 | virtual bool getCell(int xPos, int yPos) = 0; |
21 | |
22 | virtual int getWidth() = 0; |
23 | virtual int getHeight() = 0; |
24 | |
25 | protected: |
26 | bool** maBoard; |
27 | int mHeight; |
28 | int mWidth; |
29 | }; |
30 | |
31 | #endif //FIELD_INTERFACE |
32 | |