if (isMD) {
buffer.append(Messages.getString("BoardView1.md")); //$NON-NLS-1$
}
tipStrings[0] = buffer.toString();
GunEmplacement ge = null;
if (entity instanceof GunEmplacement) {
ge = (GunEmplacement) entity;
}
Aero a = null;
if(entity instanceof Aero) {
a = (Aero) entity;
}
buffer = new StringBuffer();
if ((ge == null) && (a == null)) {
buffer.append(Messages.getString("BoardView1.move")) //$NON-NLS-1$
.append(entity.getMovementAbbr(entity.moved)).append(
":") //$NON-NLS-1$
.append(entity.delta_distance).append(" (+") //$NON-NLS-1$
.append(
Compute.getTargetMovementModifier(game,
entity.getId()).getValue())
.append(");") //$NON-NLS-1$
.append(Messages.getString("BoardView1.Heat")) //$NON-NLS-1$
.append(entity.heat);
if (entity.isCharging()) {
buffer.append(" ") //$NON-NLS-1$
.append(Messages.getString("BoardView1.charge1")); //$NON-NLS-1$
}
if (entity.isMakingDfa()) {
buffer.append(" ") //$NON-NLS-1$
.append(Messages.getString("BoardBiew1.DFA1")); //$NON-NLS-1$
}
} else if (ge == null) {
buffer.append( Messages.getString("BoardView1.move") ) //$NON-NLS-1$
.append( entity.getMovementAbbr(entity.moved) )
.append( ":" ) //$NON-NLS-1$
.append( entity.delta_distance )
.append( Messages.getString("BoardView1.Heat") ) //$NON-NLS-1$
.append( entity.heat );
if (entity.isCharging()) {
buffer.append(" ") //$NON-NLS-1$
.append( Messages.getString("BoardView1.charge1")); //$NON-NLS-1$
}
} else {
if (ge.hasTurret() && ge.isTurretLocked()) {
buffer
.append(Messages
.getString("BoardView1.TurretLocked"));
if (ge.getFirstWeapon() == -1) {
buffer.append(",");
buffer.append(Messages
.getString("BoardView1.WeaponsDestroyed"));
}
} else if (ge.getFirstWeapon() == -1) {
buffer.append(Messages
.getString("BoardView1.WeaponsDestroyed"));
} else {
buffer.append(Messages.getString("BoardView1.Operational"));
}
}
if (entity.isDone()) {
buffer.append(" (").append(
Messages.getString("BoardView1.done")).append(")");
}
tipStrings[1] = buffer.toString();
buffer = new StringBuffer();
if (ge == null) {
buffer.append(Messages.getString("BoardView1.Armor")) //$NON-NLS-1$
.append(entity.getTotalArmor()).append(
Messages.getString("BoardView1.internal")) //$NON-NLS-1$
.append(entity.getTotalInternal());
} else {
buffer.append(Messages.getString("BoardView1.cf")) //$NON-NLS-1$
.append(ge.getCurrentCF()).append(
Messages.getString("BoardView1.turretArmor")) //$NON-NLS-1$
.append(ge.getCurrentTurretArmor());
}
tipStrings[2] = buffer.toString();
return tipStrings;
}