2017-09-21 18:57:12 +02:00
|
|
|
//
|
|
|
|
// Created by Adrian on 2017-09-19.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef DUNGEON_APP_H
|
|
|
|
#define DUNGEON_APP_H
|
|
|
|
|
|
|
|
class Gamestate;
|
|
|
|
class Renderer;
|
|
|
|
class Input;
|
|
|
|
|
2017-11-16 20:52:32 +01:00
|
|
|
#include "gitparams.h"
|
|
|
|
#define ADD_QUOTES_HELPER(s) #s
|
|
|
|
#define ADD_QUOTES(s) ADD_QUOTES_HELPER(s)
|
|
|
|
|
2017-09-21 18:57:12 +02:00
|
|
|
class App {
|
|
|
|
public:
|
2017-11-16 20:52:32 +01:00
|
|
|
const char* version = ADD_QUOTES(GIT_CUR_COMMIT);
|
2017-09-21 18:57:12 +02:00
|
|
|
Gamestate* current;
|
|
|
|
Renderer* renderer;
|
|
|
|
Input* input;
|
|
|
|
bool init();
|
|
|
|
int start();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //DUNGEON_APP_H
|