cz.cuni.pogamut.MessageObjects
Class AddAmmo

java.lang.Object
  extended by cz.cuni.pogamut.MessageObjects.MessageObject
      extended by cz.cuni.pogamut.MessageObjects.AddItem
          extended by 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

Field Summary
 int ammoAmount
           
 ItemType weaponType
           
 
Fields inherited from class cz.cuni.pogamut.MessageObjects.AddItem
cls, itemID
 
Fields inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
ID, type, types, UnrealID, visible
 
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
 

Field Detail

weaponType

public ItemType weaponType

ammoAmount

public int ammoAmount
Constructor Detail

AddAmmo

public AddAmmo(int ID,
               java.lang.String UnrealID,
               int itemID,
               java.lang.String cls,
               int ammoAmount,
               ItemType weaponType)

AddAmmo

public AddAmmo()
Method Detail

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