New SeeChunk command and cleanup of the show command.

This commit is contained in:
Olof Larsson
2011-11-24 16:27:14 +01:00
parent c43d34af79
commit e935a56ff9
4 changed files with 163 additions and 72 deletions

View File

@@ -252,6 +252,21 @@ public class Faction extends Entity implements EconomyParticipator
}
}
public Map<Rel, List<String>> getFactionTagsPerRelation()
{
Map<Rel, List<String>> ret = new HashMap<Rel, List<String>>();
for (Rel rel : Rel.values())
{
ret.put(rel, new ArrayList<String>());
}
for (Faction faction : Factions.i.get())
{
Rel relation = faction.getRelationTo(this);
ret.get(relation).add(faction.getTag(this));
}
return ret;
}
// TODO: Implement a has enough feature.
//----------------------------------------------//
// Power