Cockatrice 2026-10-19-Development-3.1.2-beta.2
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 <QPair>
#include <QString>
#include <QVector>
#include <libcockatrice/protocol/pb/event_leave.pb.h>
#include <qtmetamacros.h>
#include <libcockatrice/protocol/pb/game_event_context.pb.h>
#include <libcockatrice/protocol/pb/serverinfo_player.pb.h>
#include <libcockatrice/protocol/pb/serverinfo_user.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...

Namespaces

namespace  google
namespace  google::protobuf

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
Here is the call graph for this function: