cz.cuni.pogamut.MessageObjects
Class Ammo
java.lang.Object
cz.cuni.pogamut.MessageObjects.MessageObject
cz.cuni.pogamut.MessageObjects.Item
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
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)
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
typeOfWeapon
public ItemType typeOfWeapon
- which weapon is it for
ammoAmount
public int ammoAmount
- how much ammo does it add
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)
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