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
agents who killed by werewolf
|
protected int |
day
The day of the data
|
protected GameData |
dayBefore
game data of one day before
|
protected Judge |
divine
Result divine
|
protected Agent |
executed
agents who killed by villegers
|
protected GameSetting |
gameSetting
ゲームの設定
|
protected Guard |
guard
Result divine
|
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 int |
wisperIdx |
protected java.util.List<Talk> |
wisperList |
修飾子 | コンストラクタと説明 |
---|---|
protected |
GameData(GameSetting gameSetting) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addAgent(Agent agent,
Status status,
Role role)
Add new agent with thier role
|
void |
addAttack(Vote attack) |
void |
addDivine(Judge divine)
Add divine
|
void |
addGuard(Guard guard) |
void |
addTalk(Agent agent,
Talk talk) |
void |
addVote(Vote vote)
Add vote data
|
void |
addWisper(Agent agent,
Talk wisper)
kaji
|
java.util.List<Agent> |
getAgentList()
get agents
|
Agent |
getAttacked() |
java.util.List<Vote> |
getAttackVoteList() |
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() |
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() |
protected GameData |
nextDay()
Create GameData of next day
|
int |
nextTalkIdx() |
int |
nextWhisperIdx() |
void |
setAttackedTarget(Agent attacked) |
void |
setExecuteTarget(Agent target)
set executed
|
protected int day
protected java.util.List<Talk> talkList
protected java.util.List<Talk> wisperList
protected java.util.List<Vote> voteList
protected java.util.List<Vote> attackCandidateList
protected Judge divine
protected Guard guard
protected Agent executed
protected Agent attacked
protected java.util.List<Agent> suddendeathList
protected GameData dayBefore
protected int talkIdx
protected int wisperIdx
protected GameSetting gameSetting
protected 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
- role
- public java.util.List<Agent> getAgentList()
public void addVote(Vote vote)
day
- agent
- target
- public void addDivine(Judge divine)
day
- agent
- target
- public void addGuard(Guard guard)
public void addAttack(Vote attack)
public java.util.List<Vote> getVoteList()
public void setExecuteTarget(Agent target)
day
- target
- public void setAttackedTarget(Agent attacked)
day
- attacked
- public java.util.List<Vote> getAttackVoteList()
day
- 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 java.util.List<Agent> getSuddendeathList()
protected 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()