toggle menu
mahjong-utils
0.7.0
common
switch theme
search in API
mahjong-utils
/
mahjongutils.models
Package-level
declarations
Types
Functions
Properties
Types
Chi
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Chi"
)
data
class
Chi
(
val
tile
:
Tile
)
:
Furo
吃
Furo
Link copied to clipboard
@
Serializable
sealed
interface
Furo
副露
Kan
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Kan"
)
data
class
Kan
(
val
tile
:
Tile
,
val
ankan
:
Boolean
=
false
)
:
Furo
杠
Kanchan
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Kanchan"
)
data
class
Kanchan
(
val
first
:
Tile
)
:
Tatsu
坎张
Kotsu
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Kotsu"
)
data
class
Kotsu
(
val
tile
:
Tile
)
:
Mentsu
刻子
Mentsu
Link copied to clipboard
@
Serializable
(
with
=
MentsuSerializer::class
)
sealed
interface
Mentsu
面子
Penchan
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Penchan"
)
data
class
Penchan
(
val
first
:
Tile
)
:
Tatsu
边张
Pon
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Pon"
)
data
class
Pon
(
val
tile
:
Tile
)
:
Furo
碰
Ryanmen
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Ryanmen"
)
data
class
Ryanmen
(
val
first
:
Tile
)
:
Tatsu
两面
Shuntsu
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Shuntsu"
)
data
class
Shuntsu
(
val
tile
:
Tile
)
:
Mentsu
顺子
Tatsu
Link copied to clipboard
@
Serializable
(
with
=
TatsuSerializer::class
)
sealed
interface
Tatsu
搭子
Tile
Link copied to clipboard
@
Serializable
(
with
=
TileSerializer::class
)
data
class
Tile
:
Comparable
<
Tile
>
麻将牌
Tile
Type
Link copied to clipboard
enum
TileType
:
Enum
<
TileType
>
麻将牌的种类(万、筒、索、字)
Toitsu
Link copied to clipboard
@
Serializable
@
SerialName
(
value
=
"Toitsu"
)
data
class
Toitsu
(
val
first
:
Tile
)
:
Tatsu
对子
Wind
Link copied to clipboard
enum
Wind
:
Enum
<
Wind
>
风(东、南、西、北)
Properties
is
Sangen
Link copied to clipboard
val
Tile
.
isSangen
:
Boolean
是否为三元牌
is
Wind
Link copied to clipboard
val
Tile
.
isWind
:
Boolean
是否为风牌
is
Yaochu
Link copied to clipboard
val
Tile
.
isYaochu
:
Boolean
是否为幺九牌
Functions
count
As
Code
Array
Link copied to clipboard
fun
Iterable
<
Tile
>
.
countAsCodeArray
(
)
:
IntArray
count
As
Map
Link copied to clipboard
fun
Iterable
<
Tile
>
.
countAsMap
(
)
:
Map
<
Tile
,
Int
>
Furo
Link copied to clipboard
fun
Furo
(
vararg
tiles
:
Tile
,
ankan
:
Boolean
=
false
)
:
Furo
fun
Furo
(
text
:
String
,
ankan
:
Boolean
=
false
)
:
Furo
fun
Furo
(
tiles
:
List
<
Tile
>
,
ankan
:
Boolean
=
false
)
:
Furo
Mentsu
Link copied to clipboard
fun
Mentsu
(
vararg
tiles
:
Tile
)
:
Mentsu
fun
Mentsu
(
text
:
String
)
:
Mentsu
fun
Mentsu
(
tiles
:
List
<
Tile
>
)
:
Mentsu
Tatsu
Link copied to clipboard
fun
Tatsu
(
text
:
String
)
:
Tatsu
fun
Tatsu
(
first
:
Tile
,
second
:
Tile
)
:
Tatsu
to
Tiles
String
Link copied to clipboard
fun
Iterable
<
Tile
>
.
toTilesString
(
lowercase
:
Boolean
=
true
)
:
String
将牌序列转换为牌文本