0.7f));
int heightLife = 10;
int yLife = HEIGHT - HEIGHT_HEALTH_BAR;
int widthLife = WIDTH;
BarElement physicalBar = new BarElement(Color.RED, Color.GREEN);
BarElement stunBar = new BarElement(Color.RED, Color.BLUE);
float physical = character.getPhysicalPoint().floatValue();
float physicalDamage = character.getPhysicalDamage().floatValue();
float probPhysical = 1 - (physicalDamage / physical);
float stun = character.getStunPoint().floatValue();
float stunDamage = character.getStunDamage().floatValue();
float probStun = 1 - (stunDamage / stun);
physicalBar.drawBar(g2, 0, yLife, heightLife, widthLife, probPhysical);
stunBar.drawBar(g2, 0, yLife - heightLife, heightLife, widthLife,
probStun);
}