cz.cuni.pogamut.MessageObjects
Class AddHealth
java.lang.Object
cz.cuni.pogamut.MessageObjects.MessageObject
cz.cuni.pogamut.MessageObjects.AddItem
cz.cuni.pogamut.MessageObjects.AddHealth
- All Implemented Interfaces:
- Visible, java.io.Serializable, java.lang.Cloneable
public class AddHealth
- extends AddItem
- implements java.lang.Cloneable, java.io.Serializable
AddHealth has three extra variables:
- type - e. g. HealthVial, MedKit
- strenght - 5 for HealthVial, 25 for MedKits
- boostable - whether agent's heath can exceed limit of 100 points (true for HealthVials)
- See Also:
- Serialized Form
Constructor Summary |
AddHealth()
|
AddHealth(int ID,
java.lang.String UnrealID,
int itemID,
java.lang.String cls,
int strenght,
ItemType typeOfHealth,
boolean boostable)
|
Method Summary |
java.lang.Object |
clone()
clone object - for hard copying |
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.pogamut.MessageObjects.MessageObject |
diff, equals, getID, getType, getUnrealID, getVisibility, hasID, isVisible, setID, setType, setUnrealID, setVisible, update |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
strength
public int strength
typeOfHealth
public ItemType typeOfHealth
boostable
public boolean boostable
AddHealth
public AddHealth(int ID,
java.lang.String UnrealID,
int itemID,
java.lang.String cls,
int strenght,
ItemType typeOfHealth,
boolean boostable)
AddHealth
public AddHealth()
clone
public java.lang.Object clone()
- Description copied from class:
MessageObject
- clone object - for hard copying
- Overrides:
clone
in class AddItem
toString
public java.lang.String toString()
- Overrides:
toString
in class AddItem