commlib.information
クラス FireBrigadeInformation

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

public class FireBrigadeInformation
extends WorldInformation

This class show the Fire Brigade information.

作成者:
takefumi

コンストラクタの概要
FireBrigadeInformation(int time, rescuecore2.worldmodel.EntityID fbID, int hp, int damage, int buriedness, int water, rescuecore2.worldmodel.EntityID areaID)
          Constructor Create the information of fire brigade
Included data are follow.
FireBrigadeInformation(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 buriedness of the fb.
 int getDamage()
          Return damage of the fb.
 rescuecore2.worldmodel.EntityID getEntityID()
           
 rescuecore2.worldmodel.EntityID getFireBrigadeID()
          Return EntityID of the fb.
 int getHP()
          Return hp of the fb.
 rescuecore2.worldmodel.EntityID getPositionID()
          Return EntityID of area that the fb is standing.
 int getWater()
          Return amount of left water.
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FireBrigadeInformation

public FireBrigadeInformation(int time,
                              rescuecore2.worldmodel.EntityID fbID,
                              int hp,
                              int damage,
                              int buriedness,
                              int water,
                              rescuecore2.worldmodel.EntityID areaID)

Constructor

Create the information of fire brigade
Included data are follow.

パラメータ:
time - step num
fbID - EntityID
hp - hp of the fb
damage - damage of the fb
buriedness - buriedness of the fb
water - amount of left water
areaID - EntityID of area

FireBrigadeInformation

public FireBrigadeInformation(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 -
メソッドの詳細

getFireBrigadeID

public rescuecore2.worldmodel.EntityID getFireBrigadeID()
Return EntityID of the fb.

戻り値:
EntityID

getHP

public int getHP()
Return hp of the fb.

戻り値:
hp of the fb

getDamage

public int getDamage()
Return damage of the fb.

戻り値:
damage

getBuriedness

public int getBuriedness()
Return buriedness of the fb.

戻り値:
buriedness

getWater

public int getWater()
Return amount of left water.

戻り値:
quantity.

getPositionID

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

戻り値:
EntityID of area

getEntityID

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