資源簡介
源碼不完整,僅供參考
代碼片段和文件信息
using?Ourgame.Define;
using?System;
public?class?Card
{
????private?int?_ID?=?-1;
????public?int?ID
????{
????????get
????????{
????????????return?(this._ID?0)???52?:?this._ID;
????????}
????????set
????????{
????????????this._ID?=?(value?>?51)???-1?:?value;
????????????this._Color?=?(value?0?||?value?>?51)???(int)PokerColor.UNKNOW?:?Convert.ToInt32(Math.Floor(Convert.ToDecimal(this._ID?/?13)));
????????????this._Point?=?(value?0?||?value?>?51)???(int)PokerPoint.UNKNOW?:?this._ID?%?13;
????????}
????}
????private?int?_Color?=?(int)PokerColor.UNKNOW;
????public?int?Color
????{
????????get
????????{
????????????return?this._Color;
????????}
????????set
????????{
????????????this._Color?=?value;
????????????this._ID?=?(this._Color?==?(int)PokerColor.UNKNOW?||?this._Point?==?(int)PokerPoint.UNKNOW)???-1?:?this._Point?+?this._Color?*?13;
????????}
????}
????private?int?_Point?=?(int)PokerPoint.UNKNOW;
????public?int?Point
????{
????????get
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2740??2017-11-24?14:43??Card.cs
?????文件??????17970??2018-01-30?17:40??PatternAnalyzer.cs
-----------?---------??----------?-----??----
????????????????20710????????????????????2
評論
共有 條評論