パッケージ org.aiwolf.common.net

クラス GameInfo


  • public class GameInfo
    extends java.lang.Object
    各プレイヤーに送信されるゲーム情報です。
    Game information which send to each player.
    作成者:
    tori
    • コンストラクタの詳細

      • GameInfo

        public GameInfo()
        新しいゲーム情報を構築します。
        Create new game infomation.
    • メソッドの詳細

      • 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.