mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-17 16:02:14 -07:00
Player refactor.
Took 1 hour 43 minutes Took 1 minute Took 23 seconds
This commit is contained in:
parent
b8e545bfa4
commit
70c3649d6a
81 changed files with 6591 additions and 5498 deletions
32
cockatrice/src/game/zones/logic/table_zone_logic.h
Normal file
32
cockatrice/src/game/zones/logic/table_zone_logic.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef COCKATRICE_TABLE_ZONE_LOGIC_H
|
||||
#define COCKATRICE_TABLE_ZONE_LOGIC_H
|
||||
#include "card_zone_logic.h"
|
||||
|
||||
class TableZoneLogic : public CardZoneLogic
|
||||
{
|
||||
Q_OBJECT
|
||||
signals:
|
||||
void contentSizeChanged();
|
||||
|
||||
public:
|
||||
TableZoneLogic(Player *_player,
|
||||
const QString &_name,
|
||||
bool _hasCardAttr,
|
||||
bool _isShufflable,
|
||||
bool _contentsKnown,
|
||||
QObject *parent = nullptr);
|
||||
|
||||
protected:
|
||||
void addCardImpl(CardItem *card, int x, int y) override;
|
||||
/**
|
||||
Removes a card from view.
|
||||
|
||||
@param position card position
|
||||
@param cardId id of card to take
|
||||
@param toNewZone Whether the destination of the card is not the same as the starting zone. Defaults to true
|
||||
@return CardItem that has been removed
|
||||
*/
|
||||
CardItem *takeCard(int position, int cardId, bool toNewZone = true) override;
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_TABLE_ZONE_LOGIC_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue