![]() |
Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
|
#include <counter_general.h>
Public Member Functions | |
| 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 |
| Public Member Functions inherited from AbstractCounter | |
| AbstractCounter (CounterState *state, PlayerLogic *player, bool shownInCounterArea, bool useNameForShortcut=false, QGraphicsItem *parent=nullptr) | |
| ~AbstractCounter () override | |
| void | retranslateUi () override |
| Retranslate all user-visible strings. Called on language change. | |
| void | setShortcutsActive () override |
| Bind keyboard shortcuts. Called when this player gains focus. | |
| void | setShortcutsInactive () override |
| Unbind keyboard shortcuts. Called when this player loses focus. | |
| void | delCounter () |
| QMenu * | getMenu () const |
| int | getId () const |
| QString | getName () const |
| QColor | getColor () const |
| int | getRadius () const |
| int | getValue () const |
| bool | getShownInCounterArea () const |
| Public Member Functions inherited from AbstractPlayerComponent | |
| virtual | ~AbstractPlayerComponent ()=default |
Additional Inherited Members | |
| Protected Member Functions inherited from AbstractCounter | |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
| Protected Attributes inherited from AbstractCounter | |
| PlayerLogic * | player |
| int | id |
| QString | name |
| int | value |
| QColor | color |
| int | radius |
| bool | hovered = false |
| bool | useNameForShortcut |
| GeneralCounter::GeneralCounter | ( | CounterState * | state, |
| PlayerLogic * | player, | ||
| bool | useNameForShortcut = false, | ||
| QGraphicsItem * | parent = nullptr ) |
|
override |
|
override |