MiniGame-Madness
Game.h
Go to the documentation of this file.
1 #ifndef GAME_H
2 #define GAME_H
3 
10 #include "screenBuffer.h"
11 
16 class Game {
17 private:
23  void throwError(BOOL result, const std::string& message) const
24  {
25  if (!result)
26  {
27  DWORD errorCode = GetLastError();
28  std::string fullMessage = message + " Error Code: " + std::to_string(errorCode);
29  throw std::runtime_error(fullMessage);
30  }
31  }
32 
33 public:
34 
39  virtual int run();
40 };
41 
42 #endif // GAME_H
virtual int run()
Run the game.
A parent class that represents a general game.
Definition: Game.h:16