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