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
Method
canPass
(GameContext context, PlayerLocation location)
src/main/java/com/github/blovemaple/mj/action/standard/BuhuaActionType.java:31
Method
changingsForWin
(PlayerInfo playerInfo, int changeCount, Collection<Tile> candidates)
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:262
Method
checkReady
{@inheritDoc}<br> 桌上所有位置都有玩家就返回true。 @see com.github.blovemaple.mj.rule.GameStrategy#checkReady(com.github.blovemaple.mj.object.MahjongTable)
src/main/java/com/github/blovemaple/mj/rule/AbstractGameStrategy.java:43
Method
chooseAction
(GameContextPlayerView contextView, Set<PlayerActionType> actionTypes, PlayerAction illegalAction)
src/main/java/com/github/blovemaple/mj/cli/CliPlayer.java:75
Method
chooseAction
(GameContextPlayerView contextView, Set<PlayerActionType> actionTypes, PlayerAction illegalAction)
src/main/java/com/github/blovemaple/mj/local/TestBot.java:26
Method
chooseAction
(GameContextPlayerView contextView, Set<PlayerActionType> actionTypes)
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:65
Method
chooseCpgdAction
(GameContextPlayerView contextView, Set<PlayerActionType> actionTypes, List<PlayerAction> actions)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBot.java:39
Method
chooseCpgdAction
(GameContextPlayerView contextView, Set<PlayerActionType> actionTypes, List<PlayerAction> actions)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBot.java:31
Method
compare0
(T r1, T r2)
src/main/java/com/github/blovemaple/mj/object/TileRank.java:59
Method
compareTo
(TileType o)
src/main/java/com/github/blovemaple/mj/object/TileType.java:94
Method
covered
返回被此番种覆盖的番种。如果此番种已计入,则不计被覆盖的番种。
src/main/java/com/github/blovemaple/mj/rule/win/FanType.java:29
Method
covered
()
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleFanType.java:31
Method
distinctBy
将指定的流按照指定标识符去重。标识符用指定的函数获取。 @param stream 流 @param identifierFunction 获取标识符的函数 @return 去重后的流
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:341
Method
doAction
{@inheritDoc}<br> 默认实现为用{@link #isLegalAction}检查是否合法,如果合法则调用{@link #doLegalAction}执行动作。 @see com.github.blovemaple.mj.action.ActionType#doAction(Game
src/main/java/com/github/blovemaple/mj/action/AbstractPlayerActionType.java:145
Method
doAction
(GameContext context, Action action)
src/main/java/com/github/blovemaple/mj/action/standard/DealActionType.java:29
Method
doAction
(GameContext context, Action action)
src/main/java/com/github/blovemaple/mj/action/standard/WinActionType.java:64
Method
doAction
(GameContext context, Action action)
src/main/java/com/github/blovemaple/mj/action/standard/StageSwitchActionType.java:30
Method
doAction
(GameContext context, Action action)
src/main/java/com/github/blovemaple/mj/action/standard/PlayerActionTypes.java:94
Method
doAction
(GameContext context, Action action)
src/main/java/com/github/blovemaple/mj/action/standard/AutoActionTypes.java:33
Method
doAction
(GameContext context, Action action)
src/main/java/com/github/blovemaple/mj/action/standard/LiujuActionType.java:25
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/DiscardActionType.java:51
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/BugangActionType.java:50
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/WinActionType.java:93
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/DrawBottomActionType.java:32
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/AngangActionType.java:47
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/CpgActionType.java:102
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/DrawActionType.java:51
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/DiscardWithTingActionType.java:54
Method
doLegalAction
(GameContext context, PlayerLocation location, Set<Tile> tiles)
src/main/java/com/github/blovemaple/mj/action/standard/BuhuaActionType.java:71
Method
equals
(Object obj)
src/main/java/com/github/blovemaple/mj/rule/win/WinType.java:77
Method
equals
(Object obj)
src/main/java/com/github/blovemaple/mj/action/ActionTypeAndLocation.java:55
Method
equals
(Object obj)
src/main/java/com/github/blovemaple/mj/action/PlayerAction.java:77
Method
equals
(Object obj)
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:152
Method
getActionPriorityComparator
和>补花>杠>碰>吃>其他,相同的比较与上次动作的玩家位置关系。 @see com.github.blovemaple.mj.rule.GameStrategy#getActionPriorityComparator()
src/main/java/com/github/blovemaple/mj/rule/AbstractGameStrategy.java:98
Method
getActionTilesSize
()
src/main/java/com/github/blovemaple/mj/action/standard/DiscardActionType.java:33
Method
getActionTilesSize
()
src/main/java/com/github/blovemaple/mj/action/standard/BugangActionType.java:39
Method
getActionTilesSize
()
src/main/java/com/github/blovemaple/mj/action/standard/WinActionType.java:47
Method
getActionTilesSize
()
src/main/java/com/github/blovemaple/mj/action/standard/AngangActionType.java:36
Method
getActionTilesSize
()
src/main/java/com/github/blovemaple/mj/action/standard/CpgActionType.java:89
Method
getActionTilesSize
()
src/main/java/com/github/blovemaple/mj/action/standard/DrawActionType.java:39
Method
getActionTilesSize
()
src/main/java/com/github/blovemaple/mj/action/standard/BuhuaActionType.java:60
Method
getAddedTiles
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:41
Method
getAliveTileSize
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:110
Method
getAliveTileSize
返回手中的牌数。
src/main/java/com/github/blovemaple/mj/object/PlayerInfoPlayerView.java:19
Method
getAliveTileSizePrecondition
()
src/main/java/com/github/blovemaple/mj/action/standard/DiscardActionType.java:28
Method
getAliveTileSizePrecondition
()
src/main/java/com/github/blovemaple/mj/action/standard/BugangActionType.java:34
Method
getAliveTileSizePrecondition
()
src/main/java/com/github/blovemaple/mj/action/standard/AngangActionType.java:31
Method
getAllFanTypes
获取此策略支持的所有番种。返回的列表中,被覆盖的番种必须在覆盖它的番种之后。不允许两个番种相互覆盖。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:93
Method
getAllFanTypes
()
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleGameStrategy.java:35
Method
getAllStages
()
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleGameStrategy.java:43
Method
getAllTiles
()
src/main/java/com/github/blovemaple/mj/rule/AbstractGameStrategy.java:49
Method
getAllWinTypes
()
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleGameStrategy.java:28
Method
getAutoActionTypes
()
src/main/java/com/github/blovemaple/mj/rule/InitStage.java:29
Method
getAutoActionTypes
()
src/main/java/com/github/blovemaple/mj/rule/simple/DealingStage.java:31
Method
getAutoActionTypes
()
src/main/java/com/github/blovemaple/mj/rule/simple/FinishedStage.java:29
Method
getAutoActionTypes
()
src/main/java/com/github/blovemaple/mj/rule/simple/PlayingStage.java:34
Method
getAutoActionTypes
()
src/main/java/com/github/blovemaple/mj/rule/simple/BeforePlayingStage.java:32
Method
getContextView
()
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:86
Method
getDefaultAction
根据当前状态返回默认动作。默认动作是所有玩家都没有可选动作或均选择不做动作之后自动执行的动作。 @return 默认动作
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:74
Method
getDefaultAction
(GameContext context, Map<PlayerLocation, Set<PlayerActionType>> choises)
src/main/java/com/github/blovemaple/mj/rule/AbstractGameStrategy.java:134
Method
getDiscardCandidates
(Set<Tile> aliveTiles, Collection<Tile> candidates)
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:209
Method
getDiscardedTiles
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:115
Method
getDoneActions
()
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:102
Method
getDoneActions
()
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerViewImpl.java:89
Method
getDoneActions
返回已经做完的动作。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:73
Method
getDoneActions
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:112
Method
getDoneActions
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:250
Method
getDrawedBottomSize
()
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:70
Method
getDrawedBottomSize
()
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:169
Method
getFans
检查和牌的所有番种和番数。<br> 默认实现为使用此策略支持的所有番种和番数进行统计。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:99
Method
getFans
()
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:112
Method
getFinalAction
(GameContext context)
src/main/java/com/github/blovemaple/mj/rule/InitStage.java:39
Method
getFinalAction
(GameContext context)
src/main/java/com/github/blovemaple/mj/rule/simple/DealingStage.java:41
Method
getFinalAction
(GameContext context)
src/main/java/com/github/blovemaple/mj/rule/simple/FinishedStage.java:39
Method
getFinalAction
(GameContext context)
src/main/java/com/github/blovemaple/mj/rule/simple/PlayingStage.java:46
Method
getFinalAction
(GameContext context)
src/main/java/com/github/blovemaple/mj/rule/simple/BeforePlayingStage.java:42
Method
getFirstStage
()
src/main/java/com/github/blovemaple/mj/rule/simple/SimpleGameStrategy.java:48
Method
getFirstTileType
()
src/main/java/com/github/blovemaple/mj/object/TileUnit.java:49
Method
getFromRelation
()
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:126
Method
getGameResult
()
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerViewImpl.java:94
Method
getGameResult
如果已结束则返回游戏结果,否则返回null。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:78
Method
getGameResult
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:124
Method
getGameResult
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:255
Method
getGameStrategy
()
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:48
Method
getGameStrategy
()
src/main/java/com/github/blovemaple/mj/game/MahjongGame.java:364
Method
getGameStrategy
()
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerViewImpl.java:36
Method
getGameStrategy
返回游戏策略。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:28
Method
getGameStrategy
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:48
Method
getGotTile
()
src/main/java/com/github/blovemaple/mj/object/TileUnit.java:59
Method
getGotTile
()
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:131
Method
getInitBottomSize
()
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:62
Method
getInitBottomSize
()
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:164
Method
getJustDrawedTile
()
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerViewImpl.java:76
Method
getLastAction
返回到目前为止做出的最后一个动作。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:58
Method
getLastActionLocation
()
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:94
Method
getLastActionLocation
()
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerViewImpl.java:71
Method
getLastActionLocation
返回到目前为止做出的最后一个动作的玩家位置。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:63
Method
getLastActionLocation
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:99
Method
getLastActionLocation
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:242
Method
getLastActionPrecondition
()
src/main/java/com/github/blovemaple/mj/action/standard/WinActionType.java:38
← previous
next →
401–500 of 695, ranked by callers