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

クラス Guard

java.lang.Object
org.aiwolf.common.data.Guard

public class Guard extends Object
狩人の護衛の情報です。 いつ(何日に)誰が誰を護衛したかを情報として持ちます。
Information of guard by bodyguard.
作成者:
tori
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ
    説明
    Guard(int day, Agent agent, Agent target)
    狩人の護衛情報を構築します。
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    護衛するエージェントを返します。
    int
    護衛した日を返します。
    護衛の対象となるエージェントを返します。
     

    クラスから継承されたメソッド java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • コンストラクタの詳細

    • Guard

      public Guard(int day, Agent agent, Agent target)
      狩人の護衛情報を構築します。
      Create new information of guard.
      パラメータ:
      day -
      護衛する日
      Day
      agent -
      護衛するエージェント
      Agent as bodyguard
      target -
      護衛の対象となるエージェント
      Agent of guard target
  • メソッドの詳細

    • getDay

      public int getDay()
      護衛した日を返します。
      Get the day.
      戻り値:
      護衛する日
      Day
    • getAgent

      public Agent getAgent()
      護衛するエージェントを返します。
      Get the agent as bodyguard.
      戻り値:
      護衛するエージェント
      Agent as bodyguard
    • getTarget

      public Agent getTarget()
      護衛の対象となるエージェントを返します。
      Get the agent of guard target.
      戻り値:
      護衛の対象となるエージェント
      Agent of guard target
    • toString

      public String toString()
      オーバーライド:
      toString クラス内 Object