Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
counter_general.h
Go to the documentation of this file.
1
6
7
#ifndef COUNTER_GENERAL_H
8
#define COUNTER_GENERAL_H
9
10
#include "
abstract_counter.h
"
11
12
#include <qtmetamacros.h>
13
14
class
CounterState
;
15
class
PlayerLogic
;
16
class
QGraphicsItem;
17
18
class
GeneralCounter
:
public
AbstractCounter
19
{
20
Q_OBJECT
21
22
public
:
23
GeneralCounter
(
CounterState
*state,
24
PlayerLogic
*
player
,
25
bool
useNameForShortcut
=
false
,
26
QGraphicsItem *parent =
nullptr
);
27
QRectF
boundingRect
()
const override
;
28
void
paint
(QPainter *painter,
const
QStyleOptionGraphicsItem *option, QWidget *widget)
override
;
29
};
30
31
#endif
abstract_counter.h
AbstractCounter::AbstractCounter
AbstractCounter(CounterState *state, PlayerLogic *player, bool shownInCounterArea, bool useNameForShortcut=false, QGraphicsItem *parent=nullptr)
Definition
abstract_counter.cpp:33
AbstractCounter::player
PlayerLogic * player
Definition
abstract_counter.h:32
AbstractCounter::useNameForShortcut
bool useNameForShortcut
Definition
abstract_counter.h:39
CounterState
Definition
counter_state.h:12
GeneralCounter::GeneralCounter
GeneralCounter(CounterState *state, PlayerLogic *player, bool useNameForShortcut=false, QGraphicsItem *parent=nullptr)
Definition
counter_general.cpp:21
GeneralCounter::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Definition
counter_general.cpp:32
GeneralCounter::boundingRect
QRectF boundingRect() const override
Definition
counter_general.cpp:27
PlayerLogic
Definition
player_logic.h:56
cockatrice
src
game_graphics
board
counter_general.h
Generated by
1.18.0