protected long timeStarted = System.currentTimeMillis();
protected long currentTime = System.currentTimeMillis();
public EndBar()
{
barNum = 1;
}
public void act()
{
long elapsedTime = currentTime - timeStarted;
if (elapsedTime / 1000 > 1)
{
timeStarted = currentTime;
deplete();
}
}