-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIUiHandler.hh
34 lines (26 loc) · 884 Bytes
/
IUiHandler.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "Controls.hh"
#include "CoordinateFrame.hh"
#include "Game.hh"
#include "IMessageQueue.hh"
#include "UserInputData.hh"
#include <core_utils/CoreObject.hh>
#include <memory>
namespace pge {
class IUiHandler : public utils::CoreObject
{
public:
IUiHandler(const std::string &name);
~IUiHandler() override = default;
virtual void initializeMenus(const int width,
const int height,
sprites::TexturePack &texturesLoader)
= 0;
virtual bool processUserInput(UserInputData &inputData) = 0;
virtual void render(Renderer &engine) const = 0;
virtual void updateUi() = 0;
virtual void reset();
virtual void connectToMessageQueue(bsgo::IMessageQueue &messageQueue);
};
using IUiHandlerPtr = std::unique_ptr<IUiHandler>;
} // namespace pge