* @throws InterruptedException
* @throws IOException
*/
public static void main(String[] args) {
YAGW2APIArenanet.INSTANCE.setCurrentLocale(Locale.getDefault());
final IWVWWrapper apiWrapper = YAGW2APIWrapper.INSTANCE.getWVWWrapper();
final IWVWAnalyzer analyzer = YAGW2APIAnalyzer.getAnalyzer();
YAGW2APIAnalyzerPersistence.getDefaultEM(); // startup db connection
final MainWindow mainWindow = new MainWindow();
try {
mainWindow.setVisible(true);
// start the api wrapper
apiWrapper.start();
mainWindow.wireUp(apiWrapper);
// wire everything up
apiWrapper.registerWVWMapListener(analyzer);
apiWrapper.registerWVWMatchListener(analyzer);
} catch (Exception e) {
LOGGER.fatal("Uncought exception while running " + Main.class.getName() + "#main(String[])", e);
}
final IAnchorman anchorman = YAGW2APIAnchorman.INSTANCE.getAnchorman();