Пример #1
0
 /**
  * Get a template for the current most hated nation, depending whether the requestor has contacted
  * this settlement.
  *
  * @param contacted The contact status.
  * @return A <code>StringTemplate</code> describing the perceived most hated nation.
  */
 public StringTemplate getMostHatedLabel(boolean contacted) {
   return (contacted)
       ? ((mostHated == null)
           ? StringTemplate.key("model.indianSettlement.mostHatedNone")
           : mostHated.getNationName())
       : StringTemplate.key("model.indianSettlement.mostHatedUnknown");
 }