Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Server_Card Class Reference

#include <server_card.h>

Inheritance diagram for Server_Card:
[legend]
Collaboration diagram for Server_Card:
[legend]

Public Member Functions

 Server_Card (const CardRef &cardRef, int _id, int _coord_x, int _coord_y, Server_CardZone *_zone=nullptr)
 ~Server_Card () override
Server_CardZonegetZone () 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_CardgetParentCard () 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_CardtakeStashedCard ()
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)

Private Attributes

Server_CardZonezone
int id
int coord_x
int coord_y
CardRef cardRef
QMap< int, int > counters
bool tapped
bool attacking
bool facedown
QString color
QString ptString
QString annotation
bool destroyOnZoneChange
bool doesntUntap
Server_CardparentCard
QList< Server_Card * > attachedCards
Server_CardstashedCard

Constructor & Destructor Documentation

◆ Server_Card()

Server_Card::Server_Card ( const CardRef & cardRef,
int _id,
int _coord_x,
int _coord_y,
Server_CardZone * _zone = nullptr )
Here is the caller graph for this function:

◆ ~Server_Card()

Server_Card::~Server_Card ( )
override

Member Function Documentation

◆ addAttachedCard()

void Server_Card::addAttachedCard ( Server_Card * card)
inline
Here is the call graph for this function:

◆ getAnnotation()

QString Server_Card::getAnnotation ( ) const
inline
Here is the caller graph for this function:

◆ getAttachedCards()

const QList< Server_Card * > & Server_Card::getAttachedCards ( ) const
inline
Here is the caller graph for this function:

◆ getAttacking()

bool Server_Card::getAttacking ( ) const
inline
Here is the caller graph for this function:

◆ getCardRef()

CardRef Server_Card::getCardRef ( ) const
inline

◆ getColor()

QString Server_Card::getColor ( ) const
inline
Here is the caller graph for this function:

◆ getCounter()

int Server_Card::getCounter ( int counter_id) const
inline
Here is the caller graph for this function:

◆ getCounters()

const QMap< int, int > & Server_Card::getCounters ( ) const
inline
Here is the caller graph for this function:

◆ getDestroyOnZoneChange()

bool Server_Card::getDestroyOnZoneChange ( ) const
inline
Here is the caller graph for this function:

◆ getDoesntUntap()

bool Server_Card::getDoesntUntap ( ) const
inline
Here is the caller graph for this function:

◆ getFaceDown()

bool Server_Card::getFaceDown ( ) const
inline
Here is the caller graph for this function:

◆ getId()

int Server_Card::getId ( ) const
inline
Here is the caller graph for this function:

◆ getInfo()

void Server_Card::getInfo ( ServerInfo_Card * info)

◆ getName()

QString Server_Card::getName ( ) const
inline
Here is the caller graph for this function:

◆ getParentCard()

Server_Card * Server_Card::getParentCard ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getProviderId()

QString Server_Card::getProviderId ( ) const
inline
Here is the caller graph for this function:

◆ getPT()

QString Server_Card::getPT ( ) const
inline
Here is the caller graph for this function:

◆ getTapped()

bool Server_Card::getTapped ( ) const
inline
Here is the caller graph for this function:

◆ getX()

int Server_Card::getX ( ) const
inline
Here is the caller graph for this function:

◆ getY()

int Server_Card::getY ( ) const
inline
Here is the caller graph for this function:

◆ getZone()

Server_CardZone * Server_Card::getZone ( ) const
inline
Here is the caller graph for this function:

◆ removeAttachedCard()

void Server_Card::removeAttachedCard ( Server_Card * card)
inline
Here is the call graph for this function:

◆ resetState()

void Server_Card::resetState ( bool keepAnnotations = false)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAnnotation()

void Server_Card::setAnnotation ( const QString & _annotation)
inline
Here is the caller graph for this function:

◆ setAttacking()

void Server_Card::setAttacking ( bool _attacking)
inline
Here is the caller graph for this function:

◆ setAttribute() [1/2]

QString Server_Card::setAttribute ( CardAttribute attribute,
const QString & avalue,
bool allCards )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAttribute() [2/2]

QString Server_Card::setAttribute ( CardAttribute attribute,
const QString & avalue,
Event_SetCardAttr * event = nullptr )
Here is the call graph for this function:

◆ setCardRef()

void Server_Card::setCardRef ( const CardRef & _cardRef)
inline

◆ setColor()

void Server_Card::setColor ( const QString & _color)
inline
Here is the caller graph for this function:

◆ setCoords()

void Server_Card::setCoords ( int x,
int y )
inline
Here is the caller graph for this function:

◆ setCounter()

void Server_Card::setCounter ( int _id,
int value,
Event_SetCardCounter * event = nullptr )
Here is the caller graph for this function:

◆ setDestroyOnZoneChange()

void Server_Card::setDestroyOnZoneChange ( bool _destroy)
inline

◆ setDoesntUntap()

void Server_Card::setDoesntUntap ( bool _doesntUntap)
inline
Here is the caller graph for this function:

◆ setFaceDown()

void Server_Card::setFaceDown ( bool _facedown)
inline
Here is the caller graph for this function:

◆ setId()

void Server_Card::setId ( int _id)
inline
Here is the caller graph for this function:

◆ setParentCard()

void Server_Card::setParentCard ( Server_Card * _parentCard)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPT()

void Server_Card::setPT ( const QString & _pt)
inline
Here is the caller graph for this function:

◆ setStashedCard()

void Server_Card::setStashedCard ( Server_Card * card)
inline
Here is the call graph for this function:

◆ setTapped()

void Server_Card::setTapped ( bool _tapped)
inline
Here is the caller graph for this function:

◆ setZone()

void Server_Card::setZone ( Server_CardZone * _zone)
inline
Here is the caller graph for this function:

◆ takeStashedCard()

Server_Card * Server_Card::takeStashedCard ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ annotation

QString Server_Card::annotation
private

◆ attachedCards

QList<Server_Card *> Server_Card::attachedCards
private

◆ attacking

bool Server_Card::attacking
private

◆ cardRef

CardRef Server_Card::cardRef
private

◆ color

QString Server_Card::color
private

◆ coord_x

int Server_Card::coord_x
private

◆ coord_y

int Server_Card::coord_y
private

◆ 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

int Server_Card::id
private

◆ parentCard

Server_Card* Server_Card::parentCard
private

◆ ptString

QString Server_Card::ptString
private

◆ stashedCard

Server_Card* Server_Card::stashedCard
private

◆ tapped

bool Server_Card::tapped
private

◆ zone

Server_CardZone* Server_Card::zone
private

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