Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
game_event_handler.h File Reference

Game-level command sender and event dispatcher. More...

#include "player/event_processing_options.h"
#include <QLoggingCategory>
#include <QObject>
#include <libcockatrice/protocol/pb/event_leave.pb.h>
#include <libcockatrice/protocol/pb/serverinfo_player.pb.h>
Include dependency graph for game_event_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GameEventHandler
 Central dispatcher for game-wide commands and events. More...

Functions

 Q_LOGGING_CATEGORY (GameEventHandlerLog, "game_event_handler")

Detailed Description

Game-level command sender and event dispatcher.

GameEventHandler sends commands initiated by the local client to the server and processes incoming game-wide events. It bridges the networking layer (protobuf events received via AbstractClient) with the game model and UI (GameState, PlayerManager, logging, widgets).

Player-scoped events are forwarded to PlayerEventHandler instances, while spectator and global game events are handled directly here.

Function Documentation

◆ Q_LOGGING_CATEGORY()

Q_LOGGING_CATEGORY ( GameEventHandlerLog ,
"game_event_handler"  )
inline