OGS Java API Spec

ogs.items
Class ProjectileWeapon

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.core.Entity
              |
              +--ogs.core.Item
                    |
                    +--ogs.items.Weapon
                          |
                          +--ogs.items.RangedWeapon
                                |
                                +--ogs.items.ProjectileWeapon
All Implemented Interfaces:
EventListener

public class ProjectileWeapon
extends RangedWeapon

A ranged weapon that requires projectiles or other type of ammunition.


Field Summary
protected static Class projectile
          Item required by this weapon as projectile.
 
Fields inherited from class ogs.items.Weapon
BASHING, damage, damageType, EXOTIC, MARTIAL, normalThreatRange, PIERCING, SIMPLE, SLASHING, threatRange
 
Fields inherited from class ogs.core.Item
GLASS, IRON, PAPER, STONE, UNKNOWN, WOOD
 
Fields inherited from class ogs.core.Entity
currentHealth, defense, maximumHealth, size, weight
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
ProjectileWeapon()
           
 
Method Summary
static Class getProjectile()
          Determine item required by this weapon for projectiles.
 
Methods inherited from class ogs.items.RangedWeapon
getRangeIncrement
 
Methods inherited from class ogs.items.Weapon
getDamageType, getNormalThreatRange, getProficiency, getThreatRange
 
Methods inherited from class ogs.core.Item
getDensity, getHardness, getMaterial, getThickness, getWorth, setDensity, setHardness, setMaterial, setThickness, setWorth, updateHealthPoints
 
Methods inherited from class ogs.core.Entity
getCurrentHealth, getDefense, getMaximumHealth, getSize, getWeight, setCurrentHealth, setMaximumHealth, setWeight
 
Methods inherited from class ogs.support.Object
addListener, handleEvent, notifyListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projectile

protected static Class projectile
Item required by this weapon as projectile.

Constructor Detail

ProjectileWeapon

public ProjectileWeapon()
Method Detail

getProjectile

public static Class getProjectile()
Determine item required by this weapon for projectiles.

Returns:
Class of projectile item.

OGS Java API Spec