cz.cuni.pogamut.MessageObjects
Class AddAmmo
java.lang.Object
cz.cuni.pogamut.MessageObjects.MessageObject
cz.cuni.pogamut.MessageObjects.AddItem
cz.cuni.pogamut.MessageObjects.AddAmmo
- All Implemented Interfaces:
- Visible, java.io.Serializable, java.lang.Cloneable
public class AddAmmo
- extends AddItem
- implements java.lang.Cloneable, java.io.Serializable
AddAmmo has ammoAmount and weapon type, it is processed in inventory according to those variables
(adds proper amount of ammo to proper weapon)
- See Also:
- Serialized Form
Constructor Summary |
AddAmmo()
|
AddAmmo(int ID,
java.lang.String UnrealID,
int itemID,
java.lang.String cls,
int ammoAmount,
ItemType weaponType)
|
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 |
weaponType
public ItemType weaponType
ammoAmount
public int ammoAmount
AddAmmo
public AddAmmo(int ID,
java.lang.String UnrealID,
int itemID,
java.lang.String cls,
int ammoAmount,
ItemType weaponType)
AddAmmo
public AddAmmo()
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