Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PlayerEventHandler Class Reference

#include <player_event_handler.h>

Inheritance diagram for PlayerEventHandler:
[legend]
Collaboration diagram for PlayerEventHandler:
[legend]

Signals

void logSay (Player *player, QString message)
void logShuffle (Player *player, CardZoneLogic *zone, int start, int end)
void logRollDie (Player *player, int sides, const QList< uint > &rolls)
void logCreateArrow (Player *player, Player *startPlayer, QString startCard, Player *targetPlayer, QString targetCard, bool _playerTarget)
void logCreateToken (Player *player, QString cardName, QString pt, bool faceDown)
void logDrawCards (Player *player, int number, bool deckIsEmpty)
void logUndoDraw (Player *player, QString cardName)
void logMoveCard (Player *player, CardItem *card, CardZoneLogic *startZone, int oldX, CardZoneLogic *targetZone, int newX)
void logFlipCard (Player *player, QString cardName, bool faceDown)
void logDestroyCard (Player *player, QString cardName)
void logAttachCard (Player *player, QString cardName, Player *targetPlayer, QString targetCardName)
void logUnattachCard (Player *player, QString cardName)
void logSetCardCounter (Player *player, QString cardName, int counterId, int value, int oldValue)
void logSetTapped (Player *player, CardItem *card, bool tapped)
void logSetCounter (Player *player, QString counterName, int value, int oldValue)
void logSetDoesntUntap (Player *player, CardItem *card, bool doesntUntap)
void logSetPT (Player *player, CardItem *card, QString newPT)
void logSetAnnotation (Player *player, CardItem *card, QString newAnnotation)
void logDumpZone (Player *player, CardZoneLogic *zone, int numberCards, bool isReversed=false)
void logRevealCards (Player *player, CardZoneLogic *zone, int cardId, QString cardName, Player *otherPlayer, bool faceDown, int amount, bool isLentToAnotherPlayer=false)
void logAlwaysRevealTopCard (Player *player, CardZoneLogic *zone, bool reveal)
void logAlwaysLookAtTopCard (Player *player, CardZoneLogic *zone, bool reveal)

Public Member Functions

 PlayerEventHandler (Player *player)
void processGameEvent (GameEvent::GameEventType type, const GameEvent &event, const GameEventContext &context, EventProcessingOptions options)
void eventGameSay (const Event_GameSay &event)
void eventShuffle (const Event_Shuffle &event)
void eventRollDie (const Event_RollDie &event)
void eventCreateArrow (const Event_CreateArrow &event)
void eventDeleteArrow (const Event_DeleteArrow &event)
void eventCreateToken (const Event_CreateToken &event)
void eventSetCardAttr (const Event_SetCardAttr &event, const GameEventContext &context, EventProcessingOptions options)
void eventSetCardCounter (const Event_SetCardCounter &event)
void eventCreateCounter (const Event_CreateCounter &event)
void eventSetCounter (const Event_SetCounter &event)
void eventDelCounter (const Event_DelCounter &event)
void eventDumpZone (const Event_DumpZone &event)
void eventMoveCard (const Event_MoveCard &event, const GameEventContext &context)
void eventFlipCard (const Event_FlipCard &event)
void eventDestroyCard (const Event_DestroyCard &event)
void eventAttachCard (const Event_AttachCard &event)
void eventDrawCards (const Event_DrawCards &event)
void eventRevealCards (const Event_RevealCards &event, EventProcessingOptions options)
void eventChangeZoneProperties (const Event_ChangeZoneProperties &event)

Private Attributes

Playerplayer

Constructor & Destructor Documentation

◆ PlayerEventHandler()

PlayerEventHandler::PlayerEventHandler ( Player * player)

Member Function Documentation

◆ eventAttachCard()

void PlayerEventHandler::eventAttachCard ( const Event_AttachCard & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventChangeZoneProperties()

void PlayerEventHandler::eventChangeZoneProperties ( const Event_ChangeZoneProperties & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventCreateArrow()

void PlayerEventHandler::eventCreateArrow ( const Event_CreateArrow & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventCreateCounter()

void PlayerEventHandler::eventCreateCounter ( const Event_CreateCounter & event)
Here is the caller graph for this function:

◆ eventCreateToken()

void PlayerEventHandler::eventCreateToken ( const Event_CreateToken & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventDelCounter()

void PlayerEventHandler::eventDelCounter ( const Event_DelCounter & event)
Here is the caller graph for this function:

◆ eventDeleteArrow()

void PlayerEventHandler::eventDeleteArrow ( const Event_DeleteArrow & event)
Here is the caller graph for this function:

◆ eventDestroyCard()

void PlayerEventHandler::eventDestroyCard ( const Event_DestroyCard & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventDrawCards()

void PlayerEventHandler::eventDrawCards ( const Event_DrawCards & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventDumpZone()

void PlayerEventHandler::eventDumpZone ( const Event_DumpZone & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventFlipCard()

void PlayerEventHandler::eventFlipCard ( const Event_FlipCard & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventGameSay()

void PlayerEventHandler::eventGameSay ( const Event_GameSay & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventMoveCard()

void PlayerEventHandler::eventMoveCard ( const Event_MoveCard & event,
const GameEventContext & context )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventRevealCards()

void PlayerEventHandler::eventRevealCards ( const Event_RevealCards & event,
EventProcessingOptions options )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventRollDie()

void PlayerEventHandler::eventRollDie ( const Event_RollDie & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventSetCardAttr()

void PlayerEventHandler::eventSetCardAttr ( const Event_SetCardAttr & event,
const GameEventContext & context,
EventProcessingOptions options )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventSetCardCounter()

void PlayerEventHandler::eventSetCardCounter ( const Event_SetCardCounter & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventSetCounter()

void PlayerEventHandler::eventSetCounter ( const Event_SetCounter & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventShuffle()

void PlayerEventHandler::eventShuffle ( const Event_Shuffle & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ logAlwaysLookAtTopCard

void PlayerEventHandler::logAlwaysLookAtTopCard ( Player * player,
CardZoneLogic * zone,
bool reveal )
signal
Here is the caller graph for this function:

◆ logAlwaysRevealTopCard

void PlayerEventHandler::logAlwaysRevealTopCard ( Player * player,
CardZoneLogic * zone,
bool reveal )
signal
Here is the caller graph for this function:

◆ logAttachCard

void PlayerEventHandler::logAttachCard ( Player * player,
QString cardName,
Player * targetPlayer,
QString targetCardName )
signal
Here is the caller graph for this function:

◆ logCreateArrow

void PlayerEventHandler::logCreateArrow ( Player * player,
Player * startPlayer,
QString startCard,
Player * targetPlayer,
QString targetCard,
bool _playerTarget )
signal
Here is the caller graph for this function:

◆ logCreateToken

void PlayerEventHandler::logCreateToken ( Player * player,
QString cardName,
QString pt,
bool faceDown )
signal
Here is the caller graph for this function:

◆ logDestroyCard

void PlayerEventHandler::logDestroyCard ( Player * player,
QString cardName )
signal
Here is the caller graph for this function:

◆ logDrawCards

void PlayerEventHandler::logDrawCards ( Player * player,
int number,
bool deckIsEmpty )
signal
Here is the caller graph for this function:

◆ logDumpZone

void PlayerEventHandler::logDumpZone ( Player * player,
CardZoneLogic * zone,
int numberCards,
bool isReversed = false )
signal
Here is the caller graph for this function:

◆ logFlipCard

void PlayerEventHandler::logFlipCard ( Player * player,
QString cardName,
bool faceDown )
signal
Here is the caller graph for this function:

◆ logMoveCard

void PlayerEventHandler::logMoveCard ( Player * player,
CardItem * card,
CardZoneLogic * startZone,
int oldX,
CardZoneLogic * targetZone,
int newX )
signal
Here is the caller graph for this function:

◆ logRevealCards

void PlayerEventHandler::logRevealCards ( Player * player,
CardZoneLogic * zone,
int cardId,
QString cardName,
Player * otherPlayer,
bool faceDown,
int amount,
bool isLentToAnotherPlayer = false )
signal
Here is the caller graph for this function:

◆ logRollDie

void PlayerEventHandler::logRollDie ( Player * player,
int sides,
const QList< uint > & rolls )
signal
Here is the caller graph for this function:

◆ logSay

void PlayerEventHandler::logSay ( Player * player,
QString message )
signal
Here is the caller graph for this function:

◆ logSetAnnotation

void PlayerEventHandler::logSetAnnotation ( Player * player,
CardItem * card,
QString newAnnotation )
signal
Here is the caller graph for this function:

◆ logSetCardCounter

void PlayerEventHandler::logSetCardCounter ( Player * player,
QString cardName,
int counterId,
int value,
int oldValue )
signal
Here is the caller graph for this function:

◆ logSetCounter

void PlayerEventHandler::logSetCounter ( Player * player,
QString counterName,
int value,
int oldValue )
signal
Here is the caller graph for this function:

◆ logSetDoesntUntap

void PlayerEventHandler::logSetDoesntUntap ( Player * player,
CardItem * card,
bool doesntUntap )
signal
Here is the caller graph for this function:

◆ logSetPT

void PlayerEventHandler::logSetPT ( Player * player,
CardItem * card,
QString newPT )
signal
Here is the caller graph for this function:

◆ logSetTapped

void PlayerEventHandler::logSetTapped ( Player * player,
CardItem * card,
bool tapped )
signal
Here is the caller graph for this function:

◆ logShuffle

void PlayerEventHandler::logShuffle ( Player * player,
CardZoneLogic * zone,
int start,
int end )
signal
Here is the caller graph for this function:

◆ logUnattachCard

void PlayerEventHandler::logUnattachCard ( Player * player,
QString cardName )
signal
Here is the caller graph for this function:

◆ logUndoDraw

void PlayerEventHandler::logUndoDraw ( Player * player,
QString cardName )
signal
Here is the caller graph for this function:

◆ processGameEvent()

void PlayerEventHandler::processGameEvent ( GameEvent::GameEventType type,
const GameEvent & event,
const GameEventContext & context,
EventProcessingOptions options )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ player

Player* PlayerEventHandler::player
private

The documentation for this class was generated from the following files: