bakutan.common.ai
クラス AIOutput

java.lang.Object
  上位を拡張 bakutan.common.ai.AIOutput

public class AIOutput
extends java.lang.Object


コンストラクタの概要
AIOutput()
           
 
メソッドの概要
 byte getAction()
          アクションを取得する。
 BVector2f getActiontarget()
          アクションターゲットの位置を得る。
 BVector2f getVelocity()
          移動の速度を得る。
 void setAction(int action)
          アクションを設定する。
 void setActiontarget(BVector2f actiontarget)
          アクションターゲットの位置を設定する。
 void setVelocity(BVector2f velocity)
          移動の速度を設定する。
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AIOutput

public AIOutput()
メソッドの詳細

getAction

public byte getAction()
アクションを取得する。何も設定されていないときは-1を返す。

戻り値:
アクション

setAction

public void setAction(int action)
アクションを設定する。

パラメータ:
action - 設定するアクション

getActiontarget

public BVector2f getActiontarget()
アクションターゲットの位置を得る。

戻り値:
アクションターゲットの位置

setActiontarget

public void setActiontarget(BVector2f actiontarget)
アクションターゲットの位置を設定する。

パラメータ:
actiontarget - 設定するアクションターゲットの位置。

getVelocity

public BVector2f getVelocity()
移動の速度を得る。

戻り値:
移動の速度

setVelocity

public void setVelocity(BVector2f velocity)
移動の速度を設定する。ベクトルの長さは0〜1の範囲であり、1以上のときは1にスケーリングされる。

パラメータ:
velocity - 設定する速度。