MCPcopy Create free account

hub / github.com/blovemaple/mahjong / functions

Functions695 in github.com/blovemaple/mahjong

↓ 125 callersMethodsize
返回一个单元中有几张牌。
src/main/java/com/github/blovemaple/mj/object/TileUnitType.java:15
↓ 102 callersMethodget
()
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:39
↓ 83 callersMethodadd
(BazBotTileNeighborhood hood, BazBotTileUnit newUnit)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:156
↓ 66 callersMethodof
返回指定牌。
src/main/java/com/github/blovemaple/mj/object/Tile.java:47
↓ 51 callersMethodtype
返回牌型。
src/main/java/com/github/blovemaple/mj/object/Tile.java:64
↓ 47 callersMethodgetAliveTiles
()
src/main/java/com/github/blovemaple/mj/object/PlayerTiles.java:27
↓ 47 callersMethodstr
()
src/main/java/com/github/blovemaple/mj/utils/LanguageManager.java:29
↓ 33 callersMethodof
(Set<Tile> aliveTiles)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotAliveTiles.java:29
↓ 32 callersMethodgetType
返回类型。 @return 类型
src/main/java/com/github/blovemaple/mj/object/TileGroupPlayerView.java:19
↓ 30 callersMethodof
返回指定牌型。
src/main/java/com/github/blovemaple/mj/object/TileType.java:49
↓ 29 callersMethodgetMyLocation
返回当前玩家位置。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:38
↓ 29 callersMethodsuit
返回花色。
src/main/java/com/github/blovemaple/mj/object/TileType.java:64
↓ 29 callersMethodtoString
Just for debug. @see java.lang.Object#toString()
src/main/java/com/github/blovemaple/mj/object/Tile.java:80
↓ 19 callersMethodgetMyInfo
返回当前玩家信息。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:43
↓ 18 callersMethodgetAliveTiles
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:91
↓ 18 callersMethodgetLocation
返回玩家位置。
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:64
↓ 18 callersMethodrank
返回种类。
src/main/java/com/github/blovemaple/mj/object/TileType.java:71
↓ 17 callersMethodmatchBy
返回指定的动作类型是否是此类表示的动作。<br> 有些动作有上下从属关系,比如“摸底牌”是“摸牌”,但反过来不是。<br> 默认实现为判断真正类的从属关系。如果不是这样(例如{@link PlayerActionTypes}和{@link CpgActionType} )则需要重写此方法。
src/main/java/com/github/blovemaple/mj/action/ActionType.java:44
↓ 15 callersMethodgetPlayerInfoByLocation
(PlayerLocation location)
src/main/java/com/github/blovemaple/mj/game/GameContext.java:26
↓ 14 callersMethodapply
(T t)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:24
↓ 14 callersMethodgetGameStrategy
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:22
↓ 13 callersMethodgetRankClass
()
src/main/java/com/github/blovemaple/mj/object/TileSuit.java:29
↓ 13 callersMethodgetTileGroups
返回牌组视图列表。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:29
↓ 13 callersMethodnumber
返回数字种类的数值。 @throws UnsupportedOperationException 种类不是数字
src/main/java/com/github/blovemaple/mj/object/TileType.java:88
↓ 12 callersMethodgetTiles
返回牌组中所有牌。类型为暗杠时返回null。 @return tiles 集合
src/main/java/com/github/blovemaple/mj/object/TileGroupPlayerView.java:26
↓ 12 callersMethodtype
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:98
↓ 11 callersMethodprintMessage
显示信息。 @param message 信息 @throws IOException
src/main/java/com/github/blovemaple/mj/cli/CliView.java:78
↓ 10 callersMethodgetLastAction
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:38
↓ 10 callersMethodgetTable
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:20
↓ 10 callersMethodisLegalTiles
判断指定牌集合是否是合法的单元。
src/main/java/com/github/blovemaple/mj/object/TileUnitType.java:20
↓ 10 callersMethodmergedSet
将指定的若干个集合中的元素组成一个新的Set并返回。
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:286
↓ 9 callersMethodgetDoneActions
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:42
↓ 9 callersMethodgetName
返回玩家名字。
src/main/java/com/github/blovemaple/mj/object/Player.java:19
↓ 9 callersMethodgetPlayerInfos
()
src/main/java/com/github/blovemaple/mj/game/GameResult.java:65
↓ 9 callersMethodgetPlayerView
(PlayerLocation location)
src/main/java/com/github/blovemaple/mj/game/GameContext.java:48
↓ 9 callersMethodgetZhuangLocation
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:28
↓ 9 callersMethodmessage
(TileSuit suit)
src/main/java/com/github/blovemaple/mj/utils/LanguageManager.java:69
↓ 9 callersMethodofNumber
(int number)
src/main/java/com/github/blovemaple/mj/object/TileRank.java:32
↓ 8 callersMethodgetRelationOf
返回另一个位置相对于此位置的关系。 @param other 另一个位置 @return 关系
src/main/java/com/github/blovemaple/mj/object/PlayerLocation.java:36
↓ 8 callersMethodgetTableView
返回麻将桌的玩家视图。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:23
↓ 8 callersMethodmerged
将指定的若干个集合中的元素组成一个新的集合并返回。
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:278
↓ 8 callersMethodsetPlayer
(PlayerLocation location, Player player)
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:117
↓ 8 callersMethodsize
()
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:231
↓ 7 callersMethodname
返回番种的名称,作为标识。
src/main/java/com/github/blovemaple/mj/rule/win/FanType.java:19
↓ 7 callersMethodneighborhoods
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:54
↓ 6 callersMethodclear
清空玩家的牌,回到初始状态。
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:67
↓ 6 callersMethodequals
(Object obj)
src/main/java/com/github/blovemaple/mj/action/Action.java:35
↓ 6 callersMethodfromPlayerTiles
从PlayerTiles及额外信息组建WinInfo。 @param playerTiles 玩家的牌,必须 @param winTile 和牌时得到的牌,可选 @param ziMo 是否自摸,可选 @return WinInfo
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:36
↓ 6 callersMethodgetLastActionLocation
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:40
↓ 6 callersMethodgetLegalActionTiles
返回一个集合,包含指定状态下指定玩家可作出的此类型的所有合法动作的相关牌集合。
src/main/java/com/github/blovemaple/mj/action/PlayerActionType.java:35
↓ 6 callersMethodgetPlayer
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:32
↓ 6 callersMethodgetStage
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:32
↓ 6 callersMethodgetTile
返回唯一的附加牌。
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:52
↓ 6 callersMethodhashCode
()
src/main/java/com/github/blovemaple/mj/rule/win/WinType.java:65
↓ 6 callersMethodisTing
返回是否听和。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:34
↓ 6 callersMethodshowActionStr
(PlayerLocation location, CharSequence str)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:439
↓ 6 callersMethodstrWidth
返回指定字符串在命令行终端里的宽度(一个汉字算两个英文字符的宽度)。
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:402
↓ 6 callersMethodthrowActualException
( Exception exception)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:112
↓ 6 callersMethodupdateTileLine
()
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:127
↓ 5 callersMethodappendAliveTiles
(StringBuilder str)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:196
↓ 5 callersMethodcompleted
(StandardTileUnitType unitType, Set<Tile> tiles, BazBotTileNeighborhood hood)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:75
↓ 5 callersMethoddoAction
执行指定动作。 @throws IllegalActionException 动作非法
src/main/java/com/github/blovemaple/mj/action/ActionType.java:36
↓ 5 callersMethodgetAction
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:94
↓ 5 callersMethodgetDefaultActionStr
(ActionType actionType, Set<Tile> actionTiles)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:412
↓ 5 callersMethodgetLackedTypesForTiles
(Collection<Tile> tiles)
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:254
↓ 5 callersMethodgetLastDrawedTile
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:40
↓ 5 callersMethodgetRealTypeClass
返回真正的动作类型类。<br> 默认实现为返回此对象的类。如果不是这样(例如{@link PlayerActionTypes})则需要重写此方法。
src/main/java/com/github/blovemaple/mj/action/ActionType.java:52
↓ 5 callersMethodnewToChoose
从剩余的units中挑选尽量多指定类型的units,对所有可能的选择生成补充后的TileUnits并返回Stream。<br> 生成的都是新实例,不改变当前实例。 @param type 挑选的unit类型 @param includeEmpty 是否一
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotChoosingTileUnits.java:77
↓ 5 callersMethodprintSplitLine
显示分割线。 @param message 分割线中间显示的信息,null表示没有信息 @param width 宽度 @throws IOException
src/main/java/com/github/blovemaple/mj/cli/CliView.java:95
↓ 5 callersMethodremainTiles
返回所有剩余牌(本家看不到的所有牌)。
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdSelectTask.java:179
↓ 5 callersMethodsetAliveTiles
(Set<Tile> aliveTiles)
src/main/java/com/github/blovemaple/mj/object/PlayerTiles.java:31
↓ 5 callersMethoduncompleted
(StandardTileUnitType unitType, Set<Tile> tiles, BazBotTileNeighborhood hood)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:80
↓ 5 callersMethodupdateStatus
更新状态栏信息。 @param status 状态栏信息
src/main/java/com/github/blovemaple/mj/cli/CliView.java:126
↓ 4 callersMethodcombListStream
返回指定集合中指定个数的元素组合(ArrayList)组成的流。 @param coll 指定集合 @param size 组合中的元素个数 @return 组合List的流
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:60
↓ 4 callersMethodcombStream
返回指定集合中指定个数的元素组合组成的流。 @param coll 指定集合 @param size 组合中的元素个数。仅当greedy为false时有意义。 @param combCollFactory 新建集合对象的函数,用于新
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:79
↓ 4 callersMethodgetAllTiles
获取全部麻将牌的列表。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:39
↓ 4 callersMethodgetCostSum
()
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:57
↓ 4 callersMethodgetGameResult
()
src/main/java/com/github/blovemaple/mj/game/GameContext.java:44
↓ 4 callersMethodgetInvokeCount
()
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:61
↓ 4 callersMethodgetJustDrawedTile
如果刚刚摸牌,则返回刚摸的牌,否则返回null。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:68
↓ 4 callersMethodgetPaoerLocation
()
src/main/java/com/github/blovemaple/mj/game/GameResult.java:49
↓ 4 callersMethodgetPlayerName
返回玩家名称。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:14
↓ 4 callersMethodgetTiles
返回附加牌。
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:45
↓ 4 callersMethodgetType
()
src/main/java/com/github/blovemaple/mj/action/Action.java:23
↓ 4 callersMethodgetUnits
()
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:104
↓ 4 callersMethodisLegalAction
判断指定动作是否合法。
src/main/java/com/github/blovemaple/mj/action/ActionType.java:28
↓ 4 callersMethodresetCostStat
()
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:52
↓ 4 callersMethodtest
()
src/test/java/com/github/blovemaple/mj/local/foobot/NormalWinTypeTest.java:137
↓ 4 callersMethodtileTypesToWin
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotAliveTiles.java:55
↓ 3 callersMethodaccept
(T t)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:14
↓ 3 callersMethodcheckInterrupted
()
src/main/java/com/github/blovemaple/mj/game/MahjongGame.java:286
↓ 3 callersMethodchooseAction
选择一个要执行的动作。选择过程中需要检查线程中断,如果被中断则不需要继续选择(可能是限时已到,或其他玩家已做出优先级更高的动作等), 此时抛出InterruptedException即可。<br> 默认实现为调用 {@link #chooseAction(com.github.blovemaple.
src/main/java/com/github/blovemaple/mj/object/Player.java:36
↓ 3 callersMethodclone
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:75
↓ 3 callersMethodcompare
(TileRank<?> r1, TileRank<?> r2)
src/main/java/com/github/blovemaple/mj/object/TileRank.java:51
↓ 3 callersMethodconflictWith
(BazBotTileUnit other)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:106
↓ 3 callersMethoddistinctorBy
返回按照指定标识符去重用的Predicate。标识符用指定的函数获取。 @param identifierFunction 获取标识符的函数 @return Predicate
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:352
↓ 3 callersMethoddraw
从牌墙的头部摸指定数量的牌并返回。
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:81
↓ 3 callersMethodgetAllWinTypes
获取此策略支持的所有和牌类型。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:79
↓ 3 callersMethodgetCliView
()
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:89
↓ 3 callersMethodgetDiscardedTiles
返回已经打出的牌。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:24
next →1–100 of 695, ranked by callers