All Packages Class Hierarchy This Package Previous Next Index
Class com.loki3.cyber.pawn.Weapon
java.lang.Object
|
+----com.loki3.pa.Item
|
+----com.loki3.cyber.pawn.UnitClass
|
+----com.loki3.cyber.pawn.Weapon
- public abstract class Weapon
- extends UnitClass
This is the base class for all weapons
Weapon()
-
canFire()
- can we fire yet?
fire()
- Fire the weapon.
getAmmoSpeed()
- how fast the ammo travels per tick
getReloadSpeed()
- how many ticks between being able to fire
getReloadTime()
- how many more ticks before we can fire again
getRemainingRounds()
- total remaining rounds of ammunition
setItems(Items)
- The collection of all units in the game.
update(double)
-
Weapon
public Weapon()
fire
public abstract boolean fire()
Fire the weapon.
- Returns:
- false if the weapon can't be fired
update
public void update(double tick)
- Overrides:
- update in class com.loki3.pa.Item
getAmmoSpeed
public double getAmmoSpeed()
how fast the ammo travels per tick
getReloadSpeed
public double getReloadSpeed()
how many ticks between being able to fire
getReloadTime
public double getReloadTime()
how many more ticks before we can fire again
getRemainingRounds
public int getRemainingRounds()
total remaining rounds of ammunition
canFire
public boolean canFire()
can we fire yet?
setItems
public void setItems(com.loki3.pa.Items items)
The collection of all units in the game.
Set so we can add ammo to this list.
All Packages Class Hierarchy This Package Previous Next Index