game.core.powers
Class Power

java.lang.Object
  extended by game.core.powers.Power

public class Power
extends java.lang.Object


Field Summary
protected  double expiry
           
(package private)  boolean received
           
private  PowerType type
           
 
Constructor Summary
Power(PowerType type)
           
 
Method Summary
static Power create()
           
 void drawSelf(java.awt.Graphics gr, int x, int y, double age)
           
 double getDuration()
           
 java.awt.Image getImage()
           
 boolean isBad()
           
 boolean isType(java.lang.String string)
           
 void receive(double age)
           
 double timeRemaining(double age)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private final PowerType type

expiry

protected double expiry

received

boolean received
Constructor Detail

Power

public Power(PowerType type)
Method Detail

create

public static Power create()

getDuration

public double getDuration()

getImage

public java.awt.Image getImage()

receive

public void receive(double age)

drawSelf

public void drawSelf(java.awt.Graphics gr,
                     int x,
                     int y,
                     double age)

timeRemaining

public double timeRemaining(double age)

isBad

public boolean isBad()

isType

public boolean isType(java.lang.String string)