mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-29 18:13:55 -07:00
* Sort *every* file into a doxygen group. Took 7 hours 9 minutes Took 18 seconds Took 2 minutes * Lint some ingroup definitions. Took 10 minutes Took 2 seconds * Just include the groups in the Doxyfile in this commit. Took 3 minutes * Update some group comments so they link! Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
75 lines
1.3 KiB
C++
75 lines
1.3 KiB
C++
/**
|
|
* @file player_info.h
|
|
* @ingroup GameLogicPlayers
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef COCKATRICE_PLAYER_INFO_H
|
|
#define COCKATRICE_PLAYER_INFO_H
|
|
|
|
#include "../../../common/pb/serverinfo_user.pb.h"
|
|
#include "../../deck/deck_loader.h"
|
|
#include "../zones/hand_zone.h"
|
|
#include "../zones/pile_zone.h"
|
|
#include "../zones/stack_zone.h"
|
|
#include "../zones/table_zone.h"
|
|
#include "player_target.h"
|
|
|
|
#include <QObject>
|
|
|
|
class PlayerInfo : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
PlayerInfo(const ServerInfo_User &info, int id, bool local, bool judge);
|
|
|
|
ServerInfo_User *userInfo;
|
|
int id;
|
|
bool local;
|
|
bool judge;
|
|
bool handVisible;
|
|
|
|
int getId() const
|
|
{
|
|
return id;
|
|
}
|
|
ServerInfo_User *getUserInfo() const
|
|
{
|
|
return userInfo;
|
|
}
|
|
|
|
void setLocal(bool _local)
|
|
{
|
|
local = _local;
|
|
}
|
|
|
|
bool getLocal() const
|
|
{
|
|
return local;
|
|
}
|
|
bool getLocalOrJudge() const
|
|
{
|
|
return local || judge;
|
|
}
|
|
bool getJudge() const
|
|
{
|
|
return judge;
|
|
}
|
|
|
|
void setHandVisible(bool _handVisible)
|
|
{
|
|
handVisible = _handVisible;
|
|
}
|
|
|
|
bool getHandVisible() const
|
|
{
|
|
return handVisible;
|
|
}
|
|
|
|
QString getName() const
|
|
{
|
|
return QString::fromStdString(userInfo->name());
|
|
}
|
|
};
|
|
|
|
#endif // COCKATRICE_PLAYER_INFO_H
|