commlib.information
クラス AmbulanceTeamInformation

java.lang.Object
  上位を拡張 commlib.message.RCRSCSMessage
      上位を拡張 commlib.information.WorldInformation
          上位を拡張 commlib.information.AmbulanceTeamInformation
すべての実装されたインタフェース:
IMessage

public class AmbulanceTeamInformation
extends WorldInformation

This class represent the information of Ambulance Team.

作成者:
takefumi

コンストラクタの概要
AmbulanceTeamInformation(int time, rescuecore2.worldmodel.EntityID atID, int hp, int damage, int buriedness, rescuecore2.worldmodel.EntityID areaID)
          Constructor Create the Ambulance Team Information.
AmbulanceTeamInformation(java.util.List<java.lang.Integer> bitList, int offset, java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)
          Constructor Create the instance of this class from bit sequence.
 
メソッドの概要
 rescuecore2.worldmodel.EntityID getAmbulanceTeamID()
          Return EntityID of at.
 int getBuriedness()
          Return buriedness of the at.
 int getDamage()
          Return damage of the at.
 rescuecore2.worldmodel.EntityID getEntityID()
           
 int getHP()
          Return hp of the at.
 rescuecore2.worldmodel.EntityID getPositionID()
          Return EntityID of area that the at is standing.
 
クラス commlib.message.RCRSCSMessage から継承されたメソッド
equals, getData, getMessageBitSize, getMessageType, getSendTime, hashCode, isSendable, setData, setData
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AmbulanceTeamInformation

public AmbulanceTeamInformation(int time,
                                rescuecore2.worldmodel.EntityID atID,
                                int hp,
                                int damage,
                                int buriedness,
                                rescuecore2.worldmodel.EntityID areaID)

Constructor

Create the Ambulance Team Information.
Included data are follow.

パラメータ:
time - step num.
atID - EntityID of at.
hp - hp of the at.
damage - damage of the at.
buriedness - buriedness of the at.
areaID - EntityID of area that the at is standing.

AmbulanceTeamInformation

public AmbulanceTeamInformation(java.util.List<java.lang.Integer> bitList,
                                int offset,
                                java.util.EnumMap<DataType,java.lang.Integer> bitSizeMap)

Constructor

Create the instance of this class from bit sequence.
This method is defined for this library.

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

getAmbulanceTeamID

public rescuecore2.worldmodel.EntityID getAmbulanceTeamID()
Return EntityID of at.

戻り値:
EntityID of at.

getHP

public int getHP()
Return hp of the at.

戻り値:
hp

getDamage

public int getDamage()
Return damage of the at.

戻り値:
damage

getBuriedness

public int getBuriedness()
Return buriedness of the at.

戻り値:
buriedness

getPositionID

public rescuecore2.worldmodel.EntityID getPositionID()
Return EntityID of area that the at is standing.

戻り値:
EntityID of area

getEntityID

public rescuecore2.worldmodel.EntityID getEntityID()
定義:
クラス WorldInformation 内の getEntityID