パッケージ org.aiwolf.common.net
クラス GameInfo
- java.lang.Object
-
- org.aiwolf.common.net.GameInfo
-
public class GameInfo extends java.lang.Object
各プレイヤーに送信されるゲーム情報です。Game information which send to each player.- 作成者:
- tori
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 GameInfo()
新しいゲーム情報を構築します。
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 Agent
getAgent()
自分自身のエージェントを返します。java.util.List<Agent>
getAgentList()
ゲームに参加しているエージェントのリストを返します。java.util.List<Agent>
getAliveAgentList()
生きているエージェントを返します。Agent
getAttackedAgent()
昨夜実際に襲撃されたエージェントを返します。java.util.List<Vote>
getAttackVoteList()
襲撃投票のリストを返します。Agent
getCursedFox()
呪殺された妖狐を返す Returns the fox killed by curse.int
getDay()
何日かを返します。Judge
getDivineResult()
占い結果を返します。Agent
getExecutedAgent()
昨夜追放されたエージェントを返します。java.util.List<Role>
getExistingRoles()
存在するRoleを返す Returns the roles that existing in this game.Agent
getGuardedAgent()
昨夜に護衛されたエージェントを返します。java.util.List<Agent>
getLastDeadAgentList()
昨夜死亡したエージェントのリストを返します。java.util.List<Vote>
getLatestAttackVoteList()
直近の襲撃投票リストを返す Returns the latest list of votes for attack.Agent
getLatestExecutedAgent()
直近の被追放エージェントを返す Returns the latest executed agent.java.util.List<Vote>
getLatestVoteList()
直近の投票リストを返す Returns the latest list of votes.Judge
getMediumResult()
霊媒結果を返します。java.util.Map<Agent,java.lang.Integer>
getRemainTalkMap()
java.util.Map<Agent,java.lang.Integer>
getRemainWhisperMap()
Role
getRole()
プレイヤーの役職を返します。java.util.Map<Agent,Role>
getRoleMap()
分かっているエージェントの役職を返します。java.util.Map<Agent,Status>
getStatusMap()
すべてのエージェントの状態を返します。java.util.List<Talk>
getTalkList()
今日の会話を返します。java.util.List<Vote>
getVoteList()
投票のリストを返します。java.util.List<Talk>
getWhisperList()
今日のささやきを返します。
-
-
-
メソッドの詳細
-
getDay
public int getDay()
何日かを返します。Get the day.- 戻り値:
- このゲーム情報の日付Day
-
getRole
public Role getRole()
プレイヤーの役職を返します。Get player's role.- 戻り値:
- プレイヤーの役職Role
-
getAgent
public Agent getAgent()
自分自身のエージェントを返します。Get yourself.- 戻り値:
- 自分自身のエージェントAgent, yourself
-
getAgentList
public java.util.List<Agent> getAgentList()
ゲームに参加しているエージェントのリストを返します。Get agents.- 戻り値:
- エージェントのリストAgents list
-
getMediumResult
public Judge getMediumResult()
霊媒結果を返します。霊媒師のみが確認できます。Result of medium. Medium only.- 戻り値:
- 霊媒結果Result of medium
-
getDivineResult
public Judge getDivineResult()
占い結果を返します。占い師のみが確認できます。Result of the divine. Seer only.- 戻り値:
- 占い結果Result of the divine
-
getExecutedAgent
public Agent getExecutedAgent()
昨夜追放されたエージェントを返します。Get the agent who executed last night.- 戻り値:
- 昨夜追放されたエージェントthe agent who executed last night
-
getAttackedAgent
public Agent getAttackedAgent()
昨夜実際に襲撃されたエージェントを返します。人狼以外には知らされません。Returns the agent actually attacked last night.- 戻り値:
- 昨夜実際に襲撃されたエージェントthe agent actually attacked last night
-
getGuardedAgent
public Agent getGuardedAgent()
昨夜に護衛されたエージェントを返します。Get the agent who guarded last night.- 戻り値:
- 昨夜に護衛されたエージェントAgent who guarded last night
-
getVoteList
public java.util.List<Vote> getVoteList()
投票のリストを返します。 このリストから、誰が誰に投票したかを見ることができます。Get the vote list. You can find who vote to who.- 戻り値:
- 投票のリストVote list
-
getAttackVoteList
public java.util.List<Vote> getAttackVoteList()
襲撃投票のリストを返します。人狼のみが確認できます。Attack vote list. Werewolf only.- 戻り値:
- 襲撃投票のリストAttack vote list
-
getTalkList
public java.util.List<Talk> getTalkList()
今日の会話を返します。Get today's talks.- 戻り値:
- 今日の会話Today's talks
-
getWhisperList
public java.util.List<Talk> getWhisperList()
今日のささやきを返します。人狼のみが確認できます。Get today's whispers. Werewolf only.- 戻り値:
- 今日のささやきToday's whispers
-
getAliveAgentList
public java.util.List<Agent> getAliveAgentList()
生きているエージェントを返します。Get agents who are aliving now.- 戻り値:
- 生きているエージェントAlive agents
-
getStatusMap
public java.util.Map<Agent,Status> getStatusMap()
すべてのエージェントの状態を返します。Get statuses of all agents.- 戻り値:
- すべてのエージェントの状態Statuses of all agents
-
getRoleMap
public java.util.Map<Agent,Role> getRoleMap()
分かっているエージェントの役職を返します。
プレイヤーが人間の場合は、 自分自身のエージェントのみを返します。 プレイヤーが人狼の場合は、 自分と他の人狼のエージェントを返します。Get known roles of agents.
if you are human, you know only yourself. if you werewolf, you know other werewolves.- 戻り値:
- 人間ならば自分自身を、 そうでない場合は自分と他の人狼エージェントKnown roles of agents
-
getLastDeadAgentList
public java.util.List<Agent> getLastDeadAgentList()
昨夜死亡したエージェントのリストを返します。Returns the list of the agents died last night.- 戻り値:
- 昨夜死亡したエージェントのリストthe list of the agents died last night
-
getExistingRoles
public java.util.List<Role> getExistingRoles()
存在するRoleを返すReturns the roles that existing in this game.- 戻り値:
- 存在するRoleのリストthe list of the roles
-
getRemainTalkMap
public java.util.Map<Agent,java.lang.Integer> getRemainTalkMap()
- 戻り値:
- remainTalkMap
-
getRemainWhisperMap
public java.util.Map<Agent,java.lang.Integer> getRemainWhisperMap()
- 戻り値:
- remainWhisperMap
-
getLatestVoteList
public java.util.List<Vote> getLatestVoteList()
直近の投票リストを返すReturns the latest list of votes.- 戻り値:
- 投票リストを表す
List<Vote>
List<Vote>
representing the list of votes.
-
getLatestAttackVoteList
public java.util.List<Vote> getLatestAttackVoteList()
直近の襲撃投票リストを返すReturns the latest list of votes for attack.- 戻り値:
- 投票リストを表す
List<Vote>
List<Vote>
representing the list of votes.
-
getLatestExecutedAgent
public Agent getLatestExecutedAgent()
直近の被追放エージェントを返すReturns the latest executed agent.- 戻り値:
- 被追放エージェントを表す
Agent
Agent
representing the latest executed agent.
-
getCursedFox
public Agent getCursedFox()
呪殺された妖狐を返すReturns the fox killed by curse.- 戻り値:
- 呪殺された妖狐を表す
Agent
Agent
representing the fox killed by curse.
-
-