mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -07:00
Remove revealedCard flag from CardItem (#5723)
It is no longer used since #5254.
This commit is contained in:
parent
e4f40a82a2
commit
1851f71850
3 changed files with 5 additions and 13 deletions
|
|
@ -22,10 +22,9 @@ CardItem::CardItem(Player *_owner,
|
|||
const QString &_name,
|
||||
const QString &_providerId,
|
||||
int _cardid,
|
||||
bool _revealedCard,
|
||||
CardZone *_zone)
|
||||
: AbstractCardItem(parent, _name, _providerId, _owner, _cardid), zone(_zone), revealedCard(_revealedCard),
|
||||
attacking(false), destroyOnZoneChange(false), doesntUntap(false), dragItem(nullptr), attachedTo(nullptr)
|
||||
: AbstractCardItem(parent, _name, _providerId, _owner, _cardid), zone(_zone), attacking(false),
|
||||
destroyOnZoneChange(false), doesntUntap(false), dragItem(nullptr), attachedTo(nullptr)
|
||||
{
|
||||
owner->addCard(this);
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ class CardItem : public AbstractCardItem
|
|||
Q_OBJECT
|
||||
private:
|
||||
CardZone *zone;
|
||||
bool revealedCard;
|
||||
bool attacking;
|
||||
QMap<int, int> counters;
|
||||
QString annotation;
|
||||
|
|
@ -55,7 +54,6 @@ public:
|
|||
const QString &_name = QString(),
|
||||
const QString &_providerId = QString(),
|
||||
int _cardid = -1,
|
||||
bool revealedCard = false,
|
||||
CardZone *_zone = nullptr);
|
||||
~CardItem() override;
|
||||
void retranslateUi();
|
||||
|
|
@ -85,10 +83,6 @@ public:
|
|||
{
|
||||
owner = _owner;
|
||||
}
|
||||
bool getRevealedCard() const
|
||||
{
|
||||
return revealedCard;
|
||||
}
|
||||
bool getAttacking() const
|
||||
{
|
||||
return attacking;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue