26 lines
415 B
C++
26 lines
415 B
C++
#ifndef HOLESOME_ACTION_CONTROLLER_H
|
|
#define HOLESOME_ACTION_CONTROLLER_H
|
|
|
|
|
|
#include "../game.h"
|
|
#include "direction.h"
|
|
|
|
class Game;
|
|
|
|
|
|
/**
|
|
* Holds all the actions that can be performed and executes them when requested.
|
|
*/
|
|
class ActionController
|
|
{
|
|
public:
|
|
explicit ActionController(Game *game);
|
|
|
|
void moveView(InputDirection direction);
|
|
|
|
private:
|
|
Game *game;
|
|
};
|
|
|
|
|
|
#endif //HOLESOME_ACTION_CONTROLLER_H
|