MapDamageTypeDataSpikes
in package
implements
MapDamageTypeData
Data associated with mapDamageType value MapDamageType::SPIKES
Table of Contents
Interfaces
- MapDamageTypeData
- Data associated with different values of the `mapDamageType` field.
Properties
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : MapDamageTypeDataSpikes
- Deserializes an instance of `MapDamageTypeDataSpikes` from the provided `EoReader`.
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getHp() : int
- getHpDamage() : int
- getMaxHp() : int
- serialize() : void
- Serializes an instance of `MapDamageTypeDataSpikes` to the provided `EoWriter`.
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setHp() : void
- setHpDamage() : void
- setMaxHp() : void
Properties
$byteSize
private
int
$byteSize
= 0
$hp
private
int
$hp
$hpDamage
private
int
$hpDamage
$maxHp
private
int
$maxHp
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `MapDamageTypeDataSpikes` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : MapDamageTypeDataSpikes
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
MapDamageTypeDataSpikes —The deserialized data.
getByteSize()
Returns the size of the data that this was deserialized from.
public
getByteSize() : int
Return values
int —The size of the data that this was deserialized from.
getHp()
public
getHp() : int
Return values
intgetHpDamage()
public
getHpDamage() : int
Return values
intgetMaxHp()
public
getMaxHp() : int
Return values
intserialize()
Serializes an instance of `MapDamageTypeDataSpikes` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, MapDamageTypeDataSpikes $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : MapDamageTypeDataSpikes
-
The data to serialize.
setByteSize()
Sets the size of the data that this was deserialized from.
public
setByteSize(int $byteSize) : void
Parameters
- $byteSize : int
-
The size of the data that this was deserialized from.
setHp()
public
setHp(int $hp) : void
Parameters
- $hp : int
setHpDamage()
public
setHpDamage(int $hpDamage) : void
Parameters
- $hpDamage : int
setMaxHp()
public
setMaxHp(int $maxHp) : void
Parameters
- $maxHp : int