diff options
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h new file mode 100644 index 0000000..489afd0 --- /dev/null +++ b/src/system.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef SYSTEM_H_B61A8CEA | ||
2 | #define SYSTEM_H_B61A8CEA | ||
3 | |||
4 | class Game; | ||
5 | |||
6 | class System { | ||
7 | public: | ||
8 | System(Game& game) | ||
9 | : game(game) {} | ||
10 | |||
11 | virtual ~System() = default; | ||
12 | |||
13 | virtual void tick(double dt) = 0; | ||
14 | |||
15 | protected: | ||
16 | |||
17 | Game& game; | ||
18 | }; | ||
19 | |||
20 | #endif /* end of include guard: SYSTEM_H_B61A8CEA */ | ||