KlassischeKeplerKriege/game/game.hpp

22 lines
367 B
C++
Raw Normal View History

#pragma once
#include "state/state.hpp"
class Game {
2016-09-27 18:56:17 +00:00
public:
Game();
// main method of the game. run this regulary
// return false if want to exit.
bool cycle(float dt);
// for rendering
const game::State *state() const { return m_state; }
2016-09-27 18:56:17 +00:00
private:
game::State *m_state;
float m_time_for_next_step;
float m_time_step;
};