Beispiel #1
0
 @Override
 void setMaxHealth(int max) {
   int actual = (int) (max - getHealth());
   maxHealth.set(actual);
   modifyHealth(max - getHealth());
   healthBar.maxHealth = actual;
 }
Beispiel #2
0
 @Override
 public void draw(Graphics2D g, ViewRect rect) {
   super.draw(g, rect);
   healthBar.draw(g, rect);
 }