mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-17 04:27:45 -07:00
Took 3 hours 38 minutes Took 11 seconds Took 9 minutes Took 2 minutes Took 22 minutes Took 43 minutes Took 4 minutes Took 31 minutes Took 7 seconds Took 1 minute [Game][Player] Pull out graphics_items out of player_logic Took 3 minutes Took 24 seconds Took 5 minutes Took 19 minutes Took 7 minutes Took 32 seconds Took 3 minutes Took 14 minutes Took 5 seconds Took 28 minutes Took 5 minutes Took 28 minutes Took 7 seconds Took 12 minutes Took 20 minutes Took 2 minutes
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
/**
|
|
* @file table_zone_logic.h
|
|
* @ingroup GameLogicZones
|
|
*/
|
|
//! \todo Document this file.
|
|
|
|
#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();
|
|
void toggleTapped();
|
|
|
|
public:
|
|
TableZoneLogic(PlayerLogic *_player,
|
|
const QString &_name,
|
|
bool _hasCardAttr,
|
|
bool _isShufflable,
|
|
bool _contentsKnown,
|
|
QObject *parent = nullptr);
|
|
|
|
protected:
|
|
void addCardImpl(CardState *card, int x, int y) override;
|
|
|
|
/**
|
|
* @brief 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
|
|
*/
|
|
CardState *takeCard(int position, int cardId, bool toNewZone = true) override;
|
|
};
|
|
|
|
#endif // COCKATRICE_TABLE_ZONE_LOGIC_H
|