Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
IScene.hpp
Go to the documentation of this file.
1
8#ifndef RTYPE_CLIENT_INTERFACES_ISCENE_HPP_
9 #define RTYPE_CLIENT_INTERFACES_ISCENE_HPP_
10
11 #include <SFML/Graphics.hpp>
12
13namespace rtp::client {
14 namespace interfaces {
15
23 class IScene {
24 public:
25 virtual ~IScene(void) = default;
26
31 virtual void onEnter(void) = 0;
32
37 virtual void onExit(void) = 0;
38
43 virtual void handleEvent(const sf::Event&) = 0;
44
49 virtual void update(float dt) = 0;
50 };
51 } // namespace interfaces
52} // namespace rtp::client
53
54#endif // RTYPE_CLIENT_INTERFACES_ISCENE_HPP_
Interface for different scenes in the client application.
Definition IScene.hpp:23
virtual ~IScene(void)=default
virtual void onEnter(void)=0
Called when the scene is entered.
virtual void handleEvent(const sf::Event &)=0
Handle an incoming event.
virtual void onExit(void)=0
Called when the scene is exited.
virtual void update(float dt)=0
Update the scene state.
R-Type client namespace.