mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 16:13:54 -07:00
[Game] Refactor: move setCardAttrHelper to PlayerEventHandler
This commit is contained in:
parent
3ec9ae9772
commit
07f5ecc87d
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