jp.ac.nagoyau.is.ss.kishii.suntori.message.information
Class FireBrigadeInformation

java.lang.Object
  extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
      extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.information.WorldInformation
          extended by jp.ac.nagoyau.is.ss.kishii.suntori.message.information.FireBrigadeInformation
All Implemented Interfaces:
IMessage

public class FireBrigadeInformation
extends WorldInformation

This class show the Fire Brigade information.

Author:
takefumi

Field Summary
 
Fields inherited from class jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
COMMON_DATA_TYPE, data, messageType
 
Constructor Summary
FireBrigadeInformation(int time, rescuecore2.worldmodel.EntityID fbID, int hp, int damage, int buriedness, int water, rescuecore2.worldmodel.EntityID areaID)
          Constructor
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.
 
Method Summary
 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.
 
Methods inherited from class jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
equals, getBrokenness, getBuriedness, getCoodinate, getDamage, getData, getData, getDataTypeArray, getEntityIDList, getFieryness, getHP, getID, getMessageBitSize, getMessageType, getRepairCost, getSendTime, getSendTime, getWater, getWaterPower, hashCode, isSendable, setCoorinate, setData, setData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Parameters:
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.

Parameters:
bitList -
offset -
bitSizeMap -
Method Detail

getFireBrigadeID

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

Returns:
EntityID

getHP

public int getHP()
Return hp of the fb.

Returns:
hp of the fb

getDamage

public int getDamage()
Return damage of the fb.

Returns:
damage

getBuriedness

public int getBuriedness()
Return buriedness of the fb.

Returns:
buriedness

getWater

public int getWater()
Return amount of left water.

Returns:
quantity.

getPositionID

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

Returns:
EntityID of area

getEntityID

public rescuecore2.worldmodel.EntityID getEntityID()
Specified by:
getEntityID in class WorldInformation