html.setFile("castle/chamberlain/chamberlain-fortress-status.htm");
StringBuilder b = new StringBuilder(100);
for(IntObjectMap.Entry<List> entry : castle.getRelatedFortresses().entrySet())
{
NpcString type;
switch(entry.getKey())
{
case Fortress.DOMAIN:
type = NpcString.DOMAIN_FORTRESS;
break;
case Fortress.BOUNDARY:
type = NpcString.BOUNDARY_FORTRESS;
break;
default:
continue;
}
@SuppressWarnings("unchecked")
List<Fortress> fortresses = entry.getValue();
for(Fortress fort : fortresses)
{
b.append(HtmlUtils.htmlResidenceName(fort.getId())).append(" (").append(HtmlUtils.htmlNpcString(type)).append(") : <font color=\"00FFFF\">");
NpcString contractType;
switch(fort.getContractState())
{
case Fortress.NOT_DECIDED:
contractType = NpcString.NONPARTISAN;
break;