game.core.powers
Class Power
java.lang.Object
game.core.powers.Power
public class Power
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
private final PowerType type
expiry
protected double expiry
received
boolean received
Power
public Power(PowerType type)
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)