cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor
Class AmmoDescriptor

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.ItemDescriptor
      extended by cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.AmmoDescriptor

public class AmmoDescriptor
extends ItemDescriptor

Ammo desciptor describes the characteristics of an ammunition.


Constructor Summary
AmmoDescriptor()
           
 
Method Summary
 java.lang.String getPriAmmoType()
          The class of this ammunition type.
 double getPriDamage()
          Damage of the projectile.
 double getPriDamageRadius()
          If the projectile does splash damage, the value here won't be zero and will specify the radius of the splash damage in ut units.
 java.lang.String getPriDamageType()
          Class of this ammunitions damage type.
 int getPriInitialAmount()
          Initial amount of ammunition.
 double getPriLifeSpan()
          Life span of this projectile.
 int getPriMaxAmount()
          Maximum amount of this ammunition we can hold in our inventory.
 double getPriMaxEffectDistance()
          Maximum effective distance of the projectile.
 double getPriMaxRange()
          Maximum firing range.
 double getPriMaxSpeed()
          Maximum possible speed of this projectile.
 java.lang.String getPriProjType()
          Holds the class of the projectile spawn by this ammo type.
 double getPriSpeed()
          Default speed of the projectile - probably the projectile has this speed when fired.
 double getPriTossZ()
          Probably the amount of speed added to Z velocity vector when this projectile is fired.
 boolean isPriAlwaysGibs()
          If this damage will kill us instantly.
 boolean isPriArmorStops()
          If this damage can be stopped by an armor.
 boolean isPriDetonatesGoop()
          If this damage can detonate goop created by bio rifle (not sure).
 boolean isPriExtraMomZ()
          If the hit by this damage will add some speed to the target (will "push" the target a bit).
 boolean isPriSpecial()
          If this damage is special.
 boolean isPriSuperWeapon()
          If this damage is caused by super weapon and will damage also team mates even if friendly fire is off.
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.ItemDescriptor
doReflexion, fieldToName, firstCharToUpperCase, getAmount, getInventoryType, getItemCategory, getPickupType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmmoDescriptor

public AmmoDescriptor()
Method Detail

toString

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

getPriAmmoType

public java.lang.String getPriAmmoType()
The class of this ammunition type.

Returns:
priAmmoType

getPriInitialAmount

public int getPriInitialAmount()
Initial amount of ammunition. We get this if we pick up the item for the first time.

Returns:
priInitialAmount

getPriMaxAmount

public int getPriMaxAmount()
Maximum amount of this ammunition we can hold in our inventory.

Returns:
priMaxAmount

getPriMaxRange

public double getPriMaxRange()
Maximum firing range. 0 if not limited - probably.

Returns:
priMaxRange

getPriDamageType

public java.lang.String getPriDamageType()
Class of this ammunitions damage type. If ammo is not none, then this shouldn't be none either.

Returns:
priDamageType

isPriArmorStops

public boolean isPriArmorStops()
If this damage can be stopped by an armor.

Returns:
priArmorStops

isPriAlwaysGibs

public boolean isPriAlwaysGibs()
If this damage will kill us instantly.

Returns:
priAlwaysGibs

isPriSpecial

public boolean isPriSpecial()
If this damage is special.

Returns:
priSpecial

isPriDetonatesGoop

public boolean isPriDetonatesGoop()
If this damage can detonate goop created by bio rifle (not sure).

Returns:
priDetonatesGoop

isPriSuperWeapon

public boolean isPriSuperWeapon()
If this damage is caused by super weapon and will damage also team mates even if friendly fire is off.

Returns:
priSuperWeapon

isPriExtraMomZ

public boolean isPriExtraMomZ()
If the hit by this damage will add some speed to the target (will "push" the target a bit).

Returns:
priExtraMomZ

getPriProjType

public java.lang.String getPriProjType()
Holds the class of the projectile spawn by this ammo type. If none, then the ammo does not spawn projectiles. all the info below is then not relevant and will have default values on.

Returns:
priProjType

getPriDamage

public double getPriDamage()
Damage of the projectile.

Returns:
priDamage

getPriSpeed

public double getPriSpeed()
Default speed of the projectile - probably the projectile has this speed when fired.

Returns:
priSpeed

getPriMaxSpeed

public double getPriMaxSpeed()
Maximum possible speed of this projectile.

Returns:
priMaxSpeed

getPriLifeSpan

public double getPriLifeSpan()
Life span of this projectile. How long the projectile lasts in the environment. If 0 than probably unlimited.

Returns:
priLifeSpan

getPriDamageRadius

public double getPriDamageRadius()
If the projectile does splash damage, the value here won't be zero and will specify the radius of the splash damage in ut units.

Returns:
priDamageRadius

getPriTossZ

public double getPriTossZ()
Probably the amount of speed added to Z velocity vector when this projectile is fired. In UT units.

Returns:
priTossZ

getPriMaxEffectDistance

public double getPriMaxEffectDistance()
Maximum effective distance of the projectile. Probably 0 if not limited.

Returns:
priMaxEffectDistance