1
/***************************************************************************
2
* KBlocks, a falling blocks game for KDE *
3
* Copyright (C) 2010 University Freiburg *
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 PLANNERINTERFACE_H
11
#define PLANNERINTERFACE_H
13
#include "KBlocksAITypeDefine.h"
15
#include "../KBlocksField.h"
16
#include "../KBlocksPiece.h"
18
class PlannerInterface
21
PlannerInterface(KBlocksField * p){mpField = p;};
22
virtual ~PlannerInterface(){};
24
virtual int process(KBlocks_PieceType_Detail) = 0;
26
virtual bool getNextBoardStatus(int, KBlocksField*) = 0;
27
virtual bool getNextPieceState(int, KBlocksPiece*) = 0;
29
virtual int count() = 0;
32
KBlocksField* mpField;