Global

Members

(constant) MITYPE_AKAN :number

Type:
  • number
Default Value:
  • 410
Source:

(constant) MITYPE_ANKO :number

Type:
  • number
Default Value:
  • 310
Source:

(constant) MITYPE_CHIIL :number

Type:
  • number
Default Value:
  • 323
Source:

(constant) MITYPE_CHIIM :number

Type:
  • number
Default Value:
  • 322
Source:

(constant) MITYPE_CHIIS :number

Type:
  • number
Default Value:
  • 321
Source:

(constant) MITYPE_KKAN1 :number

Type:
  • number
Default Value:
  • 411
Source:

(constant) MITYPE_KKAN2 :number

Type:
  • number
Default Value:
  • 412
Source:

(constant) MITYPE_KKAN3 :number

Type:
  • number
Default Value:
  • 413
Source:

(constant) MITYPE_KTARZ :number

Type:
  • number
Default Value:
  • 230
Source:

(constant) MITYPE_MKAN1 :number

Type:
  • number
Default Value:
  • 421
Source:

(constant) MITYPE_MKAN2 :number

Type:
  • number
Default Value:
  • 422
Source:

(constant) MITYPE_MKAN3 :number

Type:
  • number
Default Value:
  • 423
Source:

(constant) MITYPE_PON1 :number

Type:
  • number
Default Value:
  • 311
Source:

(constant) MITYPE_PON2 :number

Type:
  • number
Default Value:
  • 312
Source:

(constant) MITYPE_PON3 :number

Type:
  • number
Default Value:
  • 313
Source:

(constant) MITYPE_PTARZ :number

Type:
  • number
Default Value:
  • 221
Source:

(constant) MITYPE_RTARZ :number

Type:
  • number
Default Value:
  • 220
Source:

(constant) MITYPE_SHUNZ :number

Type:
  • number
Default Value:
  • 320
Source:

(constant) MITYPE_TANKI :number

Type:
  • number
Default Value:
  • 110
Source:

(constant) MITYPE_TOITZ :number

Type:
  • number
Default Value:
  • 210
Source:

Methods

calc(pai, len) → {string}

向聴数などを計算した結果を文字列表現にして返す… 複雑な文字列で返されるので使い道がない… 関数内部でmjcommon.jsのpaiName34を使用している
Parameters:
Name Type Description
pai Array.<number> 牌ID(0-135)のリスト(手牌相当)
len number
Source:
Returns:
Type
string

getPaiImageSrc(id) → {string}

牌ID(0~135)から牌画像のURLの取得
Parameters:
Name Type Description
id number
Source:
Returns:
Type
string

MentzInfoToString(mi) → {string}

牌の組(MentzInfo)を文字列表現する
Parameters:
Name Type Description
mi MentzInfo
Source:
Returns:
Type
string

paiName34(p, a) → {string}

牌種番号(0~33)から牌の名前取得
Parameters:
Name Type Description
p number
a boolean falseのみ (trueはバグ有)
Source:
Returns:
Type
string

paiName136(id) → {string}

牌ID(0~135)から牌の名前取得
Parameters:
Name Type Description
id number
Source:
Returns:
Type
string

rand(n) → {number}

n未満の乱数生成
Parameters:
Name Type Description
n number
Source:
Returns:
Type
number