![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <card_state.h>
Signals | |
| void | stateChanged () |
| void | attackingChanged (bool newValue) |
| void | countersChanged (const QMap< int, int > &newCounters) |
| void | annotationChanged (const QString &newAnnotation) |
| void | ptChanged (const QString &newPt) |
| void | doesntUntapChanged (bool newValue) |
| void | destroyOnZoneChangeChanged (bool newValue) |
| void | attachedToChanged (CardItem *newAttachedTo) |
| void | zoneChanged (CardState *changedCard, CardZoneLogic *newZone) |
Public Member Functions | |
| CardState (QObject *parent, CardZoneLogic *_zone) | |
| void | resetState (bool keepAnnotations) |
| CardZoneLogic * | getZone () const |
| void | setZone (CardZoneLogic *_zone) |
| bool | getAttacking () const |
| void | setAttacking (bool _attacking) |
| const QMap< int, int > & | getCounters () const |
| void | insertCounter (int id, int value) |
| void | setCounter (int id, int value) |
| void | clearCounters () |
| QString | getAnnotation () const |
| void | setAnnotation (const QString &_annotation) |
| QString | getPT () const |
| void | setPT (const QString &_pt) |
| bool | getDoesntUntap () const |
| void | setDoesntUntap (bool _doesntUntap) |
| bool | getDestroyOnZoneChange () const |
| void | setDestroyOnZoneChange (bool _destroyOnZoneChange) |
| CardItem * | getAttachedTo () const |
| void | setAttachedTo (CardItem *_attachedTo) |
Private Attributes | |
| bool | attacking = false |
| QMap< int, int > | counters |
| QString | annotation |
| QString | pt |
| bool | doesntUntap = false |
| bool | destroyOnZoneChange = false |
| CardItem * | attachedTo = nullptr |
| CardZoneLogic * | zone = nullptr |
|
inlineexplicit |
|
signal |
|
signal |
|
signal |
| void CardState::clearCounters | ( | ) |
|
signal |
|
signal |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void CardState::insertCounter | ( | int | id, |
| int | value ) |
|
signal |
| void CardState::resetState | ( | bool | keepAnnotations | ) |
| void CardState::setAnnotation | ( | const QString & | _annotation | ) |
| void CardState::setAttachedTo | ( | CardItem * | _attachedTo | ) |
| void CardState::setAttacking | ( | bool | _attacking | ) |
| void CardState::setCounter | ( | int | id, |
| int | value ) |
| void CardState::setDestroyOnZoneChange | ( | bool | _destroyOnZoneChange | ) |
| void CardState::setDoesntUntap | ( | bool | _doesntUntap | ) |
| void CardState::setPT | ( | const QString & | _pt | ) |
| void CardState::setZone | ( | CardZoneLogic * | _zone | ) |
|
signal |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |