~ubuntu-branches/ubuntu/saucy/kblocks/saucy-proposed

« back to all changes in this revision

Viewing changes to AI/PlannerInterface.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-12-07 17:39:13 UTC
  • Revision ID: package-import@ubuntu.com-20121207173913-5wqlq9suj93x4ap2
Tags: upstream-4.9.90
ImportĀ upstreamĀ versionĀ 4.9.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
*   KBlocks, a falling blocks game for KDE                                *
 
3
*   Copyright (C) 2010 University Freiburg                                *
 
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 PLANNERINTERFACE_H
 
11
#define PLANNERINTERFACE_H
 
12
 
 
13
#include "KBlocksAITypeDefine.h"
 
14
 
 
15
#include "../KBlocksField.h"
 
16
#include "../KBlocksPiece.h"
 
17
 
 
18
class PlannerInterface
 
19
{
 
20
public:
 
21
    PlannerInterface(KBlocksField * p){mpField = p;};
 
22
    virtual ~PlannerInterface(){};
 
23
    
 
24
    virtual int  process(KBlocks_PieceType_Detail) = 0;
 
25
    
 
26
    virtual bool getNextBoardStatus(int, KBlocksField*) = 0;
 
27
    virtual bool getNextPieceState(int, KBlocksPiece*) = 0;
 
28
    
 
29
    virtual int  count() = 0;
 
30
    
 
31
protected:
 
32
    KBlocksField* mpField;
 
33
};
 
34
 
 
35
 
 
36
#endif