Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blovemaple/mahjong
/ functions
Functions
695 in github.com/blovemaple/mahjong
⨍
Functions
695
◇
Types & classes
114
↓ 125 callers
Method
size
返回一个单元中有几张牌。
src/main/java/com/github/blovemaple/mj/object/TileUnitType.java:15
↓ 102 callers
Method
get
()
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:39
↓ 83 callers
Method
add
(BazBotTileNeighborhood hood, BazBotTileUnit newUnit)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:156
↓ 66 callers
Method
of
返回指定牌。
src/main/java/com/github/blovemaple/mj/object/Tile.java:47
↓ 51 callers
Method
type
返回牌型。
src/main/java/com/github/blovemaple/mj/object/Tile.java:64
↓ 47 callers
Method
getAliveTiles
()
src/main/java/com/github/blovemaple/mj/object/PlayerTiles.java:27
↓ 47 callers
Method
str
()
src/main/java/com/github/blovemaple/mj/utils/LanguageManager.java:29
↓ 33 callers
Method
of
(Set<Tile> aliveTiles)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotAliveTiles.java:29
↓ 32 callers
Method
getType
返回类型。 @return 类型
src/main/java/com/github/blovemaple/mj/object/TileGroupPlayerView.java:19
↓ 30 callers
Method
of
返回指定牌型。
src/main/java/com/github/blovemaple/mj/object/TileType.java:49
↓ 29 callers
Method
getMyLocation
返回当前玩家位置。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:38
↓ 29 callers
Method
suit
返回花色。
src/main/java/com/github/blovemaple/mj/object/TileType.java:64
↓ 29 callers
Method
toString
Just for debug. @see java.lang.Object#toString()
src/main/java/com/github/blovemaple/mj/object/Tile.java:80
↓ 19 callers
Method
getMyInfo
返回当前玩家信息。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:43
↓ 18 callers
Method
getAliveTiles
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:91
↓ 18 callers
Method
getLocation
返回玩家位置。
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:64
↓ 18 callers
Method
rank
返回种类。
src/main/java/com/github/blovemaple/mj/object/TileType.java:71
↓ 17 callers
Method
matchBy
返回指定的动作类型是否是此类表示的动作。<br> 有些动作有上下从属关系,比如“摸底牌”是“摸牌”,但反过来不是。<br> 默认实现为判断真正类的从属关系。如果不是这样(例如{@link PlayerActionTypes}和{@link CpgActionType} )则需要重写此方法。
src/main/java/com/github/blovemaple/mj/action/ActionType.java:44
↓ 15 callers
Method
getPlayerInfoByLocation
(PlayerLocation location)
src/main/java/com/github/blovemaple/mj/game/GameContext.java:26
↓ 14 callers
Method
apply
(T t)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:24
↓ 14 callers
Method
getGameStrategy
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:22
↓ 13 callers
Method
getRankClass
()
src/main/java/com/github/blovemaple/mj/object/TileSuit.java:29
↓ 13 callers
Method
getTileGroups
返回牌组视图列表。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:29
↓ 13 callers
Method
number
返回数字种类的数值。 @throws UnsupportedOperationException 种类不是数字
src/main/java/com/github/blovemaple/mj/object/TileType.java:88
↓ 12 callers
Method
getTiles
返回牌组中所有牌。类型为暗杠时返回null。 @return tiles 集合
src/main/java/com/github/blovemaple/mj/object/TileGroupPlayerView.java:26
↓ 12 callers
Method
type
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:98
↓ 11 callers
Method
printMessage
显示信息。 @param message 信息 @throws IOException
src/main/java/com/github/blovemaple/mj/cli/CliView.java:78
↓ 10 callers
Method
getLastAction
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:38
↓ 10 callers
Method
getTable
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:20
↓ 10 callers
Method
isLegalTiles
判断指定牌集合是否是合法的单元。
src/main/java/com/github/blovemaple/mj/object/TileUnitType.java:20
↓ 10 callers
Method
mergedSet
将指定的若干个集合中的元素组成一个新的Set并返回。
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:286
↓ 9 callers
Method
getDoneActions
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:42
↓ 9 callers
Method
getName
返回玩家名字。
src/main/java/com/github/blovemaple/mj/object/Player.java:19
↓ 9 callers
Method
getPlayerInfos
()
src/main/java/com/github/blovemaple/mj/game/GameResult.java:65
↓ 9 callers
Method
getPlayerView
(PlayerLocation location)
src/main/java/com/github/blovemaple/mj/game/GameContext.java:48
↓ 9 callers
Method
getZhuangLocation
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:28
↓ 9 callers
Method
message
(TileSuit suit)
src/main/java/com/github/blovemaple/mj/utils/LanguageManager.java:69
↓ 9 callers
Method
ofNumber
(int number)
src/main/java/com/github/blovemaple/mj/object/TileRank.java:32
↓ 8 callers
Method
getRelationOf
返回另一个位置相对于此位置的关系。 @param other 另一个位置 @return 关系
src/main/java/com/github/blovemaple/mj/object/PlayerLocation.java:36
↓ 8 callers
Method
getTableView
返回麻将桌的玩家视图。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:23
↓ 8 callers
Method
merged
将指定的若干个集合中的元素组成一个新的集合并返回。
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:278
↓ 8 callers
Method
setPlayer
(PlayerLocation location, Player player)
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:117
↓ 8 callers
Method
size
()
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:231
↓ 7 callers
Method
name
返回番种的名称,作为标识。
src/main/java/com/github/blovemaple/mj/rule/win/FanType.java:19
↓ 7 callers
Method
neighborhoods
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:54
↓ 6 callers
Method
clear
清空玩家的牌,回到初始状态。
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:67
↓ 6 callers
Method
equals
(Object obj)
src/main/java/com/github/blovemaple/mj/action/Action.java:35
↓ 6 callers
Method
fromPlayerTiles
从PlayerTiles及额外信息组建WinInfo。 @param playerTiles 玩家的牌,必须 @param winTile 和牌时得到的牌,可选 @param ziMo 是否自摸,可选 @return WinInfo
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:36
↓ 6 callers
Method
getLastActionLocation
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:40
↓ 6 callers
Method
getLegalActionTiles
返回一个集合,包含指定状态下指定玩家可作出的此类型的所有合法动作的相关牌集合。
src/main/java/com/github/blovemaple/mj/action/PlayerActionType.java:35
↓ 6 callers
Method
getPlayer
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:32
↓ 6 callers
Method
getStage
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:32
↓ 6 callers
Method
getTile
返回唯一的附加牌。
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:52
↓ 6 callers
Method
hashCode
()
src/main/java/com/github/blovemaple/mj/rule/win/WinType.java:65
↓ 6 callers
Method
isTing
返回是否听和。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:34
↓ 6 callers
Method
showActionStr
(PlayerLocation location, CharSequence str)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:439
↓ 6 callers
Method
strWidth
返回指定字符串在命令行终端里的宽度(一个汉字算两个英文字符的宽度)。
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:402
↓ 6 callers
Method
throwActualException
( Exception exception)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:112
↓ 6 callers
Method
updateTileLine
()
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:127
↓ 5 callers
Method
appendAliveTiles
(StringBuilder str)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:196
↓ 5 callers
Method
completed
(StandardTileUnitType unitType, Set<Tile> tiles, BazBotTileNeighborhood hood)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:75
↓ 5 callers
Method
doAction
执行指定动作。 @throws IllegalActionException 动作非法
src/main/java/com/github/blovemaple/mj/action/ActionType.java:36
↓ 5 callers
Method
getAction
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:94
↓ 5 callers
Method
getDefaultActionStr
(ActionType actionType, Set<Tile> actionTiles)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:412
↓ 5 callers
Method
getLackedTypesForTiles
(Collection<Tile> tiles)
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:254
↓ 5 callers
Method
getLastDrawedTile
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:40
↓ 5 callers
Method
getRealTypeClass
返回真正的动作类型类。<br> 默认实现为返回此对象的类。如果不是这样(例如{@link PlayerActionTypes})则需要重写此方法。
src/main/java/com/github/blovemaple/mj/action/ActionType.java:52
↓ 5 callers
Method
newToChoose
从剩余的units中挑选尽量多指定类型的units,对所有可能的选择生成补充后的TileUnits并返回Stream。<br> 生成的都是新实例,不改变当前实例。 @param type 挑选的unit类型 @param includeEmpty 是否一
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotChoosingTileUnits.java:77
↓ 5 callers
Method
printSplitLine
显示分割线。 @param message 分割线中间显示的信息,null表示没有信息 @param width 宽度 @throws IOException
src/main/java/com/github/blovemaple/mj/cli/CliView.java:95
↓ 5 callers
Method
remainTiles
返回所有剩余牌(本家看不到的所有牌)。
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdSelectTask.java:179
↓ 5 callers
Method
setAliveTiles
(Set<Tile> aliveTiles)
src/main/java/com/github/blovemaple/mj/object/PlayerTiles.java:31
↓ 5 callers
Method
uncompleted
(StandardTileUnitType unitType, Set<Tile> tiles, BazBotTileNeighborhood hood)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:80
↓ 5 callers
Method
updateStatus
更新状态栏信息。 @param status 状态栏信息
src/main/java/com/github/blovemaple/mj/cli/CliView.java:126
↓ 4 callers
Method
combListStream
返回指定集合中指定个数的元素组合(ArrayList)组成的流。 @param coll 指定集合 @param size 组合中的元素个数 @return 组合List的流
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:60
↓ 4 callers
Method
combStream
返回指定集合中指定个数的元素组合组成的流。 @param coll 指定集合 @param size 组合中的元素个数。仅当greedy为false时有意义。 @param combCollFactory 新建集合对象的函数,用于新
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:79
↓ 4 callers
Method
getAllTiles
获取全部麻将牌的列表。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:39
↓ 4 callers
Method
getCostSum
()
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:57
↓ 4 callers
Method
getGameResult
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:44
↓ 4 callers
Method
getInvokeCount
()
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:61
↓ 4 callers
Method
getJustDrawedTile
如果刚刚摸牌,则返回刚摸的牌,否则返回null。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:68
↓ 4 callers
Method
getPaoerLocation
()
src/main/java/com/github/blovemaple/mj/game/GameResult.java:49
↓ 4 callers
Method
getPlayerName
返回玩家名称。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:14
↓ 4 callers
Method
getTiles
返回附加牌。
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:45
↓ 4 callers
Method
getType
()
src/main/java/com/github/blovemaple/mj/action/Action.java:23
↓ 4 callers
Method
getUnits
()
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:104
↓ 4 callers
Method
isLegalAction
判断指定动作是否合法。
src/main/java/com/github/blovemaple/mj/action/ActionType.java:28
↓ 4 callers
Method
resetCostStat
()
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:52
↓ 4 callers
Method
test
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:137
↓ 4 callers
Method
tileTypesToWin
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotAliveTiles.java:55
↓ 3 callers
Method
accept
(T t)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:14
↓ 3 callers
Method
checkInterrupted
()
src/main/java/com/github/blovemaple/mj/game/MahjongGame.java:286
↓ 3 callers
Method
chooseAction
选择一个要执行的动作。选择过程中需要检查线程中断,如果被中断则不需要继续选择(可能是限时已到,或其他玩家已做出优先级更高的动作等), 此时抛出InterruptedException即可。<br> 默认实现为调用 {@link #chooseAction(com.github.blovemaple.
src/main/java/com/github/blovemaple/mj/object/Player.java:36
↓ 3 callers
Method
clone
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:75
↓ 3 callers
Method
compare
(TileRank<?> r1, TileRank<?> r2)
src/main/java/com/github/blovemaple/mj/object/TileRank.java:51
↓ 3 callers
Method
conflictWith
(BazBotTileUnit other)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:106
↓ 3 callers
Method
distinctorBy
返回按照指定标识符去重用的Predicate。标识符用指定的函数获取。 @param identifierFunction 获取标识符的函数 @return Predicate
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:352
↓ 3 callers
Method
draw
从牌墙的头部摸指定数量的牌并返回。
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:81
↓ 3 callers
Method
getAllWinTypes
获取此策略支持的所有和牌类型。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:79
↓ 3 callers
Method
getCliView
()
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:89
↓ 3 callers
Method
getDiscardedTiles
返回已经打出的牌。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:24
next →
1–100 of 695, ranked by callers