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"); } }
public void setHeight(double height) { super.setHeight(height); manaBar.setHeight((int) (height * 0.25)); }
public void setWidth(double width) { super.setWidth(width); manaBar.setWidth(width); }
@Override public void die() { super.die(); owner.setRespawnTimer(2); Alive.allAlives.remove(this); }
@Override public void trashComponents() { super.trashComponents(); manaBar.active = false; engine.visibleObjects.remove(manaBar); }
protected void updateComponentLocation() { super.updateComponentLocation(); manaBar.setLocation(healthBar.getLocation()); manaBar.setWidth(getWidth() * getRatio("mana")); healthBar.changeLocation(0, -healthBar.getHeight()); }