public abstract class AbstractKajiBasePlayer extends AbstractPlayer
コンストラクタと説明 |
---|
AbstractKajiBasePlayer() |
修飾子とタイプ | メソッドと説明 |
---|---|
Agent |
attack()
Decide agent who to be attacked by wolves
|
void |
comingoutTalkDealing(Talk talk,
Utterance utterance)
カミングアウトの発話の処理
|
void |
dayStart()
Called when the day started
|
Agent |
divine()
Decide agent to divine by Seer
|
void |
divinedTalkDealing(Talk talk,
Utterance utterance)
占い結果の発話の処理
|
void |
finish()
Called when the game finished.
|
abstract java.lang.String |
getComingoutText()
カミングアウトの発話を行う.COしない場合はnullを返す
|
abstract java.lang.String |
getJudgeText()
占い or 霊能結果の発話を行う.結果の報告をしない場合はnullを返す
|
static <T> T |
getMaxDoubleValueKey(java.util.Map<T,java.lang.Double> map)
ValueがDoubleであるMapについて,その値が最大となるKeyを返す
|
static <T> T |
getMaxIntValueKey(java.util.Map<T,java.lang.Integer> map) |
static <T> T |
getMinDoubleValueKey(java.util.Map<T,java.lang.Double> map)
ValueがDoubleであるMapについて,その値が最小となるKeyを返す
|
static <T> T |
getMinIntValueKey(java.util.Map<T,java.lang.Integer> map) |
double |
getRiskValue(Pattern pattern,
Agent agent,
java.util.List<Agent> aliveAgents)
patternにおいてagentが死亡した時に失われる役職値を返す
|
java.util.Map<Role,java.lang.Double> |
getRoleProbabilitys(Pattern pattern,
Agent agent,
java.util.List<Agent> aliveAgents)
patternにおけるagentが各役職に何パーセントでなっているか返す
|
Agent |
guard()
Decide agent to guard by BodyGuard
|
void |
initialize(GameInfo gameInfo,
GameSetting gameSetting)
Called when the game started
|
void |
inquestedTalkDealing(Talk talk,
Utterance utterance)
霊能結果の発話の処理
|
abstract void |
setVoteTarget()
今日投票予定のプレイヤーを決定する
updateとdayStartの最後によばれる
|
void |
setVoteTargetTemplate(java.util.List<Pattern> patterns)
各プレイヤーについて,そのプレイヤーが死亡した際の損害の期待値を出す
損害が一番低いプレイヤーに投票先を移す
|
java.lang.String |
talk()
Each player can talk thier opinions throw this method
Return texts must be written in aiwolf protocol. |
void |
update(GameInfo gameInfo)
Called when the game information updated
|
Agent |
vote()
ExecuteVote agent to execute
|
void |
voteTalkDealing(Talk talk,
Utterance utterance)
投票意思の発話の処理
|
java.lang.String |
whisper()
Each wolves can talk thier opinions throw this method
|
getDay, getGameInfo, getGameInfoMap, getGameSetting, getLatestDayGameInfo, getMe, getMyRole, getName, setAgent
public void initialize(GameInfo gameInfo, GameSetting gameSetting)
Player
initialize
インタフェース内 Player
initialize
クラス内 AbstractPlayer
gameInfo
- information about current game statusgameSetting
- Game settingspublic double getRiskValue(Pattern pattern, Agent agent, java.util.List<Agent> aliveAgents)
pattern
- agent
- aliveAgents
- public java.util.Map<Role,java.lang.Double> getRoleProbabilitys(Pattern pattern, Agent agent, java.util.List<Agent> aliveAgents)
pattern
- agent
- aliveAgents
- public void update(GameInfo gameInfo)
Player
update
インタフェース内 Player
update
クラス内 AbstractPlayer
public void comingoutTalkDealing(Talk talk, Utterance utterance)
talk
- utterance
- public void divinedTalkDealing(Talk talk, Utterance utterance)
talk
- utterance
- public void inquestedTalkDealing(Talk talk, Utterance utterance)
talk
- utterance
- public void voteTalkDealing(Talk talk, Utterance utterance)
talk
- utterance
- public void dayStart()
Player
dayStart
インタフェース内 Player
dayStart
クラス内 AbstractPlayer
public java.lang.String talk()
Player
talk
インタフェース内 Player
talk
クラス内 AbstractPlayer
public abstract java.lang.String getJudgeText()
public abstract java.lang.String getComingoutText()
public abstract void setVoteTarget()
public void setVoteTargetTemplate(java.util.List<Pattern> patterns)
public static <T> T getMaxDoubleValueKey(java.util.Map<T,java.lang.Double> map)
map
- public static <T> T getMaxIntValueKey(java.util.Map<T,java.lang.Integer> map)
public static <T> T getMinDoubleValueKey(java.util.Map<T,java.lang.Double> map)
map
- public static <T> T getMinIntValueKey(java.util.Map<T,java.lang.Integer> map)
public java.lang.String whisper()
Player
whisper
インタフェース内 Player
whisper
クラス内 AbstractPlayer
public Agent attack()
Player
attack
インタフェース内 Player
attack
クラス内 AbstractPlayer
public Agent divine()
Player
divine
インタフェース内 Player
divine
クラス内 AbstractPlayer
public Agent guard()
Player
guard
インタフェース内 Player
guard
クラス内 AbstractPlayer
public Agent vote()
Player
vote
インタフェース内 Player
vote
クラス内 AbstractPlayer
public void finish()
Player
finish
インタフェース内 Player
finish
クラス内 AbstractPlayer