/***************************************************************************
*   KBlocks, a falling blocks game for KDE                                *
*   Copyright (C) 2010 Zhongjie Cai <squall.leonhart.cai@gmail.com>       *
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
***************************************************************************/
#ifndef GAMEPLAYINTERFACE_H
#define GAMEPLAYINTERFACE_H

#include <list>
#include <string>

enum KBlocks_Player_Action
{
    PlayerAction_None = 0,
    PlayerAction_Move_Left,
    PlayerAction_Move_Right,
    PlayerAction_Move_Down,
    PlayerAction_Push_Down,
    PlayerAction_Rotate_CW,
    PlayerAction_Rotate_CCW,
    PlayerAction_Max_Count
};

typedef std::list<KBlocks_Player_Action> GamePlayer_ActionList;

#include "SingleGameInterface.h"

class GamePlayerInterface
{
    public:
        GamePlayerInterface(){};
        virtual ~GamePlayerInterface(){};
        
    public:
        virtual void startGame(SingleGameInterface*) = 0;
        virtual void stopGame() = 0;
        
        virtual void pauseGame(bool) = 0;
        
        virtual void think(GamePlayer_ActionList * actionList) = 0;
        
        virtual std::string getName() = 0;
        
    protected:
        SingleGameInterface* mpGame;
};

#endif

