|
||||||||||
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.VictimInformation
public class VictimInformation
The class show the information of victim.
Field Summary |
---|
Fields inherited from class jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage |
---|
COMMON_DATA_TYPE, data, messageType |
Constructor Summary | |
---|---|
VictimInformation(BaseMessageType type,
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. |
|
VictimInformation(int time,
rescuecore2.worldmodel.EntityID vicID,
rescuecore2.worldmodel.EntityID area,
int hp,
int buriedness,
int damage)
Constructor |
|
VictimInformation(int time,
rescuecore2.worldmodel.EntityID vicID,
rescuecore2.worldmodel.EntityID area,
int hp,
int buriedness,
int damage,
rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> cor)
Constructor |
Method Summary | |
---|---|
rescuecore2.worldmodel.EntityID |
getAreaID()
Return EntityID of area that the victim exist |
int |
getBuriedness()
Return buriedness of the victim |
rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> |
getCoodinate()
Return coordinate of the victim(Pair<Integer,Integer>) If not be setted, returned (-1,-1). |
int |
getDamage()
Return damage of the victim |
rescuecore2.worldmodel.EntityID |
getEntityID()
|
int |
getHP()
Return hp of the victim |
rescuecore2.worldmodel.EntityID |
getVictimID()
Return EntityID of the victim. |
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 VictimInformation(int time, rescuecore2.worldmodel.EntityID vicID, rescuecore2.worldmodel.EntityID area, int hp, int buriedness, int damage)
time
- step numvicID
- EntityID of the victimarea
- EntityID of area that the victim existhp
- hp of the victimburiedness
- buriedness of the victimdamage
- damage of the victimpublic VictimInformation(int time, rescuecore2.worldmodel.EntityID vicID, rescuecore2.worldmodel.EntityID area, int hp, int buriedness, int damage, rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> cor)
time
- step numvicID
- EntityID of the victimarea
- EntityID of area that the victim existhp
- hp of the victimburiedness
- buriedness of the victimdamage
- damage of the victimcor
- coordinate of the victimpublic VictimInformation(BaseMessageType type, java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
type
- bitList
- offset
- bitSizeMap
- Method Detail |
---|
public rescuecore2.worldmodel.EntityID getVictimID()
public int getHP()
public int getBuriedness()
public int getDamage()
public rescuecore2.worldmodel.EntityID getAreaID()
public rescuecore2.misc.Pair<java.lang.Integer,java.lang.Integer> getCoodinate()
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 |