2021-10-05 20:48:28 +02:00
|
|
|
#pragma once
|
2021-05-28 19:50:57 +02:00
|
|
|
|
2021-12-29 15:59:18 +01:00
|
|
|
#include "core/gameevent.h"
|
2021-12-03 20:21:27 +01:00
|
|
|
#include "core/updatedata.h"
|
2021-05-28 19:50:57 +02:00
|
|
|
|
2021-12-29 15:59:18 +01:00
|
|
|
namespace kku
|
|
|
|
{
|
|
|
|
|
2022-05-08 05:43:12 +02:00
|
|
|
/// Game
|
|
|
|
///
|
|
|
|
/// Functional aggregation of
|
|
|
|
/// logic for actual game mode
|
2021-12-28 19:04:50 +01:00
|
|
|
class Game
|
2021-05-28 19:50:57 +02:00
|
|
|
{
|
2022-10-18 04:59:51 +02:00
|
|
|
public:
|
2021-05-28 19:50:57 +02:00
|
|
|
virtual ~Game() = default;
|
|
|
|
|
|
|
|
virtual void run() = 0;
|
2022-10-18 04:59:51 +02:00
|
|
|
virtual void input(GameEvent &&inputdata) = 0;
|
|
|
|
virtual void update(UpdateData &&updatedata) = 0;
|
2021-12-28 19:04:50 +01:00
|
|
|
virtual void display() const = 0;
|
2021-05-28 19:50:57 +02:00
|
|
|
};
|
2021-12-29 15:59:18 +01:00
|
|
|
|
2022-10-18 04:59:51 +02:00
|
|
|
} // namespace kku
|