|
||||||||||
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.PoliceForceInformation
public class PoliceForceInformation
The class represent the police force information
Field Summary |
---|
Fields inherited from class jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage |
---|
COMMON_DATA_TYPE, data, messageType |
Constructor Summary | |
---|---|
PoliceForceInformation(int time,
rescuecore2.worldmodel.EntityID pfID,
int hp,
int damage,
int buriedness,
rescuecore2.worldmodel.EntityID areaID)
Constructor |
|
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. |
Method Summary | |
---|---|
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. |
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 PoliceForceInformation(int time, rescuecore2.worldmodel.EntityID pfID, int hp, int damage, int buriedness, rescuecore2.worldmodel.EntityID areaID)
time
- step numpfID
- EntityID of the pfhp
- hp of the pfdamage
- damage of the pfburiedness
- buriedness of the pfareaID
- EntityID of areapublic PoliceForceInformation(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 getPoliceForceID()
public int getHP()
public int getDamage()
public int getBuriedness()
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 |