mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Refactor: clean up MessageLogWidget (#5870)
* use constants instead of static methods * make static methods static * remove unused variables
This commit is contained in:
parent
ca73033aea
commit
f7152befec
2 changed files with 30 additions and 77 deletions
|
|
@ -21,22 +21,10 @@ private:
|
|||
MessageContext_Mulligan
|
||||
};
|
||||
|
||||
int mulliganNumber;
|
||||
Player *mulliganPlayer;
|
||||
MessageContext currentContext;
|
||||
QString messagePrefix, messageSuffix;
|
||||
|
||||
const QString &tableConstant() const;
|
||||
const QString &graveyardConstant() const;
|
||||
const QString &exileConstant() const;
|
||||
const QString &handConstant() const;
|
||||
const QString &deckConstant() const;
|
||||
const QString &sideboardConstant() const;
|
||||
const QString &stackConstant() const;
|
||||
|
||||
QString sanitizeHtml(QString dirty) const;
|
||||
QString cardLink(QString cardName) const;
|
||||
QPair<QString, QString> getFromStr(CardZone *zone, QString cardName, int position, bool ownerChange) const;
|
||||
static QPair<QString, QString> getFromStr(CardZone *zone, QString cardName, int position, bool ownerChange);
|
||||
|
||||
public slots:
|
||||
void containerProcessingDone();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue