#include <player_logic.h>
|
| | PlayerLogic (const ServerInfo_User &info, int _id, bool _local, bool _judge, AbstractGame *_parent) |
| | ~PlayerLogic () override |
| void | initializeZones () |
| void | updateZones () |
| void | clear () |
| void | processPlayerInfo (const ServerInfo_Player &info) |
| void | processCardAttachment (const ServerInfo_Player &info) |
| void | addCard (CardItem *c) |
| void | deleteCard (CardItem *c) |
| bool | clearCardsToDelete () |
| bool | getActive () const |
| AbstractGame * | getGame () const |
| GameScene * | getGameScene () |
| PlayerGraphicsItem * | getGraphicsItem () |
| PlayerActions * | getPlayerActions () const |
| PlayerEventHandler * | getPlayerEventHandler () const |
| PlayerInfo * | getPlayerInfo () const |
| PlayerMenu * | getPlayerMenu () const |
| void | setDeck (const DeckList &_deck) |
| const DeckList & | getDeck () const |
| template<typename T> |
| T * | addZone (T *zone) |
| CardZoneLogic * | getZone (const QString zoneName) |
| const QMap< QString, CardZoneLogic * > & | getZones () const |
| PileZoneLogic * | getDeckZone () |
| PileZoneLogic * | getGraveZone () |
| PileZoneLogic * | getRfgZone () |
| PileZoneLogic * | getSideboardZone () |
| TableZoneLogic * | getTableZone () |
| StackZoneLogic * | getStackZone () |
| HandZoneLogic * | getHandZone () |
| CounterState * | addCounter (const ServerInfo_Counter &counter) |
| CounterState * | addCounter (int id, const QString &name, const QColor &color, int radius, int value) |
| void | delCounter (int counterId) |
| void | clearCounters () |
| QMap< int, CounterState * > | getCounters () const |
| CounterState * | getLifeCounter () const |
| void | setConceded (bool _conceded) |
| bool | getConceded () const |
| void | setGameStarted () |
| void | setDialogSemaphore (const bool _active) |
| int | getZoneId () const |
| void | setZoneId (int _zoneId) |
◆ PlayerLogic()
| PlayerLogic::PlayerLogic |
( |
const ServerInfo_User & | info, |
|
|
int | _id, |
|
|
bool | _local, |
|
|
bool | _judge, |
|
|
AbstractGame * | _parent ) |
◆ ~PlayerLogic()
| PlayerLogic::~PlayerLogic |
( |
| ) |
|
|
override |
◆ activeChanged
| void PlayerLogic::activeChanged |
( |
bool | active | ) |
|
|
signal |
◆ addCard()
| void PlayerLogic::addCard |
( |
CardItem * | c | ) |
|
◆ addCounter() [1/2]
| CounterState * PlayerLogic::addCounter |
( |
const ServerInfo_Counter & | counter | ) |
|
◆ addCounter() [2/2]
| CounterState * PlayerLogic::addCounter |
( |
int | id, |
|
|
const QString & | name, |
|
|
const QColor & | color, |
|
|
int | radius, |
|
|
int | value ) |
◆ addViewCustomZoneActionToCustomZoneMenu
| void PlayerLogic::addViewCustomZoneActionToCustomZoneMenu |
( |
QString | zoneName | ) |
|
|
signal |
◆ addZone()
template<typename T>
| T * PlayerLogic::addZone |
( |
T * | zone | ) |
|
|
inline |
◆ arrowCreateRequested
| void PlayerLogic::arrowCreateRequested |
( |
ArrowData | data | ) |
|
|
signal |
◆ arrowDeleted
| void PlayerLogic::arrowDeleted |
( |
int | arrowId | ) |
|
|
signal |
◆ arrowDeleteRequested
| void PlayerLogic::arrowDeleteRequested |
( |
int | arrowId | ) |
|
|
signal |
◆ arrowsCleared
| void PlayerLogic::arrowsCleared |
( |
| ) |
|
|
signal |
◆ clear()
| void PlayerLogic::clear |
( |
| ) |
|
◆ clearCardsToDelete()
| bool PlayerLogic::clearCardsToDelete |
( |
| ) |
|
◆ clearCounters()
| void PlayerLogic::clearCounters |
( |
| ) |
|
◆ clearCustomZonesMenu
| void PlayerLogic::clearCustomZonesMenu |
( |
| ) |
|
|
signal |
◆ concededChanged
| void PlayerLogic::concededChanged |
( |
int | playerId, |
|
|
bool | conceded ) |
|
signal |
◆ counterAdded
◆ counterRemoved
| void PlayerLogic::counterRemoved |
( |
int | counterId | ) |
|
|
signal |
◆ deckChanged
| void PlayerLogic::deckChanged |
( |
| ) |
|
|
signal |
◆ delCounter()
| void PlayerLogic::delCounter |
( |
int | counterId | ) |
|
◆ deleteCard()
| void PlayerLogic::deleteCard |
( |
CardItem * | c | ) |
|
◆ getActive()
| bool PlayerLogic::getActive |
( |
| ) |
const |
|
inline |
◆ getConceded()
| bool PlayerLogic::getConceded |
( |
| ) |
const |
|
inline |
◆ getCounters()
| QMap< int, CounterState * > PlayerLogic::getCounters |
( |
| ) |
const |
|
inline |
◆ getDeck()
| const DeckList & PlayerLogic::getDeck |
( |
| ) |
const |
|
inlinenodiscard |
◆ getDeckZone()
◆ getGame()
◆ getGameScene()
◆ getGraphicsItem()
◆ getGraveZone()
◆ getHandZone()
◆ getLifeCounter()
Gets the counter that represents the life total.
◆ getPlayerActions()
◆ getPlayerEventHandler()
◆ getPlayerInfo()
◆ getPlayerMenu()
◆ getRfgZone()
◆ getSideboardZone()
◆ getStackZone()
◆ getTableZone()
◆ getZone()
◆ getZoneId()
| int PlayerLogic::getZoneId |
( |
| ) |
const |
|
inline |
◆ getZones()
| const QMap< QString, CardZoneLogic * > & PlayerLogic::getZones |
( |
| ) |
const |
|
inline |
◆ initializeZones()
| void PlayerLogic::initializeZones |
( |
| ) |
|
◆ newCardAdded
◆ openDeckEditor
| void PlayerLogic::openDeckEditor |
( |
const LoadedDeck & | deck | ) |
|
|
signal |
◆ processCardAttachment()
| void PlayerLogic::processCardAttachment |
( |
const ServerInfo_Player & | info | ) |
|
◆ processPlayerInfo()
| void PlayerLogic::processPlayerInfo |
( |
const ServerInfo_Player & | info | ) |
|
◆ rearrangeCounters
| void PlayerLogic::rearrangeCounters |
( |
| ) |
|
|
signal |
◆ resetTopCardMenuActions
| void PlayerLogic::resetTopCardMenuActions |
( |
| ) |
|
|
signal |
◆ setActive
| void PlayerLogic::setActive |
( |
bool | _active | ) |
|
|
slot |
◆ setConceded()
| void PlayerLogic::setConceded |
( |
bool | _conceded | ) |
|
◆ setDeck()
| void PlayerLogic::setDeck |
( |
const DeckList & | _deck | ) |
|
◆ setDialogSemaphore()
| void PlayerLogic::setDialogSemaphore |
( |
const bool | _active | ) |
|
|
inline |
◆ setGameStarted()
| void PlayerLogic::setGameStarted |
( |
| ) |
|
◆ setZoneId()
| void PlayerLogic::setZoneId |
( |
int | _zoneId | ) |
|
◆ updateZones()
| void PlayerLogic::updateZones |
( |
| ) |
|
◆ zoneIdChanged
| void PlayerLogic::zoneIdChanged |
( |
int | zoneId | ) |
|
|
signal |
◆ active
◆ cardsToDelete
| QList<CardItem *> PlayerLogic::cardsToDelete |
|
private |
◆ conceded
| bool PlayerLogic::conceded |
|
private |
◆ counters
◆ deck
◆ dialogSemaphore
| bool PlayerLogic::dialogSemaphore |
|
private |
◆ game
◆ graphicsItem
◆ playerActions
◆ playerEventHandler
◆ playerInfo
◆ playerMenu
◆ zoneId
◆ zones
The documentation for this class was generated from the following files: