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
↓ 1 callers
Method
forTileTypes
(Set<Tile> conflictTiles)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:120
↓ 1 callers
Method
genChangings
(List<Tile> aliveTiles, List<PreUnit> preJiangs, List<PreUnit> preShunkes, Map<TileType, List<Tile>> candi
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:374
↓ 1 callers
Method
genGroupUnits
从玩家的所有牌组生成单元集合。
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:185
↓ 1 callers
Method
genSubChoices
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:87
↓ 1 callers
Method
getActionPriorityComparator
获取动作优先级比较器。优先级越高的越小。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:59
↓ 1 callers
Method
getActionType
()
src/main/java/com/github/blovemaple/mj/action/ActionTypeAndLocation.java:32
↓ 1 callers
Method
getAliveTileSizePrecondition
返回进行此类型动作时对对活牌数量的限制条件。<br> 不允许返回null,不限制应该返回恒null的函数。默认返回恒null。<br> 此方法用于{@link #meetPrecondition}的默认实现。
src/main/java/com/github/blovemaple/mj/action/AbstractPlayerActionType.java:95
↓ 1 callers
Method
getAllRanks
()
src/main/java/com/github/blovemaple/mj/object/TileSuit.java:40
↓ 1 callers
Method
getAllStages
返回所有阶段对象。
src/main/java/com/github/blovemaple/mj/rule/AbstractGameStrategy.java:68
↓ 1 callers
Method
getAutoActionTypes
返回该阶段中可自动做出的所有动作类型。
src/main/java/com/github/blovemaple/mj/rule/GameStage.java:30
↓ 1 callers
Method
getBaseContextView
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:267
↓ 1 callers
Method
getContext
()
src/main/java/com/github/blovemaple/mj/action/ActionTypeAndLocation.java:40
↓ 1 callers
Method
getDiscardedTiles
()
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:48
↓ 1 callers
Method
getDrawedBottomSize
返回已经从底部摸牌的数量。
src/main/java/com/github/blovemaple/mj/object/MahjongTablePlayerView.java:35
↓ 1 callers
Method
getFinalAction
返回当玩家和自动动作类型都无动作可做时应该执行的动作(如切换到其他阶段)。<br> 此方法返回的动作具有最低优先级。
src/main/java/com/github/blovemaple/mj/rule/GameStage.java:42
↓ 1 callers
Method
getFinalWinProb
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:283
↓ 1 callers
Method
getFirstStage
返回初始阶段。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:49
↓ 1 callers
Method
getForWinTypes
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:70
↓ 1 callers
Method
getFromRelation
返回得牌来自于哪个关系的玩家。 @return 玩家位置
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:86
↓ 1 callers
Method
getFromRelation
返回得牌来自于哪个关系的玩家。 @return 玩家位置
src/main/java/com/github/blovemaple/mj/object/TileGroupPlayerView.java:33
↓ 1 callers
Method
getGameResult
()
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:111
↓ 1 callers
Method
getGameStrategy
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:194
↓ 1 callers
Method
getGotTile
返回得牌。 @return 得牌
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:95
↓ 1 callers
Method
getInitBottomSize
返回此局开始时的底牌数量。
src/main/java/com/github/blovemaple/mj/object/MahjongTablePlayerView.java:30
↓ 1 callers
Method
getLackedTypesForLessTiles
(Collection<Tile> tiles)
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:32
↓ 1 callers
Method
getLastAction
()
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:88
↓ 1 callers
Method
getLastAction
()
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerViewImpl.java:66
↓ 1 callers
Method
getLastAction
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimContext.java:91
↓ 1 callers
Method
getLastAction
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:237
↓ 1 callers
Method
getLastActionPrecondition
返回进行此类型动作时对上一个动作和本家位置的限制条件。<br> 不允许返回null,不限制应该返回恒null的函数。默认返回恒true。<br> 此方法用于{@link #meetPrecondition}的默认实现。
src/main/java/com/github/blovemaple/mj/action/AbstractPlayerActionType.java:86
↓ 1 callers
Method
getLimit
根据上下文返回限时。 @return 限时(单位:秒),若不限制则返回null。
src/main/java/com/github/blovemaple/mj/rule/TimeLimitStrategy.java:27
↓ 1 callers
Method
getMyInfo
()
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerViewImpl.java:51
↓ 1 callers
Method
getName
返回该阶段名称。
src/main/java/com/github/blovemaple/mj/rule/GameStage.java:20
↓ 1 callers
Method
getNonConflictingUnits
(BazBotTileUnitType type, List<BazBotTileUnit> conflictings)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileNeighborhood.java:195
↓ 1 callers
Method
getOtherPlayerView
返回其他玩家的视图。 @return 视图
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:106
↓ 1 callers
Method
getPlayerActionTypes
返回该阶段中玩家可使用的所有动作类型。
src/main/java/com/github/blovemaple/mj/rule/GameStage.java:25
↓ 1 callers
Method
getPlayerDefaultAction
根据当前状态返回指定玩家超时默认做的动作。 @return 默认动作,null表示不做动作
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:66
↓ 1 callers
Method
getPriorAction
根据当前状态决定阶段动作(如切换到其他阶段)并返回,不执行动作时返回null。<br> 此方法返回的动作具有最高优先级。
src/main/java/com/github/blovemaple/mj/rule/GameStage.java:36
↓ 1 callers
Method
getProb
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:70
↓ 1 callers
Method
getRealTypeObject
返回真正的动作类型对象。<br> 默认实现为返回此对象。如果不是这样(例如{@link PlayerActionTypes})则需要重写此方法。
src/main/java/com/github/blovemaple/mj/action/ActionType.java:60
↓ 1 callers
Method
getRemainingTiles
(List<BazBotTileUnit> chosenUnits)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileNeighborhood.java:226
↓ 1 callers
Method
getStageName
返回当前阶段名称。
src/main/java/com/github/blovemaple/mj/game/GameContextPlayerView.java:53
↓ 1 callers
Method
getTask
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:263
↓ 1 callers
Method
getTileCountByType
此种花色的每个牌型的牌的个数。
src/main/java/com/github/blovemaple/mj/object/TileSuit.java:36
↓ 1 callers
Method
getTileFromCandidates
@throws NoSuchElementException 候选牌不够
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:496
↓ 1 callers
Method
getTiles
返回牌组中所有牌。 @return tiles 集合
src/main/java/com/github/blovemaple/mj/object/TileGroup.java:77
↓ 1 callers
Method
getUnitType
()
src/main/java/com/github/blovemaple/mj/object/TileGroupType.java:44
↓ 1 callers
Method
getWinTile
()
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:66
↓ 1 callers
Method
getZhuangLocation
()
src/main/java/com/github/blovemaple/mj/game/GameResult.java:69
↓ 1 callers
Method
getZiMo
()
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:74
↓ 1 callers
Method
handle
处理一个字符。 @param c 字符 @return 处理结果
src/main/java/com/github/blovemaple/mj/cli/CliView.java:204
↓ 1 callers
Method
hash
(PlayerInfo playerInfo, Set<Tile> realAliveTiles)
src/main/java/com/github/blovemaple/mj/rule/win/CachedWinFeature.java:47
↓ 1 callers
Method
hashCode
()
src/main/java/com/github/blovemaple/mj/action/Action.java:27
↓ 1 callers
Method
hood
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnit.java:102
↓ 1 callers
Method
initInvisibleCount
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:130
↓ 1 callers
Method
isAllowedInTing
返回听牌时是否可进行此动作。默认true。
src/main/java/com/github/blovemaple/mj/action/AbstractPlayerActionType.java:77
↓ 1 callers
Method
isCovered
(Collection<Tile> removedTiles, Collection<Tile> addedTiles)
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotSimChanging.java:100
↓ 1 callers
Method
isCoveredByWin
判断指定的换牌是否被已经判断和牌的换牌所覆盖。
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdChoice.java:258
↓ 1 callers
Method
isLegalAction
{@inheritDoc}<br> 默认实现为将action为null的和动作类型不符合的报异常,然后用{@link #isLegalActionTiles}检查是否合法。 @see com.github.blovemaple.mj.action.ActionType#isLegalAction(
src/main/java/com/github/blovemaple/mj/action/AbstractPlayerActionType.java:124
↓ 1 callers
Method
isLegalActionWithPreconition
判断动作是否合法。调用此方法之前已经判断确保符合前提条件、相关牌数量、相关牌范围。
src/main/java/com/github/blovemaple/mj/action/AbstractPlayerActionType.java:210
↓ 1 callers
Method
isLegalTileTypesWithCorrectSize
(Collection<TileType> types)
src/main/java/com/github/blovemaple/mj/object/StandardTileUnitType.java:38
↓ 1 callers
Method
isNumberRank
返回种类是否是数字。
src/main/java/com/github/blovemaple/mj/object/TileType.java:78
↓ 1 callers
Method
match
判断根据此和牌类型是否可以和牌。如果可以和牌,则向winInfo填入和牌信息。<br> 默认实现为调用parseWinTileUnits解析。 @param winInfo 和牌信息 @return 是否可以和牌
src/main/java/com/github/blovemaple/mj/rule/win/WinType.java:36
↓ 1 callers
Method
matchWithoutCache
判断是否符合。未中缓存时调用。 @param playerInfo 除手牌之外的信息 @param realAliveTiles 手牌 @return 是否符合
src/main/java/com/github/blovemaple/mj/rule/win/CachedWinFeature.java:69
↓ 1 callers
Method
name
名称,用作唯一标识。<br> 默认实现为{@code this.getClass().getSimpleName()}。<br> 注意:使用{@link PlayerActionTypes}时,name为枚举值的{@code name(})。 @see com.github.blovemaple.
src/main/java/com/github/blovemaple/mj/action/ActionType.java:21
↓ 1 callers
Method
name
()
src/main/java/com/github/blovemaple/mj/action/standard/StageSwitchActionType.java:18
↓ 1 callers
Method
neighborhoods
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotAliveTiles.java:50
↓ 1 callers
Method
newPlayerView
(PlayerLocation location)
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:134
↓ 1 callers
Method
nextZhuangLocation
在一局开始之前,根据context返回此局的庄家位置。
src/main/java/com/github/blovemaple/mj/rule/AbstractGameStrategy.java:84
↓ 1 callers
Method
nonConflictsInHoods
(BazBotTileUnitType type)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileUnits.java:70
↓ 1 callers
Method
parse
把指定的Tile集合解析为若干个neiborhood并返回。
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileNeighborhood.java:40
↓ 1 callers
Method
parseChangings
(List<Tile> aliveTiles, Collection<Tile> candidates)
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:281
↓ 1 callers
Method
parsePreJiangs
(List<Tile> aliveTiles, Map<TileType, List<Tile>> candidatesByType)
src/main/java/com/github/blovemaple/mj/rule/simple/NormalWinType.java:299
↓ 1 callers
Method
parseUnits
()
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotTileNeighborhood.java:121
↓ 1 callers
Method
passAction
(GameContextPlayerView contextView)
src/main/java/com/github/blovemaple/mj/local/AbstractBot.java:143
↓ 1 callers
Method
play
()
src/main/java/com/github/blovemaple/mj/cli/CliRunner.java:91
↓ 1 callers
Method
playerChooseActionAsync
异步让一个玩家选择动作。 @param context @param table @param location @param choices @param executor 使用这个executor,以便主线程可以中断玩家的选择过程 @param choseActionBy
src/main/java/com/github/blovemaple/mj/game/MahjongGame.java:250
↓ 1 callers
Method
printHead
()
src/main/java/com/github/blovemaple/mj/cli/CliRunner.java:69
↓ 1 callers
Method
prob
(Collection<TileType> tileTypes)
src/main/java/com/github/blovemaple/mj/local/bazbot/BazBotSimContext.java:118
↓ 1 callers
Method
readyContext
在一局开始之前对上下文进行必要操作。
src/main/java/com/github/blovemaple/mj/rule/GameStrategy.java:54
↓ 1 callers
Method
readyForGame
初始化,准备开始一局。即清空玩家的牌、洗牌、摆牌墙。
src/main/java/com/github/blovemaple/mj/object/MahjongTable.java:46
↓ 1 callers
Method
remainTileCount
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdSelectTask.java:208
↓ 1 callers
Method
remainTileCountByType
()
src/main/java/com/github/blovemaple/mj/local/barbot/BarBotCpgdSelectTask.java:203
↓ 1 callers
Method
rethrowBiConsumer
( BiConsumer_WithExceptions<T, U, E> biConsumer)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:53
↓ 1 callers
Method
rethrowSupplier
( Supplier_WithExceptions<T, E> supplier)
src/main/java/com/github/blovemaple/mj/utils/LambdaUtils.java:100
↓ 1 callers
Method
score
返回计入一次的番数。
src/main/java/com/github/blovemaple/mj/rule/win/FanType.java:24
↓ 1 callers
Method
selectStream
从指定的若干的集合中,每个集合取任意一个元素组成列表,返回包含所有可能的列表的流。
src/main/java/com/github/blovemaple/mj/utils/MyUtils.java:265
↓ 1 callers
Method
self
(TileUnitType type, Collection<Tile> tiles)
src/main/java/com/github/blovemaple/mj/object/TileUnit.java:26
↓ 1 callers
Method
setContext
(GameContextPlayerView contextView)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:93
↓ 1 callers
Method
setFans
(Map<FanType, Integer> fans)
src/main/java/com/github/blovemaple/mj/game/GameResult.java:61
↓ 1 callers
Method
setFocusedAliveTiles
(Set<Tile> focusedAliveTiles)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:105
↓ 1 callers
Method
setOptions
(Map<Message, Message> options)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:117
↓ 1 callers
Method
setPaoerLocation
(PlayerLocation paoerLocation)
src/main/java/com/github/blovemaple/mj/game/GameResult.java:53
↓ 1 callers
Method
setPlayer
(Player player)
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:36
↓ 1 callers
Method
setStage
(GameStage stage)
src/main/java/com/github/blovemaple/mj/game/GameContext.java:34
↓ 1 callers
Method
setStage
(GameStage stage)
src/main/java/com/github/blovemaple/mj/game/GameContextImpl.java:78
↓ 1 callers
Method
setTileGroups
(List<TileGroup> tileGroups)
src/main/java/com/github/blovemaple/mj/object/PlayerTiles.java:39
↓ 1 callers
Method
setTimeLimit
(Integer timeLimit)
src/main/java/com/github/blovemaple/mj/cli/CliGameView.java:122
↓ 1 callers
Method
setTing
(boolean isTing)
src/main/java/com/github/blovemaple/mj/object/PlayerInfo.java:60
↓ 1 callers
Method
setWinTile
(Tile winTile)
src/main/java/com/github/blovemaple/mj/rule/win/WinInfo.java:70
← previous
next →
201–300 of 695, ranked by callers