#include <server_card.h>
|
| | Server_Card (const CardRef &cardRef, int _id, int _coord_x, int _coord_y, Server_CardZone *_zone=nullptr) |
| | ~Server_Card () override |
| Server_CardZone * | getZone () const |
| void | setZone (Server_CardZone *_zone) |
| int | getId () const |
| CardRef | getCardRef () const |
| QString | getProviderId () const |
| int | getX () const |
| int | getY () const |
| QString | getName () const |
| const QMap< int, int > & | getCounters () const |
| int | getCounter (int counter_id) const |
| bool | getTapped () const |
| bool | getAttacking () const |
| bool | getFaceDown () const |
| QString | getColor () const |
| QString | getPT () const |
| QString | getAnnotation () const |
| bool | getDoesntUntap () const |
| bool | getDestroyOnZoneChange () const |
| Server_Card * | getParentCard () const |
| const QList< Server_Card * > & | getAttachedCards () const |
| void | setId (int _id) |
| void | setCoords (int x, int y) |
| void | setCardRef (const CardRef &_cardRef) |
| void | setCounter (int _id, int value, Event_SetCardCounter *event=nullptr) |
| void | setTapped (bool _tapped) |
| void | setAttacking (bool _attacking) |
| void | setFaceDown (bool _facedown) |
| void | setColor (const QString &_color) |
| void | setPT (const QString &_pt) |
| void | setAnnotation (const QString &_annotation) |
| void | setDestroyOnZoneChange (bool _destroy) |
| void | setDoesntUntap (bool _doesntUntap) |
| void | setParentCard (Server_Card *_parentCard) |
| void | addAttachedCard (Server_Card *card) |
| void | removeAttachedCard (Server_Card *card) |
| void | setStashedCard (Server_Card *card) |
| Server_Card * | takeStashedCard () |
| void | resetState (bool keepAnnotations=false) |
| QString | setAttribute (CardAttribute attribute, const QString &avalue, bool allCards) |
| QString | setAttribute (CardAttribute attribute, const QString &avalue, Event_SetCardAttr *event=nullptr) |
| void | getInfo (ServerInfo_Card *info) |
◆ Server_Card()
| Server_Card::Server_Card |
( |
const CardRef & | cardRef, |
|
|
int | _id, |
|
|
int | _coord_x, |
|
|
int | _coord_y, |
|
|
Server_CardZone * | _zone = nullptr ) |
◆ ~Server_Card()
| Server_Card::~Server_Card |
( |
| ) |
|
|
override |
◆ addAttachedCard()
| void Server_Card::addAttachedCard |
( |
Server_Card * | card | ) |
|
|
inline |
◆ getAnnotation()
| QString Server_Card::getAnnotation |
( |
| ) |
const |
|
inline |
◆ getAttachedCards()
| const QList< Server_Card * > & Server_Card::getAttachedCards |
( |
| ) |
const |
|
inline |
◆ getAttacking()
| bool Server_Card::getAttacking |
( |
| ) |
const |
|
inline |
◆ getCardRef()
| CardRef Server_Card::getCardRef |
( |
| ) |
const |
|
inline |
◆ getColor()
| QString Server_Card::getColor |
( |
| ) |
const |
|
inline |
◆ getCounter()
| int Server_Card::getCounter |
( |
int | counter_id | ) |
const |
|
inline |
◆ getCounters()
| const QMap< int, int > & Server_Card::getCounters |
( |
| ) |
const |
|
inline |
◆ getDestroyOnZoneChange()
| bool Server_Card::getDestroyOnZoneChange |
( |
| ) |
const |
|
inline |
◆ getDoesntUntap()
| bool Server_Card::getDoesntUntap |
( |
| ) |
const |
|
inline |
◆ getFaceDown()
| bool Server_Card::getFaceDown |
( |
| ) |
const |
|
inline |
◆ getId()
| int Server_Card::getId |
( |
| ) |
const |
|
inline |
◆ getInfo()
| void Server_Card::getInfo |
( |
ServerInfo_Card * | info | ) |
|
◆ getName()
| QString Server_Card::getName |
( |
| ) |
const |
|
inline |
◆ getParentCard()
◆ getProviderId()
| QString Server_Card::getProviderId |
( |
| ) |
const |
|
inline |
◆ getPT()
| QString Server_Card::getPT |
( |
| ) |
const |
|
inline |
◆ getTapped()
| bool Server_Card::getTapped |
( |
| ) |
const |
|
inline |
◆ getX()
| int Server_Card::getX |
( |
| ) |
const |
|
inline |
◆ getY()
| int Server_Card::getY |
( |
| ) |
const |
|
inline |
◆ getZone()
◆ removeAttachedCard()
| void Server_Card::removeAttachedCard |
( |
Server_Card * | card | ) |
|
|
inline |
◆ resetState()
| void Server_Card::resetState |
( |
bool | keepAnnotations = false | ) |
|
◆ setAnnotation()
| void Server_Card::setAnnotation |
( |
const QString & | _annotation | ) |
|
|
inline |
◆ setAttacking()
| void Server_Card::setAttacking |
( |
bool | _attacking | ) |
|
|
inline |
◆ setAttribute() [1/2]
| QString Server_Card::setAttribute |
( |
CardAttribute | attribute, |
|
|
const QString & | avalue, |
|
|
bool | allCards ) |
◆ setAttribute() [2/2]
| QString Server_Card::setAttribute |
( |
CardAttribute | attribute, |
|
|
const QString & | avalue, |
|
|
Event_SetCardAttr * | event = nullptr ) |
◆ setCardRef()
| void Server_Card::setCardRef |
( |
const CardRef & | _cardRef | ) |
|
|
inline |
◆ setColor()
| void Server_Card::setColor |
( |
const QString & | _color | ) |
|
|
inline |
◆ setCoords()
| void Server_Card::setCoords |
( |
int | x, |
|
|
int | y ) |
|
inline |
◆ setCounter()
| void Server_Card::setCounter |
( |
int | _id, |
|
|
int | value, |
|
|
Event_SetCardCounter * | event = nullptr ) |
◆ setDestroyOnZoneChange()
| void Server_Card::setDestroyOnZoneChange |
( |
bool | _destroy | ) |
|
|
inline |
◆ setDoesntUntap()
| void Server_Card::setDoesntUntap |
( |
bool | _doesntUntap | ) |
|
|
inline |
◆ setFaceDown()
| void Server_Card::setFaceDown |
( |
bool | _facedown | ) |
|
|
inline |
◆ setId()
| void Server_Card::setId |
( |
int | _id | ) |
|
|
inline |
◆ setParentCard()
| void Server_Card::setParentCard |
( |
Server_Card * | _parentCard | ) |
|
◆ setPT()
| void Server_Card::setPT |
( |
const QString & | _pt | ) |
|
|
inline |
◆ setStashedCard()
◆ setTapped()
| void Server_Card::setTapped |
( |
bool | _tapped | ) |
|
|
inline |
◆ setZone()
◆ takeStashedCard()
◆ annotation
| QString Server_Card::annotation |
|
private |
◆ attachedCards
◆ attacking
| bool Server_Card::attacking |
|
private |
◆ cardRef
◆ color
| QString Server_Card::color |
|
private |
◆ coord_x
◆ coord_y
◆ counters
| QMap<int, int> Server_Card::counters |
|
private |
◆ destroyOnZoneChange
| bool Server_Card::destroyOnZoneChange |
|
private |
◆ doesntUntap
| bool Server_Card::doesntUntap |
|
private |
◆ facedown
| bool Server_Card::facedown |
|
private |
◆ id
◆ parentCard
◆ ptString
| QString Server_Card::ptString |
|
private |
◆ stashedCard
◆ tapped
◆ zone
The documentation for this class was generated from the following files:
- libcockatrice_network/libcockatrice/network/server/remote/game/server_card.h
- libcockatrice_network/libcockatrice/network/server/remote/game/server_card.cpp