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


Constructor Index

 o Weapon()
 

Method Index

 o canFire()
can we fire yet?
 o fire()
Fire the weapon.
 o getAmmoSpeed()
how fast the ammo travels per tick
 o getReloadSpeed()
how many ticks between being able to fire
 o getReloadTime()
how many more ticks before we can fire again
 o getRemainingRounds()
total remaining rounds of ammunition
 o setItems(Items)
The collection of all units in the game.
 o update(double)
 

Constructor Detail

 o Weapon
public Weapon()

Method Detail

 o fire
public abstract boolean fire()
          Fire the weapon.
Returns:
false if the weapon can't be fired
 o update
public void update(double tick)
Overrides:
update in class com.loki3.pa.Item
 o getAmmoSpeed
public double getAmmoSpeed()
          how fast the ammo travels per tick
 o getReloadSpeed
public double getReloadSpeed()
          how many ticks between being able to fire
 o getReloadTime
public double getReloadTime()
          how many more ticks before we can fire again
 o getRemainingRounds
public int getRemainingRounds()
          total remaining rounds of ammunition
 o canFire
public boolean canFire()
          can we fire yet?
 o 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