Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
AAudioManager.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <string>
7
8#include "IAudioManager.hpp"
9
12 public:
13 virtual ~AAudioManager() = default;
14
17 void handleEvent(const Event& event) override;
18
19 protected:
23 virtual void playSound(const std::string& key, const std::string& filepath) = 0;
24};
std::variant< MapSize, TileContent, TeamName, PlayerNew, PlayerPosition, PlayerLevel, PlayerInventory, PlayerExpulsion, PlayerBroadcast, IncantationStart, IncantationEnd, PlayerFork, PlayerResourceDrop, PlayerResourceTake, PlayerDeath, EggNew, EggHatch, EggDeath, TimeUnit, TimeUnitChange, GameEnd, ServerMessage, UnknownCommand, BadParameters, ServerUptime, ServerSpawnedEgg, WinDuration > Event
Represents an event received from the server. Is a variant of all possible events,...
Definition Event.hpp:188
Interface for managing audio in the application.
Abstract audio manager providing common event mapping logic.
virtual void playSound(const std::string &key, const std::string &filepath)=0
Plays a sound associated with a specific key.
virtual ~AAudioManager()=default
void handleEvent(const Event &event) override
Handles a game event to trigger the appropriate sound.
Interface for managing audio in the application.