|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Interface for different scenes in the client application. More...
#include <IScene.hpp>
Public Member Functions | |
| virtual | ~IScene (void)=default |
| virtual void | onEnter (void)=0 |
| Called when the scene is entered. | |
| virtual void | onExit (void)=0 |
| Called when the scene is exited. | |
| virtual void | handleEvent (const sf::Event &)=0 |
| Handle an incoming event. | |
| virtual void | update (float dt)=0 |
| Update the scene state. | |
Interface for different scenes in the client application.
This interface defines the basic structure and functionalities that all scenes (e.g., Menu, Game, Settings) must implement.
Definition at line 23 of file IScene.hpp.
|
virtualdefault |
|
pure virtual |
Handle an incoming event.
| event | The event to handle. |
Implemented in rtp::client::scenes::CreateRoomScene, rtp::client::scenes::GameOverScene, rtp::client::scenes::GamepadSettingsScene, rtp::client::scenes::KeyBindingScene, rtp::client::scenes::LobbyScene, rtp::client::scenes::LoginScene, rtp::client::scenes::MenuScene, rtp::client::scenes::ModMenuScene, rtp::client::scenes::PauseScene, rtp::client::scenes::PlayingScene, rtp::client::scenes::RoomWaitingScene, and rtp::client::scenes::SettingsScene.
Referenced by rtp::client::Application::processInput().
|
pure virtual |
Called when the scene is entered.
Implemented in rtp::client::scenes::GamepadSettingsScene, rtp::client::scenes::SettingsScene, rtp::client::scenes::CreateRoomScene, rtp::client::scenes::GameOverScene, rtp::client::scenes::KeyBindingScene, rtp::client::scenes::LobbyScene, rtp::client::scenes::LoginScene, rtp::client::scenes::MenuScene, rtp::client::scenes::ModMenuScene, rtp::client::scenes::PauseScene, rtp::client::scenes::PlayingScene, and rtp::client::scenes::RoomWaitingScene.
Referenced by rtp::client::Application::changeState(), and rtp::client::Application::setupSettingsCallbacks().
|
pure virtual |
Called when the scene is exited.
Implemented in rtp::client::scenes::GamepadSettingsScene, rtp::client::scenes::SettingsScene, rtp::client::scenes::CreateRoomScene, rtp::client::scenes::GameOverScene, rtp::client::scenes::KeyBindingScene, rtp::client::scenes::LobbyScene, rtp::client::scenes::LoginScene, rtp::client::scenes::MenuScene, rtp::client::scenes::ModMenuScene, rtp::client::scenes::PauseScene, rtp::client::scenes::PlayingScene, and rtp::client::scenes::RoomWaitingScene.
Referenced by rtp::client::Application::changeState().
|
pure virtual |
Update the scene state.
| dt | Time delta since the last update. |
Implemented in rtp::client::scenes::CreateRoomScene, rtp::client::scenes::GameOverScene, rtp::client::scenes::GamepadSettingsScene, rtp::client::scenes::KeyBindingScene, rtp::client::scenes::LobbyScene, rtp::client::scenes::LoginScene, rtp::client::scenes::MenuScene, rtp::client::scenes::ModMenuScene, rtp::client::scenes::PauseScene, rtp::client::scenes::PlayingScene, rtp::client::scenes::RoomWaitingScene, and rtp::client::scenes::SettingsScene.
Referenced by rtp::client::Application::update().