Esempio n. 1
0
  private void sendAlive(Channel channel) {
    if (vs.view.length < 2) return;

    try {
      Alive alive = new Alive(channel, Direction.DOWN, this, vs.group, vs.id);
      alive.go();
    } catch (AppiaEventException ex) {
      ex.printStackTrace();
      log.warn("Impossible to send alive");
    }
  }
Esempio n. 2
0
 public void setHeight(double height) {
   super.setHeight(height);
   manaBar.setHeight((int) (height * 0.25));
 }
Esempio n. 3
0
 public void setWidth(double width) {
   super.setWidth(width);
   manaBar.setWidth(width);
 }
Esempio n. 4
0
 @Override
 public void die() {
   super.die();
   owner.setRespawnTimer(2);
   Alive.allAlives.remove(this);
 }
Esempio n. 5
0
 @Override
 public void trashComponents() {
   super.trashComponents();
   manaBar.active = false;
   engine.visibleObjects.remove(manaBar);
 }
Esempio n. 6
0
 protected void updateComponentLocation() {
   super.updateComponentLocation();
   manaBar.setLocation(healthBar.getLocation());
   manaBar.setWidth(getWidth() * getRatio("mana"));
   healthBar.changeLocation(0, -healthBar.getHeight());
 }