cz.cuni.pogamut.MessageObjects
Class Ammo

java.lang.Object
  extended by cz.cuni.pogamut.MessageObjects.MessageObject
      extended by cz.cuni.pogamut.MessageObjects.Item
          extended by cz.cuni.pogamut.MessageObjects.Ammo
All Implemented Interfaces:
Visible, java.io.Serializable, java.lang.Cloneable

public class Ammo
extends Item
implements java.lang.Cloneable, java.io.Serializable

Ammo is a class that represents ammo - has special property Ammo type, which is derived from UnrealID and typesOfAmmo

See Also:
Serialized Form

Field Summary
 int ammoAmount
          how much ammo does it add
 ItemType typeOfWeapon
          which weapon is it for
 
Fields inherited from class cz.cuni.pogamut.MessageObjects.Item
amount, cls, event, EVENT_PICKUP, EVENT_SEE, humanName, location, navPoint, reachable
 
Fields inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
ID, type, types, UnrealID, visible
 
Constructor Summary
Ammo()
           
Ammo(int ID, java.lang.String UnrealID, java.lang.String cls, Triple location, boolean reachable, boolean visible, int ammoAmount, ItemType typeOfWeapon, NavPoint navPoint)
           
 
Method Summary
 java.lang.Object clone()
          clone object - for hard copying
 ItemType getAmmoType()
           
 void setAmmoType(ItemType ammoType)
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.pogamut.MessageObjects.Item
diff, hasID, isEventPickup, isEventSee, isReachable, update
 
Methods inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
equals, getID, getType, getUnrealID, getVisibility, isVisible, setID, setType, setUnrealID, setVisible
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

typeOfWeapon

public ItemType typeOfWeapon
which weapon is it for


ammoAmount

public int ammoAmount
how much ammo does it add

Constructor Detail

Ammo

public Ammo()

Ammo

public Ammo(int ID,
            java.lang.String UnrealID,
            java.lang.String cls,
            Triple location,
            boolean reachable,
            boolean visible,
            int ammoAmount,
            ItemType typeOfWeapon,
            NavPoint navPoint)
Method Detail

clone

public java.lang.Object clone()
Description copied from class: MessageObject
clone object - for hard copying

Overrides:
clone in class Item

getAmmoType

public ItemType getAmmoType()

setAmmoType

public void setAmmoType(ItemType ammoType)

toString

public java.lang.String toString()
Overrides:
toString in class Item