public class GameData
extends java.lang.Object
修飾子 | コンストラクタと説明 |
---|---|
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 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()