[Game] Refactor: move setCardAttrHelper to PlayerEventHandler

This commit is contained in:
RickyRister 2026-04-05 02:59:00 -07:00
parent 3ec9ae9772
commit 07f5ecc87d
6 changed files with 66 additions and 88 deletions

View file

@ -9,6 +9,7 @@
#include "event_processing_options.h"
#include <QObject>
#include <libcockatrice/protocol/pb/card_attributes.pb.h>
#include <libcockatrice/protocol/pb/game_event.pb.h>
#include <libcockatrice/protocol/pb/game_event_context.pb.h>
@ -110,6 +111,13 @@ public:
private:
Player *player;
void setCardAttrHelper(const GameEventContext &context,
CardItem *card,
CardAttribute attribute,
const QString &avalue,
bool allCards,
EventProcessingOptions options);
};
#endif // COCKATRICE_PLAYER_EVENT_HANDLER_H