@Override public void resetInfos() { _id.setValue(""); _type.setValue(""); _position.setValue(""); _team.setValue(""); _heading.setValue(""); }
@Override public void update() { WarAgent a = debugToolsPnl.getSelectedAgent(); if (a == null) { setVisible(false); } else { setVisible(true); _id.setValue(String.valueOf(a.getID())); _type.setValue(a.getClass().getSimpleName()); _position.setValue( "(" + doubleFormatter.format(a.getX()) + "; " + doubleFormatter.format(a.getY()) + ")"); _team.setValue(a.getTeam().getName()); _heading.setValue(doubleFormatter.format(a.getHeading())); _aliveAgent.update(); _controllableAgent.update(); _movableAgent.update(); _creatorAgent.update(); _projectile.update(); } }
public void setInfoLabelText(String text) { infoLabel.setText(text); }