Adding format name to table.

This commit is contained in:
marcins78@gmail.com
2011-10-05 11:16:59 +00:00
parent a4492bf532
commit d4df9986e5

View File

@@ -42,16 +42,18 @@ public class HallServer extends AbstractServer {
_collectionDao = collectionDao;
_chatServer.createChatRoom("Game Hall");
_supportedFormatNames.put("fotr_block", "FotR Block");
_supportedFormats.put("fotr_block", new FotRBlockFormat(_lotroServer.getLotroCardBlueprintLibrary()));
_formatCollectionIds.put("fotr_block", "default");
addFormat("fotr_block", "Fellowship block", "default", new FotRBlockFormat(_lotroServer.getLotroCardBlueprintLibrary()));
if (test) {
_supportedFormatNames.put("m_fotr_block", "Modified FotR Block");
_supportedFormats.put("m_fotr_block", new ModifiedFotRBlockFormat(_lotroServer.getLotroCardBlueprintLibrary()));
_formatCollectionIds.put("m_fotr_block", "default");
addFormat("m_fotr_block", "Modified Fellowship block", "default", new ModifiedFotRBlockFormat(_lotroServer.getLotroCardBlueprintLibrary()));
}
}
private void addFormat(String formatCode, String formatName, String formatCollectionId, LotroFormat format) {
_supportedFormatNames.put(formatCode, formatName);
_formatCollectionIds.put(formatCode, formatCollectionId);
_supportedFormats.put(formatCode, format);
}
public int getTablesCount() {
return _awaitingTables.size() + _runningTables.size();
}