mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
Decklist testing (#2537)
This commit is contained in:
parent
ef7670a1e6
commit
9cbae8c707
6 changed files with 173 additions and 5 deletions
|
|
@ -173,11 +173,11 @@ float InnerDecklistNode::recursivePrice(bool countTotalCards) const
|
|||
bool InnerDecklistNode::compare(AbstractDecklistNode *other) const
|
||||
{
|
||||
switch (sortMethod) {
|
||||
case 0:
|
||||
case ByNumber:
|
||||
return compareNumber(other);
|
||||
case 1:
|
||||
case ByName:
|
||||
return compareName(other);
|
||||
case 2:
|
||||
case ByPrice:
|
||||
return comparePrice(other);
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#include <QtCore/QXmlStreamReader>
|
||||
#include <QtCore/QXmlStreamWriter>
|
||||
|
||||
#include "pb/move_card_to_zone.pb.h"
|
||||
#include <common/pb/move_card_to_zone.pb.h>
|
||||
|
||||
class CardDatabase;
|
||||
class QIODevice;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue