public abstract class AbstractPlayer extends java.lang.Object implements Player
コンストラクタと説明 |
---|
AbstractPlayer() |
修飾子とタイプ | メソッドと説明 |
---|---|
abstract Agent |
attack()
Decide agent who to be attacked by wolves
|
abstract void |
dayStart()
Called when the day started
|
abstract Agent |
divine()
Decide agent to divine by Seer
|
abstract void |
finish()
Called when the game finished.
|
int |
getDay() |
GameInfo |
getGameInfo(int day) |
java.util.Map<java.lang.Integer,GameInfo> |
getGameInfoMap() |
GameInfo |
getLatestDayGameInfo() |
Agent |
getMe() |
Role |
getMyRole() |
java.lang.String |
getName()
get player name
|
abstract Agent |
guard()
Decide agent to guard by BodyGuard
|
void |
initialize(GameInfo gameInfo,
GameSetting gameSetting)
Called when the game started
|
void |
setAgent(Agent agent) |
abstract 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
|
abstract Agent |
vote()
ExecuteVote agent to execute
|
abstract java.lang.String |
whisper()
Each wolves can talk thier opinions throw this method
|
public java.lang.String getName()
Player
public void update(GameInfo gameInfo)
Player
public GameInfo getLatestDayGameInfo()
public GameInfo getGameInfo(int day)
public java.util.Map<java.lang.Integer,GameInfo> getGameInfoMap()
public Role getMyRole()
public Agent getMe()
public int getDay()
public void setAgent(Agent agent)
public void initialize(GameInfo gameInfo, GameSetting gameSetting)
Player
initialize
インタフェース内 Player
gameInfo
- information about current game statusgameSetting
- Game settingspublic abstract void dayStart()
Player
public abstract java.lang.String talk()
Player
public abstract java.lang.String whisper()
Player
public abstract Agent attack()
Player