mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 16:43:55 -07:00
[Game] Refactor: move setCardAttrHelper to PlayerEventHandler (#6772)
This commit is contained in:
parent
48e21aad38
commit
cdb171f201
6 changed files with 66 additions and 88 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue