![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <player_logic.h>
Public Slots | |
| void | setActive (bool _active) |
| void | onRequestZoneViewToggle (const QString &zoneName, int numberCards, bool isReversed) |
Signals | |
| void | openDeckEditor (const LoadedDeck &deck) |
| void | requestZoneViewToggle (PlayerLogic *player, const QString &zoneName, int numberCards, bool isReversed) |
| void | requestRevealedZoneView (PlayerLogic *player, CardZoneLogic *zone, const QList< const ServerInfo_Card * > &cardList, bool withWritePermission) |
| void | deckChanged () |
| void | playmatChanged () |
| Emitted when the remote playmat (card/params) is updated from player properties. | |
| void | newCardAdded (AbstractCardItem *card) |
| void | requestCardMenuUpdate (const CardItem *card) |
| void | counterAdded (CounterState *state) |
| void | counterRemoved (int counterId) |
| void | rearrangeCounters () |
| void | activeChanged (bool active) |
| void | zoneIdChanged (int zoneId) |
| void | concededChanged (int playerId, bool conceded) |
| void | clearCustomZonesMenu () |
| void | addViewCustomZoneActionToCustomZoneMenu (QString zoneName) |
| void | resetTopCardMenuActions () |
| void | arrowCreateRequested (QSharedPointer< ArrowData > data) |
| void | arrowDeleteRequested (int creatorId, int arrowId) |
| void | arrowDeleted (int creatorId, int arrowId) |
| void | arrowsClearedLocally () |
Private Attributes | |
| AbstractGame * | game |
| PlayerInfo * | playerInfo |
| PlayerEventHandler * | playerEventHandler |
| PlayerActions * | playerActions |
| bool | active |
| bool | conceded |
| DeckList | deck |
| int | zoneId |
| QMap< QString, CardZoneLogic * > | zones |
| QMap< int, CounterState * > | counters |
| bool | dialogSemaphore |
| QList< CardItem * > | cardsToDelete |
| CardRef | remotePlaymatCard |
| PlaymatParams | remotePlaymatParams |
| bool | hasRemotePlaymat = false |
| PlayerLogic::PlayerLogic | ( | const ServerInfo_User & | info, |
| int | _id, | ||
| bool | _local, | ||
| bool | _judge, | ||
| AbstractGame * | _parent ) |
|
override |
|
signal |
| void PlayerLogic::addCard | ( | CardItem * | c | ) |
| CounterState * PlayerLogic::addCounter | ( | const ServerInfo_Counter & | counter | ) |
| CounterState * PlayerLogic::addCounter | ( | int | id, |
| const QString & | name, | ||
| const QColor & | color, | ||
| int | radius, | ||
| int | value ) |
|
signal |
|
inline |
|
signal |
|
signal |
|
signal |
|
signal |
| void PlayerLogic::clear | ( | ) |
| bool PlayerLogic::clearCardsToDelete | ( | ) |
| void PlayerLogic::clearCounters | ( | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| void PlayerLogic::delCounter | ( | int | counterId | ) |
| void PlayerLogic::deleteCard | ( | CardItem * | c | ) |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| CounterState * PlayerLogic::getLifeCounter | ( | ) | const |
Gets the counter that represents the life total.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void PlayerLogic::initializeZones | ( | ) |
|
signal |
|
slot |
|
signal |
|
signal |
Emitted when the remote playmat (card/params) is updated from player properties.
| void PlayerLogic::processCardAttachment | ( | const ServerInfo_Player & | info | ) |
| void PlayerLogic::processPlayerInfo | ( | const ServerInfo_Player & | info | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
slot |
| void PlayerLogic::setConceded | ( | bool | _conceded | ) |
| void PlayerLogic::setDeck | ( | const DeckList & | _deck | ) |
|
inline |
| void PlayerLogic::setGameStarted | ( | ) |
| void PlayerLogic::setPlaymatFromProperties | ( | const ServerInfo_PlayerProperties & | props | ) |
| void PlayerLogic::setZoneId | ( | int | _zoneId | ) |
| void PlayerLogic::updateZones | ( | ) |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |