Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxFan = -1 // 极品 MeiHu = -2 // 没胡牌 )
View Source
const (
IllegalIndex = -1
)
View Source
const MaxTileIndex = 29
每种花色(条,筒)最多9种牌型,但牌是没有0点的共计 9+9 1-9: 条 11-19: 筒 21-29: 万
Variables ¶
This section is empty.
Functions ¶
func IndexFromID ¶
Types ¶
type Context ¶
type Context struct { WinningID int //自己要和的牌 PrevOp int //上一个操作 NewDrawingID int //最新上手的牌 NewOtherDiscardID int //上家打出的最新一张牌 LastDiscardId int // 最新打过的牌 Desc []string // 描述 IsLastTile bool //自己上手的最新一张牌,是否是桌面上的最后一张 LastHint *protocol.Hint //最后一次提示 ResultType int Opts *protocol.DeskOptions DeskNo string Uid int64 Fan int // 番数, -1表示极品 Que int // 定缺,0表示未定缺,1表示缺条/2缺筒/3缺万 IsGangShangHua bool // 是不是杠上花 IsGangShangPao bool // 是不是杠上炮 IsQiangGangHu bool // 是不是抢杠胡 }
type ScoreChangeType ¶
type ScoreChangeType byte
Click to show internal directories.
Click to hide internal directories.