@Override
public void draw(GameState state, Graphics2D gr)
{
	if (collected)
	{
		int widthPercentage = (int)(AsteroidsGame.WIDTH*0.2 - AsteroidsGame.WIDTH * 0.2 * timePassed/duration);
		Rectangle2D lifeBar = new Rectangle2D.Float((int)(AsteroidsGame.WIDTH * 0.4), (int)(AsteroidsGame.HEIGHT * 0.05), widthPercentage, 10);
		Rectangle2D lifeBarBorder = new Rectangle2D.Float((int)(AsteroidsGame.WIDTH * 0.4), (int)(AsteroidsGame.HEIGHT * 0.05), (int)(AsteroidsGame.WIDTH * 0.2), 10);
		gr.setColor(Color.GRAY);
		gr.draw(lifeBarBorder);
		gr.fill(lifeBarBorder);
		gr.setColor(Color.WHITE);
		gr.draw(lifeBar);
		gr.fill(lifeBar);
		gr.setFont(new Font("Arial", Font.BOLD, 16));
		gr.drawString(getName(), (float)(AsteroidsGame.WIDTH * 0.43), (float)(AsteroidsGame.HEIGHT * 0.04));
	}
	else
	{
		Ellipse2D pickup = new Ellipse2D.Float((pos.x-size/2), (pos.y-size/2), size, size);
		
		switch (type)
		{
		case 1 : gr.setColor(Color.RED); break;
		case 2 : gr.setColor(Color.GREEN); break;
		case 3 : gr.setColor(Color.BLUE); break;
		case 4 : gr.setColor(Color.WHITE); break;
		}
		
		gr.draw(pickup);
		gr.fill(pickup);
	}
}