toggle menu
mahjong-utils
0.7.7
common
switch theme
search in API
mahjong-utils
/
mahjongutils.models
Package-level
declarations
Types
Functions
Properties
Types
Furo
Link copied to clipboard
@
JvmInline
@
Serializable
(
with
=
FuroSerializer::class
)
value
class
Furo
Furo
Serializer
Link copied to clipboard
object
FuroSerializer
:
KSerializer
<
Furo
>
Furo
Type
Link copied to clipboard
enum
FuroType
:
Enum
<
FuroType
>
Mentsu
Link copied to clipboard
@
JvmInline
@
Serializable
(
with
=
MentsuSerializer::class
)
value
class
Mentsu
面子
Mentsu
Type
Link copied to clipboard
enum
MentsuType
:
Enum
<
MentsuType
>
Tatsu
Link copied to clipboard
@
JvmInline
@
Serializable
(
with
=
TatsuSerializer::class
)
value
class
Tatsu
搭子
Tatsu
Type
Link copied to clipboard
enum
TatsuType
:
Enum
<
TatsuType
>
Tile
Link copied to clipboard
@
JvmInline
@
Serializable
(
with
=
TileSerializer::class
)
value
class
Tile
:
Comparable
<
Tile
>
麻将牌
Tile
Type
Link copied to clipboard
enum
TileType
:
Enum
<
TileType
>
麻将牌的种类(万、筒、索、字)
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
Ankan
Link copied to clipboard
fun
Ankan
(
tile
:
Tile
)
:
Furo
Chi
Link copied to clipboard
fun
Chi
(
tile
:
Tile
)
:
Furo
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
(
text
:
String
,
ankan
:
Boolean
=
false
)
:
Furo
fun
Furo
(
tiles
:
List
<
Tile
>
,
ankan
:
Boolean
=
false
)
:
Furo
Kan
Link copied to clipboard
fun
Kan
(
tile
:
Tile
)
:
Furo
Kanchan
Link copied to clipboard
fun
Kanchan
(
tile
:
Tile
)
:
Tatsu
Kotsu
Link copied to clipboard
fun
Kotsu
(
tile
:
Tile
)
:
Mentsu
Mentsu
Link copied to clipboard
fun
Mentsu
(
text
:
String
)
:
Mentsu
fun
Mentsu
(
tiles
:
List
<
Tile
>
)
:
Mentsu
Penchan
Link copied to clipboard
fun
Penchan
(
tile
:
Tile
)
:
Tatsu
Pon
Link copied to clipboard
fun
Pon
(
tile
:
Tile
)
:
Furo
Ryanmen
Link copied to clipboard
fun
Ryanmen
(
tile
:
Tile
)
:
Tatsu
Shuntsu
Link copied to clipboard
fun
Shuntsu
(
tile
:
Tile
)
:
Mentsu
Tatsu
Link copied to clipboard
fun
Tatsu
(
text
:
String
)
:
Tatsu
fun
Tatsu
(
first
:
Tile
,
second
:
Tile
)
:
Tatsu
Toitsu
Link copied to clipboard
fun
Toitsu
(
tile
:
Tile
)
:
Tatsu
to
Tiles
String
Link copied to clipboard
fun
Iterable
<
Tile
>
.
toTilesString
(
lowercase
:
Boolean
=
true
)
:
String
将牌序列转换为牌文本