jp.ac.nagoyau.is.ss.kishii.suntori.message.information
クラス AmbulanceTeamInformation

java.lang.Object
  上位を拡張 jp.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.AmbulanceTeamInformation
すべての実装されたインタフェース:
IMessage

public class AmbulanceTeamInformation
extends WorldInformation

救急隊の情報を表すクラスです.

作成者:
takefumi

フィールドの概要
 
クラス jp.ac.nagoyau.is.ss.kishii.suntori.message.RCRSCSMessage から継承されたフィールド
COMMON_DATA_TYPE, data, messageType
 
コンストラクタの概要
AmbulanceTeamInformation(int time, EntityID atID, int hp, int damage, int buriedness, EntityID areaID)
          コンストラクタ
救急隊情報を生成します.
AmbulanceTeamInformation(java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
          コンストラクタ
与えられたビット列からこのクラスを生成します.
 
メソッドの概要
 EntityID getAmbulanceTeamID()
          ATのIDを取得します.
 int getBuriedness()
          ATの埋没度を取得します.
 int getDatage()
          ATのダメージを取得します.
 int getHP()
          ATの体力を取得します.
 EntityID getPositionID()
          ATが現在いるエリアの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
 

コンストラクタの詳細

AmbulanceTeamInformation

public AmbulanceTeamInformation(int time,
                                EntityID atID,
                                int hp,
                                int damage,
                                int buriedness,
                                EntityID areaID)
コンストラクタ
救急隊情報を生成します.
含まれる情報は以下のものです.

パラメータ:
time - ステップ数
atID - 救急隊のID
hp - 体力
damage - ダメージ
buriedness - 埋没度
areaID - 現在いるエリア

AmbulanceTeamInformation

public AmbulanceTeamInformation(java.util.List<java.lang.Integer> bitList,
                                int offset,
                                java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
コンストラクタ
与えられたビット列からこのクラスを生成します.
このコンストラクタはシステムが使用するためのメソッドです.

パラメータ:
bitList -
offset -
bitSizeMap -
メソッドの詳細

getAmbulanceTeamID

public EntityID getAmbulanceTeamID()
ATのIDを取得します.

戻り値:
ATのID

getHP

public int getHP()
ATの体力を取得します.

戻り値:
体力

getDatage

public int getDatage()
ATのダメージを取得します.

戻り値:
ダメージ

getBuriedness

public int getBuriedness()
ATの埋没度を取得します.

戻り値:
埋没度

getPositionID

public EntityID getPositionID()
ATが現在いるエリアのEntityID

戻り値:
エリアのEntityID