mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 08:33:54 -07:00
* [Counters] Split counters into graphics and logic states Took 22 minutes * Don't have widget hold pointer to state -> Copy what we need and subscribe to changes. Took 12 minutes Took 5 seconds * Sync value too. Took 3 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
25 lines
592 B
C++
25 lines
592 B
C++
/**
|
|
* @file counter_general.h
|
|
* @ingroup GameGraphicsPlayers
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef COUNTER_GENERAL_H
|
|
#define COUNTER_GENERAL_H
|
|
|
|
#include "abstract_counter.h"
|
|
|
|
class GeneralCounter : public AbstractCounter
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GeneralCounter(CounterState *state,
|
|
PlayerLogic *player,
|
|
bool useNameForShortcut = false,
|
|
QGraphicsItem *parent = nullptr);
|
|
QRectF boundingRect() const override;
|
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
|
};
|
|
|
|
#endif
|