|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage
jp.ac.nagoyau.is.ss.kishii.suntori.message.information.WorldInformation
jp.ac.nagoyau.is.ss.kishii.suntori.message.information.FireBrigadeInformation
public class FireBrigadeInformation
This class show the Fire Brigade information.
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 |
---|
public FireBrigadeInformation(int time, rescuecore2.worldmodel.EntityID fbID, int hp, int damage, int buriedness, int water, rescuecore2.worldmodel.EntityID areaID)
time
- step numfbID
- EntityIDhp
- hp of the fbdamage
- damage of the fbburiedness
- buriedness of the fbwater
- amount of left waterareaID
- EntityID of areapublic FireBrigadeInformation(java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
bitList
- offset
- bitSizeMap
- Method Detail |
---|
public rescuecore2.worldmodel.EntityID getFireBrigadeID()
public int getHP()
public int getDamage()
public int getBuriedness()
public int getWater()
public rescuecore2.worldmodel.EntityID getPositionID()
public rescuecore2.worldmodel.EntityID getEntityID()
getEntityID
in class WorldInformation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |