jp.ac.nagoyau.is.ss.kishii.suntori.message.information
クラス VictimInformation

java.lang.Object
  上位を拡張 jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
      上位を拡張 jp.ac.nagoyau.is.ss.kishii.suntori.message.information.WorldInformation
          上位を拡張 jp.ac.nagoyau.is.ss.kishii.suntori.message.information.VictimInformation
すべての実装されたインタフェース:
IMessage

public class VictimInformation
extends WorldInformation

被災者の情報を表すクラスです.

作成者:
takefumi

フィールドの概要
 
クラス jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage から継承されたフィールド
COMMON_DATA_TYPE, data, messageType
 
コンストラクタの概要
VictimInformation(BaseMessageType type, java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
          コンバート時にシステムが使用するコンストラクタ
VictimInformation(int time, EntityID vicID, EntityID area, int hp, int buriedness, int damage)
          コンストラクタ
被災者情報を生成します.
VictimInformation(int time, EntityID vicID, EntityID area, int hp, int buriedness, int damage,  cor)
          コンストラクタ
被災者情報を生成します.
 
メソッドの概要
 EntityID getAreaID()
          被災者のいるエリアのEntityIDを取得します.
 int getBuriedness()
          被災者の埋没度を取得します.
  getCoodinate()
          被災者の座標を取得します.
 int getDamage()
          被災者のダメージを取得します.
 int getHP()
          被災者の体力を取得します.
 EntityID getVictimID()
          被災者のEntityIDを取得します.
 
クラス jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage から継承されたメソッド
equals, getBrokenness, getBuriedness, getCoodinate, getDamage, getData, getData, getDataTypeArray, getEntityIDList, getFieryness, getHP, getID, getMessageBitSize, getMessageMinimumSize, getMessageType, getRepairCost, getSendTime, getSendTime, getSupplyQuantity, getWater, getWaterPower, hashCode, isSendable, setCoorinate, setData, setData
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

VictimInformation

public VictimInformation(int time,
                         EntityID vicID,
                         EntityID area,
                         int hp,
                         int buriedness,
                         int damage)
コンストラクタ
被災者情報を生成します.
含まれる情報は以下のものです. 被災者情報は被災者の位置座標を送信することもでき,座標情報がある場合は座標(x,y)を,座標情報が含まれていない場合は(-1,-1)をPair< Integer,Integer>として取得することができます.

また,vicIDにはCivilianのEntityIDだけではなく,救助隊(platoon)のEntityIDを指定することもできます.

パラメータ:
time - ステップ数
vicID - 被災者のEntityID
area - 被災者の存在するエリアのEntityID
hp - 被災者の体力
buriedness - 被災者の埋没度
damage - 被災者のダメージ

VictimInformation

public VictimInformation(int time,
                         EntityID vicID,
                         EntityID area,
                         int hp,
                         int buriedness,
                         int damage,
                          cor)
コンストラクタ
被災者情報を生成します.
含まれる情報は以下のものです.

また,vicIDにはCivilianのEntityIDだけではなく,救助隊(platoon)のEntityIDを指定することもできます.

パラメータ:
time - ステップ数
vicID - 被災者のEntityID
area - 被災者の存在するエリアのEntityID
hp - 被災者の体力
buriedness - 被災者の埋没度
damage - 被災者のダメージ
cor - 被災者の位置座標

VictimInformation

public VictimInformation(BaseMessageType type,
                         java.util.List<java.lang.Integer> bitList,
                         int offset,
                         java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
コンバート時にシステムが使用するコンストラクタ

パラメータ:
type -
bitList -
offset -
bitSizeMap -
メソッドの詳細

getVictimID

public EntityID getVictimID()
被災者のEntityIDを取得します.

戻り値:
被災者のEntityID

getHP

public int getHP()
被災者の体力を取得します.

戻り値:
被災者の体力

getBuriedness

public int getBuriedness()
被災者の埋没度を取得します.

戻り値:
被災者の埋没度

getDamage

public int getDamage()
被災者のダメージを取得します.

戻り値:
被災者のダメージ

getAreaID

public EntityID getAreaID()
被災者のいるエリアのEntityIDを取得します.

戻り値:
被災者のいるエリアのEntityID

getCoodinate

public  getCoodinate()
被災者の座標を取得します.
設定されていない場合は,(-1,-1)が返されます.

戻り値:
被災者の位置座標