public class GameData
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
protected java.util.Map<Agent,Role> |
agentRoleMap
roles of each agents
|
protected java.util.Map<Agent,Status> |
agentStatusMap
status of each agents
|
protected java.util.List<Vote> |
attackCandidateList |
protected Agent |
attacked
昨夜人狼が襲ったエージェント(成否は問わない)
the agent werewolves attacked last night (no matter whether or not the attack succeeded)
|
protected Agent |
attackedDead
昨夜人狼に襲われ死亡したエージェント
the agent who died last night because of the attack by werewolf.
|
protected Agent |
cursedFox
呪殺された妖狐
the fox killed by curse
|
protected int |
day
The day of the data
|
protected GameData |
dayBefore
game data of one day before
|
protected Judge |
divine
Result of divination
|
protected Agent |
executed
executed agent
|
protected GameSetting |
gameSetting
ゲームの設定
|
protected Guard |
guard
Guard
|
protected java.util.List<Agent> |
lastDeadAgentList
昨夜死亡したエージェントのリスト
the list of agents who died last night
|
protected java.util.List<Vote> |
latestAttackVoteList
直近の襲撃投票リスト
The latest list of votes for attack.
|
protected java.util.List<Vote> |
latestVoteList
直近の投票リスト
The latest list of votes.
|
protected java.util.Map<Agent,java.lang.Integer> |
remainTalkMap |
protected java.util.Map<Agent,java.lang.Integer> |
remainWhisperMap |
protected java.util.List<Agent> |
suddendeathList
agents who sudden death
|
protected int |
talkIdx |
protected java.util.List<Talk> |
talkList |
protected java.util.List<Vote> |
voteList |
protected java.util.List<Talk> |
whisperList |
protected int |
wisperIdx |
コンストラクタと説明 |
---|
GameData(GameSetting gameSetting) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addAgent(Agent agent,
Status status,
Role role)
Add new agent with their role
|
void |
addAttack(Vote attack) |
void |
addDivine(Judge divine)
Add divine
|
void |
addGuard(Guard guard) |
void |
addLastDeadAgent(Agent agent)
昨夜死亡したエージェントを追加する
Adds the agent who died last night.
|
void |
addTalk(Agent agent,
Talk talk) |
void |
addVote(Vote vote)
Add vote data
|
void |
addWhisper(Agent agent,
Talk whisper) |
java.util.List<Agent> |
getAgentList()
get agents
|
Agent |
getAttacked()
昨夜人狼が襲ったエージェント(成否は問わない)を返す
Returns the agent werewolves attacked last night (no
matter whether or not the attack succeeded).
|
Agent |
getAttackedDead()
昨夜人狼に襲われ死亡したエージェントを返す.
|
java.util.List<Vote> |
getAttackVoteList() |
Agent |
getCursedFox()
呪殺された妖狐を返す.
|
int |
getDay() |
GameData |
getDayBefore()
get game data of one day before
|
Judge |
getDivine() |
Agent |
getExecuted() |
protected java.util.List<Agent> |
getFilteredAgentList(java.util.List<Agent> agentList,
Role role) |
protected java.util.List<Agent> |
getFilteredAgentList(java.util.List<Agent> agentList,
Species species) |
protected java.util.List<Agent> |
getFilteredAgentList(java.util.List<Agent> agentList,
Status status) |
protected java.util.List<Agent> |
getFilteredAgentList(java.util.List<Agent> agentList,
Team team) |
GameInfo |
getFinalGameInfo(Agent agent)
get final game information
|
GameInfoToSend |
getFinalGameInfoToSend(Agent agent) |
GameInfo |
getGameInfo()
get game info with all information
|
GameInfo |
getGameInfo(Agent agent)
get specific game information
|
GameInfoToSend |
getGameInfoToSend(Agent agent) |
Guard |
getGuard() |
java.util.List<Agent> |
getLastDeadAgentList() |
java.util.List<Vote> |
getLatestAttackVoteList()
直近の襲撃投票リストを返す
Returns the latest list of votes for attack.
|
java.util.List<Vote> |
getLatestVoteList()
直近の投票リストを返す
Returns the latest list of votes.
|
java.util.Map<Agent,java.lang.Integer> |
getRemainTalkMap() |
java.util.Map<Agent,java.lang.Integer> |
getRemainWhisperMap() |
Role |
getRole(Agent agent) |
Status |
getStatus(Agent agent)
get status of agent
|
java.util.List<Agent> |
getSuddendeathList() |
java.util.List<Talk> |
getTalkList() |
java.util.List<Vote> |
getVoteList() |
java.util.List<Talk> |
getWhisperList() |
GameData |
nextDay()
Create GameData of next day
|
int |
nextTalkIdx() |
int |
nextWhisperIdx() |
void |
setAttackedDead(Agent attackedDead)
昨夜人狼に襲われ死亡したエージェントをセットする.
|
void |
setAttackedTarget(Agent attacked) |
void |
setCursedFox(Agent cursedFox)
呪殺された妖狐をセットする.
|
void |
setExecutedTarget(Agent target)
set executed
|
void |
setLatestAttackVoteList(java.util.List<Vote> latestAttackVoteList)
直近の襲撃投票リストをセットする
Sets the latest list of votes for attack.
|
void |
setLatestVoteList(java.util.List<Vote> latestVoteList)
直近の投票リストをセットする
Sets the latest list of votes.
|
protected int day
protected java.util.List<Talk> talkList
protected java.util.List<Talk> whisperList
protected java.util.List<Vote> voteList
protected java.util.List<Vote> latestVoteList
protected java.util.List<Vote> attackCandidateList
protected java.util.List<Vote> latestAttackVoteList
protected java.util.Map<Agent,java.lang.Integer> remainTalkMap
protected java.util.Map<Agent,java.lang.Integer> remainWhisperMap
protected Judge divine
protected Guard guard
protected Agent executed
protected Agent attackedDead
protected Agent attacked
protected Agent cursedFox
protected java.util.List<Agent> lastDeadAgentList
protected java.util.List<Agent> suddendeathList
protected GameData dayBefore
protected int talkIdx
protected int wisperIdx
protected GameSetting gameSetting
public GameData(GameSetting gameSetting)
public GameInfo getGameInfo(Agent agent)
agent
- public GameInfo getFinalGameInfo(Agent agent)
agent
- public GameInfo getGameInfo()
public GameInfoToSend getGameInfoToSend(Agent agent)
agent
- - if null, get all informationpublic GameInfoToSend getFinalGameInfoToSend(Agent agent)
public void addAgent(Agent agent, Status status, Role role)
agent
- status
- role
- public java.util.List<Agent> getAgentList()
public void addVote(Vote vote)
vote
- public void addDivine(Judge divine)
divine
- public void addGuard(Guard guard)
public void addAttack(Vote attack)
public java.util.List<Vote> getVoteList()
public void setExecutedTarget(Agent target)
target
- public void setAttackedTarget(Agent attacked)
attacked
- public java.util.List<Vote> getAttackVoteList()
public Guard getGuard()
public int getDay()
public java.util.List<Talk> getTalkList()
public java.util.List<Talk> getWhisperList()
public Judge getDivine()
public Agent getExecuted()
public Agent getAttacked()
public void addLastDeadAgent(Agent agent)
agent
- public java.util.List<Agent> getLastDeadAgentList()
public java.util.List<Agent> getSuddendeathList()
public java.util.Map<Agent,java.lang.Integer> getRemainTalkMap()
public java.util.Map<Agent,java.lang.Integer> getRemainWhisperMap()
public GameData nextDay()
public GameData getDayBefore()
protected java.util.List<Agent> getFilteredAgentList(java.util.List<Agent> agentList, Species species)
protected java.util.List<Agent> getFilteredAgentList(java.util.List<Agent> agentList, Status status)
protected java.util.List<Agent> getFilteredAgentList(java.util.List<Agent> agentList, Role role)
protected java.util.List<Agent> getFilteredAgentList(java.util.List<Agent> agentList, Team team)
public int nextTalkIdx()
public int nextWhisperIdx()
public Agent getAttackedDead()
public void setAttackedDead(Agent attackedDead)
attackedDead
- the attackedDead to setpublic Agent getCursedFox()
public void setCursedFox(Agent cursedFox)
cursedFox
- public java.util.List<Vote> getLatestVoteList()
List<Vote>
List<Vote>
representing the list of votes.public void setLatestVoteList(java.util.List<Vote> latestVoteList)
latestVoteList
- List<Vote>
List<Vote>
representing the list of votes.public java.util.List<Vote> getLatestAttackVoteList()
List<Vote>
List<Vote>
representing the list of votes.public void setLatestAttackVoteList(java.util.List<Vote> latestAttackVoteList)
latestAttackVoteList
- List<Vote>
List<Vote>
representing the list of votes.