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 GAME_LOGIC_INTERFACE
11#define GAME_LOGIC_INTERFACE
12
13#include "SingleGameInterface.h"
14
15class GameLogicInterface
16{
17 public:
18 GameLogicInterface(){};
19 virtual ~GameLogicInterface(){};
20
21 public:
22 virtual SingleGameInterface* getSingleGame(int) = 0;
23
24 virtual int levelUpGame(int) = 0;
25 virtual int updateGame(int*) = 0;
26
27 virtual bool startGame(int) = 0;
28 virtual bool stopGame() = 0;
29
30 virtual void pauseGame(bool) = 0;
31 virtual void continueGame() = 0;
32
33 protected:
34 SingleGameInterface** maGameList;
35};
36
37#endif //GAME_LOGIC_INTERFACE
38