|
| void | cardZoneChanged (CardItem *card, bool sameZone) |
| void | requestCardMenuUpdate (const CardItem *card) |
| void | logSay (PlayerLogic *player, QString message) |
| void | logShuffle (PlayerLogic *player, CardZoneLogic *zone, int start, int end) |
| void | logRollDie (PlayerLogic *player, int sides, const QList< uint > &rolls) |
| void | logCreateArrow (PlayerLogic *player, PlayerLogic *startPlayer, QString startCard, PlayerLogic *targetPlayer, QString targetCard, bool _playerTarget) |
| void | logCreateToken (PlayerLogic *player, QString cardName, QString pt, bool faceDown) |
| void | logDrawCards (PlayerLogic *player, int number, bool deckIsEmpty) |
| void | logUndoDraw (PlayerLogic *player, QString cardName) |
| void | logUndoDrawFailed (PlayerLogic *player) |
| void | logMoveCard (PlayerLogic *player, CardItem *card, CardZoneLogic *startZone, int oldX, CardZoneLogic *targetZone, int newX) |
| void | logFlipCard (PlayerLogic *player, QString cardName, bool faceDown) |
| void | logDestroyCard (PlayerLogic *player, QString cardName) |
| void | logAttachCard (PlayerLogic *player, QString cardName, PlayerLogic *targetPlayer, QString targetCardName) |
| void | logUnattachCard (PlayerLogic *player, QString cardName) |
| void | logSetCardCounter (PlayerLogic *player, QString cardName, int counterId, int value, int oldValue) |
| void | logSetTapped (PlayerLogic *player, CardItem *card, bool tapped) |
| void | logSetCounter (PlayerLogic *player, QString counterName, int value, int oldValue) |
| void | logSetDoesntUntap (PlayerLogic *player, CardItem *card, bool doesntUntap) |
| void | logSetPT (PlayerLogic *player, CardItem *card, QString newPT) |
| void | logSetAnnotation (PlayerLogic *player, CardItem *card, QString newAnnotation) |
| void | logDumpZone (PlayerLogic *player, CardZoneLogic *zone, int numberCards, bool isReversed=false) |
| void | logRevealCards (PlayerLogic *player, CardZoneLogic *zone, int cardId, QString cardName, PlayerLogic *otherPlayer, bool faceDown, int amount, bool isLentToAnotherPlayer=false) |
| void | logAlwaysRevealTopCard (PlayerLogic *player, CardZoneLogic *zone, bool reveal) |
| void | logAlwaysLookAtTopCard (PlayerLogic *player, CardZoneLogic *zone, bool reveal) |
|
| | PlayerEventHandler (PlayerLogic *player) |
| | Construct a PlayerEventHandler bound to a Player.
|
| void | eventGameLogNotice (const Event_GameLogNotice &event) |
| void | processGameEvent (GameEvent::GameEventType type, const GameEvent &event, const GameEventContext &context, EventProcessingOptions options) |
| | Dispatch a generic GameEvent to the appropriate handler.
|
| void | eventGameSay (const Event_GameSay &event) |
| | Handle in-game chat messages from this player.
|
| void | eventShuffle (const Event_Shuffle &event) |
| | Handle zone shuffle events (typically libraries).
|
| void | eventRollDie (const Event_RollDie &event) |
| | Handle die roll events.
|
| void | eventCreateArrow (const Event_CreateArrow &event) |
| | Create a visual arrow between cards or players.
|
| void | eventDeleteArrow (const Event_DeleteArrow &event) |
| | Delete an existing arrow.
|
| void | eventCreateToken (const Event_CreateToken &event) |
| | Create a token card in a target zone.
|
| void | eventSetCardAttr (const Event_SetCardAttr &event, const GameEventContext &context, EventProcessingOptions options) |
| | Set a card attribute (tapped, PT, annotation, etc.).
|
| void | eventSetCardCounter (const Event_SetCardCounter &event) |
| | Update a counter attached to a card.
|
| void | eventCreateCounter (const Event_CreateCounter &event) |
| | Create a player-level counter.
|
| void | eventSetCounter (const Event_SetCounter &event) |
| | Set a player-level counter value.
|
| void | eventDelCounter (const Event_DelCounter &event) |
| | Delete a player-level counter.
|
| void | eventDumpZone (const Event_DumpZone &event) |
| | Log a zone dump (e.g. reveal graveyard/library contents).
|
| void | eventMoveCard (const Event_MoveCard &event, const GameEventContext &context) |
| | Move a card between zones and/or players.
|
| void | eventFlipCard (const Event_FlipCard &event) |
| | Flip a card face up or face down.
|
| void | eventDestroyCard (const Event_DestroyCard &event) |
| | Destroy a card and clean up attachments.
|
| void | eventAttachCard (const Event_AttachCard &event) |
| | Attach or detach a card to/from another card.
|
| void | eventDrawCards (const Event_DrawCards &event) |
| | Draw one or more cards from the deck.
|
| void | eventRevealCards (const Event_RevealCards &event, EventProcessingOptions options) |
| | Reveal cards from a zone.
|
| void | eventChangeZoneProperties (const Event_ChangeZoneProperties &event) |
| | Update zone visibility and reveal behavior.
|
Applies player-specific game events and emits corresponding log signals.
Design notes:
- All event handlers assume events are authoritative and already validated by the server.
- Most handlers mutate both logical state (CardItem, CardZoneLogic, counters) and visual/UI state (views, arrows, menus).
- Logging signals are emitted after or during state mutation, depending on whether later mutations would invalidate log data.