提交源码

编译环境 VS2017
This commit is contained in:
筱傑
2018-09-24 12:54:34 +08:00
committed by GitHub
parent a980868e77
commit a6666bcd52
33 changed files with 1059 additions and 0 deletions

37
蜘蛛纸牌/Card.h Normal file
View File

@@ -0,0 +1,37 @@
#pragma once
#include "CardType.h"
class Card
{
private:
CardValue _Value;
CardType _Type;
public:
Card() {}
Card(CardValue value, CardType type)
:_Value(value), _Type(type) {}
~Card() {}
CardValue GetValue() const
{
return _Value;
}
CardType GetType() const
{
return _Type;
}
bool operator<(const Card & card) const
{
return _Value < card._Value;
}
bool operator<(const CardValue & value) const
{
return _Value < value;
}
};