|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcommlib.message.RCRSCSMessage
commlib.information.WorldInformation
commlib.information.VictimInformation
public class VictimInformation
The class show the information of victim.
コンストラクタの概要 | |
---|---|
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 Create the victim information. |
|
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 Create the victim information. |
メソッドの概要 | |
---|---|
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. |
クラス commlib.message.RCRSCSMessage から継承されたメソッド |
---|
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData |
クラス java.lang.Object から継承されたメソッド |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
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
- メソッドの詳細 |
---|
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()
WorldInformation
内の getEntityID
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |