|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
被災者の情報を表すクラスです.
フィールドの概要 |
---|
クラス jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage から継承されたフィールド |
---|
COMMON_DATA_TYPE, data, messageType |
コンストラクタの概要 | |
---|---|
VictimInformation(BaseMessageType type,
java.util.List<java.lang.Integer> bitList,
int offset,
java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
コンバート時にシステムが使用するコンストラクタ |
|
VictimInformation(int time,
EntityID vicID,
EntityID area,
int hp,
int buriedness,
int damage)
コンストラクタ 被災者情報を生成します. |
|
VictimInformation(int time,
EntityID vicID,
EntityID area,
int hp,
int buriedness,
int damage,
コンストラクタ 被災者情報を生成します. |
メソッドの概要 | |
---|---|
EntityID |
getAreaID()
被災者のいるエリアのEntityIDを取得します. |
int |
getBuriedness()
被災者の埋没度を取得します. |
|
getCoodinate()
被災者の座標を取得します. |
int |
getDamage()
被災者のダメージを取得します. |
int |
getHP()
被災者の体力を取得します. |
EntityID |
getVictimID()
被災者のEntityIDを取得します. |
クラス jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage から継承されたメソッド |
---|
equals, getBrokenness, getBuriedness, getCoodinate, getDamage, getData, getData, getDataTypeArray, getEntityIDList, getFieryness, getHP, getID, getMessageBitSize, getMessageMinimumSize, getMessageType, getRepairCost, getSendTime, getSendTime, getSupplyQuantity, getWater, getWaterPower, hashCode, isSendable, setCoorinate, setData, setData |
クラス java.lang.Object から継承されたメソッド |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public VictimInformation(int time, EntityID vicID, EntityID area, int hp, int buriedness, int damage)
また,vicIDにはCivilianのEntityIDだけではなく,救助隊(platoon)のEntityIDを指定することもできます.
time
- ステップ数vicID
- 被災者のEntityIDarea
- 被災者の存在するエリアのEntityIDhp
- 被災者の体力buriedness
- 被災者の埋没度damage
- 被災者のダメージpublic VictimInformation(int time, EntityID vicID, EntityID area, int hp, int buriedness, int damage,cor)
また,vicIDにはCivilianのEntityIDだけではなく,救助隊(platoon)のEntityIDを指定することもできます.
time
- ステップ数vicID
- 被災者のEntityIDarea
- 被災者の存在するエリアのEntityIDhp
- 被災者の体力buriedness
- 被災者の埋没度damage
- 被災者のダメージcor
- 被災者の位置座標public 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 EntityID getVictimID()
public int getHP()
public int getBuriedness()
public int getDamage()
public EntityID getAreaID()
publicgetCoodinate()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |