パッケージ org.aiwolf.server
クラス GameData
java.lang.Object
org.aiwolf.server.GameData
Record game information of a day
- 作成者:
- tori
-
フィールドの概要
フィールド修飾子とタイプフィールド説明roles of each agentsstatus of each agentsprotected Agent
昨夜人狼が襲ったエージェント(成否は問わない) the agent werewolves attacked last night (no matter whether or not the attack succeeded)protected Agent
昨夜人狼に襲われ死亡したエージェント the agent who died last night because of the attack by werewolf.protected Agent
呪殺された妖狐 the fox killed by curseprotected int
The day of the dataprotected GameData
game data of one day beforeprotected Judge
Result of divinationprotected Agent
executed agentprotected GameSetting
ゲームの設定protected Guard
Guard昨夜死亡したエージェントのリスト the list of agents who died last night直近の襲撃投票リスト The latest list of votes for attack.直近の投票リスト The latest list of votes.agents who sudden deathprotected int
protected int
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明void
Add new agent with their rolevoid
void
Add divinevoid
void
addLastDeadAgent
(Agent agent) 昨夜死亡したエージェントを追加する Adds the agent who died last night.void
void
Add vote datavoid
addWhisper
(Agent agent, Talk whisper) boolean
指定エージェントがゲームに含まれているかどうかを調べる Check whether the agents is joining in game.get agents昨夜人狼が襲ったエージェント(成否は問わない)を返す Returns the agent werewolves attacked last night (no matter whether or not the attack succeeded).昨夜人狼に襲われ死亡したエージェントを返す. Returns the agent who died last night because of the attack by werewolf.呪殺された妖狐を返す. Returns the fox killed by curse.int
getDay()
get game data of one day beforegetFilteredAgentList
(List<Agent> agentList, Role role) getFilteredAgentList
(List<Agent> agentList, Species species) getFilteredAgentList
(List<Agent> agentList, Status status) getFilteredAgentList
(List<Agent> agentList, Team team) getFinalGameInfo
(Agent agent) get final game informationgetFinalGameInfoToSend
(Agent agent) get game info with all informationgetGameInfo
(Agent agent) get specific game informationgetGameInfoToSend
(Agent agent) getGuard()
直近の襲撃投票リストを返す Returns the latest list of votes for attack.直近の投票リストを返す Returns the latest list of votes.get status of agentnextDay()
Create GameData of next dayint
int
void
setAttackedDead
(Agent attackedDead) 昨夜人狼に襲われ死亡したエージェントをセットする. Sets the agent who died last night because of the attack by werewolf.void
setAttackedTarget
(Agent attacked) void
setCursedFox
(Agent cursedFox) 呪殺された妖狐をセットする. Sets the fox killed by curse.void
setExecutedTarget
(Agent executed) set executedvoid
setLatestAttackVoteList
(List<Vote> latestAttackVoteList) 直近の襲撃投票リストをセットする Sets the latest list of votes for attack.void
setLatestVoteList
(List<Vote> latestVoteList) 直近の投票リストをセットする Sets the latest list of votes.
-
フィールド詳細
-
day
protected int dayThe day of the data -
agentStatusMap
status of each agents -
agentRoleMap
roles of each agents -
talkList
-
whisperList
-
voteList
-
latestVoteList
直近の投票リストThe latest list of votes. -
attackVoteList
-
latestAttackVoteList
直近の襲撃投票リストThe latest list of votes for attack. -
remainTalkMap
-
remainWhisperMap
-
divine
Result of divination -
guard
Guard -
executed
executed agent -
attackedDead
昨夜人狼に襲われ死亡したエージェントthe agent who died last night because of the attack by werewolf. -
attacked
昨夜人狼が襲ったエージェント(成否は問わない)the agent werewolves attacked last night (no matter whether or not the attack succeeded) -
cursedFox
呪殺された妖狐the fox killed by curse -
lastDeadAgentList
昨夜死亡したエージェントのリストthe list of agents who died last night -
suddendeathList
agents who sudden death -
dayBefore
game data of one day before -
talkIdx
protected int talkIdx -
wisperIdx
protected int wisperIdx -
gameSetting
ゲームの設定
-
-
コンストラクタの詳細
-
GameData
-
-
メソッドの詳細
-
getGameInfo
get specific game information- パラメータ:
agent
-- 戻り値:
-
getFinalGameInfo
get final game information- パラメータ:
agent
-- 戻り値:
-
getGameInfo
get game info with all information- 戻り値:
-
getGameInfoToSend
- パラメータ:
agent
- - if null, get all information- 戻り値:
-
getFinalGameInfoToSend
-
addAgent
Add new agent with their role- パラメータ:
agent
-status
-role
-
-
getAgentList
get agents- 戻り値:
-
getStatus
get status of agent- パラメータ:
agent
-
-
getRole
- パラメータ:
agent
-- 戻り値:
-
addTalk
- パラメータ:
agent
-talk
-
-
addWhisper
-
addVote
Add vote data- パラメータ:
vote
-
-
addDivine
Add divine- パラメータ:
divine
-
-
addGuard
-
addAttack
-
getVoteList
-
setExecutedTarget
set executed- パラメータ:
target
-
-
setAttackedTarget
- パラメータ:
attacked
-
-
getAttackVoteList
- 戻り値:
-
getGuard
- 戻り値:
-
getDay
public int getDay()- 戻り値:
- day
-
getTalkList
- 戻り値:
- talkList
-
getWhisperList
- 戻り値:
- wisperList
-
getDivine
- 戻り値:
- divine
-
getExecuted
- 戻り値:
- executed
-
getAttacked
昨夜人狼が襲ったエージェント(成否は問わない)を返すReturns the agent werewolves attacked last night (no matter whether or not the attack succeeded).- 戻り値:
- attackedAgent - 昨夜人狼が襲ったエージェントthe agent werewolves attacked last night
-
addLastDeadAgent
昨夜死亡したエージェントを追加するAdds the agent who died last night.- パラメータ:
agent
-追加するエージェントthe agent to be added
-
getLastDeadAgentList
- 戻り値:
- 昨夜死亡したエージェントのリストthe list of agents who died last night
-
getSuddendeathList
- 戻り値:
- suddendeathList
-
getRemainTalkMap
- 戻り値:
- remainTalkMap
-
getRemainWhisperMap
- 戻り値:
- remainTalkMap
-
nextDay
Create GameData of next day- 戻り値:
-
getDayBefore
get game data of one day before- 戻り値:
-
getFilteredAgentList
-
getFilteredAgentList
-
getFilteredAgentList
-
getFilteredAgentList
-
nextTalkIdx
public int nextTalkIdx() -
nextWhisperIdx
public int nextWhisperIdx() -
getAttackedDead
昨夜人狼に襲われ死亡したエージェントを返す.Returns the agent who died last night because of the attack by werewolf.- 戻り値:
- the attackedDead
-
setAttackedDead
昨夜人狼に襲われ死亡したエージェントをセットする.Sets the agent who died last night because of the attack by werewolf.- パラメータ:
attackedDead
- the attackedDead to set
-
getCursedFox
呪殺された妖狐を返す.Returns the fox killed by curse.- 戻り値:
- 呪殺された妖狐the fox killed by curse
-
setCursedFox
呪殺された妖狐をセットする.Sets the fox killed by curse.- パラメータ:
cursedFox
-呪殺された妖狐the fox killed by curse
-
getLatestVoteList
直近の投票リストを返すReturns the latest list of votes.- 戻り値:
- 投票リストを表す
List<Vote>
List<Vote>
representing the list of votes.
-
setLatestVoteList
直近の投票リストをセットするSets the latest list of votes.- パラメータ:
latestVoteList
-投票リストを表すList<Vote>
List<Vote>
representing the list of votes.
-
getLatestAttackVoteList
直近の襲撃投票リストを返すReturns the latest list of votes for attack.- 戻り値:
- 投票リストを表す
List<Vote>
List<Vote>
representing the list of votes.
-
setLatestAttackVoteList
直近の襲撃投票リストをセットするSets the latest list of votes for attack.- パラメータ:
latestAttackVoteList
-投票リストを表すList<Vote>
List<Vote>
representing the list of votes.
-
contains
指定エージェントがゲームに含まれているかどうかを調べるCheck whether the agents is joining in game.- パラメータ:
latestAttackVoteList
-含まれているかどうかboolean
boolean
is contains in the game.
-