commlib.information
クラス BuildingInformation

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

public class BuildingInformation
extends WorldInformation

The BuildingInformation show the building information.

作成者:
takefumi

コンストラクタの概要
BuildingInformation(int time, rescuecore2.worldmodel.EntityID buildingId, int fieryness, int brokenness)
          Constructor Create the inforamtion of building.
BuildingInformation(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 getBrokenness()
          Return brokenness of the building.
 rescuecore2.worldmodel.EntityID getBuildingID()
          Return EntityID of the building.
 rescuecore2.worldmodel.EntityID getEntityID()
           
 int getFieryness()
          Return fieryness of the building.
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BuildingInformation

public BuildingInformation(int time,
                           rescuecore2.worldmodel.EntityID buildingId,
                           int fieryness,
                           int brokenness)

Constructor

Create the inforamtion of building.
Included data are follow.

パラメータ:
time - step num
buildingId - EntityiD of the building
fieryness - fieryness of the building
brokenness - blockenness of the building

BuildingInformation

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

getBuildingID

public rescuecore2.worldmodel.EntityID getBuildingID()
Return EntityID of the building.

戻り値:
EntityID

getBrokenness

public int getBrokenness()
Return brokenness of the building.

戻り値:
brokenness

getFieryness

public int getFieryness()
Return fieryness of the building.

戻り値:
fieryness

getEntityID

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