commlib.information
クラス PoliceForceInformation

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

public class PoliceForceInformation
extends WorldInformation

The class represent the police force information

作成者:
takefumi

コンストラクタの概要
PoliceForceInformation(int time, rescuecore2.worldmodel.EntityID pfID, int hp, int damage, int buriedness, rescuecore2.worldmodel.EntityID areaID)
          Constructor Create the information of the police force.
PoliceForceInformation(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.
 
メソッドの概要
 int getBuriedness()
          Return buryedness of the pf.
 int getDamage()
          Return damege of the pf.
 rescuecore2.worldmodel.EntityID getEntityID()
           
 int getHP()
          Return hp of the pf.
 rescuecore2.worldmodel.EntityID getPoliceForceID()
          Return EntityID of the pf.
 rescuecore2.worldmodel.EntityID getPositionID()
          Return EntityID of area that the pf is standing.
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PoliceForceInformation

public PoliceForceInformation(int time,
                              rescuecore2.worldmodel.EntityID pfID,
                              int hp,
                              int damage,
                              int buriedness,
                              rescuecore2.worldmodel.EntityID areaID)

Constructor

Create the information of the police force.
Included data are follow.

パラメータ:
time - step num
pfID - EntityID of the pf
hp - hp of the pf
damage - damage of the pf
buriedness - buriedness of the pf
areaID - EntityID of area

PoliceForceInformation

public PoliceForceInformation(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.

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

getPoliceForceID

public rescuecore2.worldmodel.EntityID getPoliceForceID()
Return EntityID of the pf.

戻り値:
EntityID

getHP

public int getHP()
Return hp of the pf.


getDamage

public int getDamage()
Return damege of the pf.

戻り値:
damage

getBuriedness

public int getBuriedness()
Return buryedness of the pf.

戻り値:
buryedness

getPositionID

public rescuecore2.worldmodel.EntityID getPositionID()
Return EntityID of area that the pf is standing.

戻り値:
EntityID

getEntityID

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