mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
started implementing a simple deck editor
This commit is contained in:
parent
46a43aade4
commit
e6d6162426
13 changed files with 333 additions and 27 deletions
|
|
@ -97,6 +97,17 @@ CardInfo *CardDatabase::getCard(const QString &cardName)
|
|||
}
|
||||
}
|
||||
|
||||
QList<CardInfo *>CardDatabase::getCardList()
|
||||
{
|
||||
QList<CardInfo *> cardList;
|
||||
QHashIterator<QString, CardInfo *> i(hash);
|
||||
while (i.hasNext()) {
|
||||
i.next();
|
||||
cardList.append(i.value());
|
||||
}
|
||||
return cardList;
|
||||
}
|
||||
|
||||
void CardDatabase::importOracle()
|
||||
{
|
||||
clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue