commlib.information
クラス VictimInformation

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

public class VictimInformation
extends WorldInformation

The class show the information of victim.

作成者:
takefumi

コンストラクタの概要
VictimInformation(BaseMessageType type, java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
          The method that the library use to convert the message.
VictimInformation(int time, rescuecore2.worldmodel.EntityID vicID, rescuecore2.worldmodel.EntityID area, int hp, int buriedness, int damage)
          Constructor Create the victim information.
VictimInformation(int time, rescuecore2.worldmodel.EntityID vicID, rescuecore2.worldmodel.EntityID area, int hp, int buriedness, int damage, rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> cor)
          Constructor Create the victim information.
 
メソッドの概要
 rescuecore2.worldmodel.EntityID getAreaID()
          Return EntityID of area that the victim exist
 int getBuriedness()
          Return buriedness of the victim
 rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> getCoodinate()
          Return coordinate of the victim(Pair<Integer,Integer>)
If not be setted, returned (-1,-1).
 int getDamage()
          Return damage of the victim
 rescuecore2.worldmodel.EntityID getEntityID()
           
 int getHP()
          Return hp of the victim
 rescuecore2.worldmodel.EntityID getVictimID()
          Return EntityID of the victim.
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

VictimInformation

public VictimInformation(int time,
                         rescuecore2.worldmodel.EntityID vicID,
                         rescuecore2.worldmodel.EntityID area,
                         int hp,
                         int buriedness,
                         int damage)

Constructor

Create the victim information. Included data are follow. Additionally, This message can send the location data of the victim( Pair<Integer,Integer> ), if location information doesn't exist, we get this as (-1,-1).
And not only EntityID of the civilian, but also EntityID of the platoon is assignable as vicID.

パラメータ:
time - step num
vicID - EntityID of the victim
area - EntityID of area that the victim exist
hp - hp of the victim
buriedness - buriedness of the victim
damage - damage of the victim

VictimInformation

public VictimInformation(int time,
                         rescuecore2.worldmodel.EntityID vicID,
                         rescuecore2.worldmodel.EntityID area,
                         int hp,
                         int buriedness,
                         int damage,
                         rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> cor)

Constructor

Create the victim information. Included data are follow. Additionally, This message can send the location data of the victim( Pair<Integer,Integer> ), if location information doesn't exist, we get this as (-1,-1).
And not only EntityID of the civilian, but also EntityID of the platoon is assignable as vicID.

パラメータ:
time - step num
vicID - EntityID of the victim
area - EntityID of area that the victim exist
hp - hp of the victim
buriedness - buriedness of the victim
damage - damage of the victim
cor - coordinate of the victim

VictimInformation

public VictimInformation(BaseMessageType type,
                         java.util.List<java.lang.Integer> bitList,
                         int offset,
                         java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
The method that the library use to convert the message.

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

getVictimID

public rescuecore2.worldmodel.EntityID getVictimID()
Return EntityID of the victim.

戻り値:
EntityID

getHP

public int getHP()
Return hp of the victim

戻り値:
hp of the victim

getBuriedness

public int getBuriedness()
Return buriedness of the victim

戻り値:
buriedness

getDamage

public int getDamage()
Return damage of the victim

戻り値:
damage of the victim

getAreaID

public rescuecore2.worldmodel.EntityID getAreaID()
Return EntityID of area that the victim exist

戻り値:
EntityID of area

getCoodinate

public rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> getCoodinate()
Return coordinate of the victim(Pair<Integer,Integer>)
If not be setted, returned (-1,-1).

戻り値:
coordinate of thSe victim

getEntityID

public rescuecore2.worldmodel.EntityID getEntityID()
定義:
クラス WorldInformation 内の getEntityID