public class Heatup extends Object
isHot()
to check whether you should still be using your behavior/effect.
To make your heatup hot, just call heat()
.
Constructor and Description |
---|
Heatup(long cooldownMillis) |
Heatup(long cooldownTime,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes the heat...
|
long |
getRemainingTime()
How much time we still have until the object becomes cold, i.e., !
isHot() . |
void |
heat()
Force use of the effect == sets
lastUsedMillis to current time. |
boolean |
isCool()
Check whether we're cool == !
isHot() . |
boolean |
isHot()
Check whether it is still hot.
|
public Heatup(long cooldownMillis)
public Heatup(long cooldownTime, TimeUnit timeUnit)
public boolean isHot()
public void heat()
lastUsedMillis
to current time.public long getRemainingTime()
isHot()
.public void clear()
public boolean isCool()
isHot()
.Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.