Java API Wrapper: Yet Another GW2 API
I’ll give you some example how my api works:
final IWVWWrapper apiWrapper = YAGW2APICore.getWVWWrapper();
apiWrapper.registerWVWMapListener(new IWVWMapListener() {
@Override
public void notifyAboutObjectiveEndOfBuffEvent(IWVWObjectiveEndOfBuffEvent event) {
// TODO Auto-generated method stub
}
@Override
public void notifyAboutObjectiveCapturedEvent(IWVWObjectiveCaptureEvent event) {
// TODO Auto-generated method stub
}
@Override
public void notifyAboutChangedMapScoreEvent(IWVWMapScoresChangedEvent event) {
// TODO Auto-generated method stub
}
});
apiWrapper.registerWVWMatchListener(new IWVWMatchListener() {
@Override
public void notifyAboutMatchScoreChangedEvent(IWVWMatchScoresChangedEvent event) {
// TODO Auto-generated method stub
}
});
apiWrapper.start();
This is all you got to do do gain information about any wvw change
You can also register for events of only a subset of matches or maps…
And btw. i’d like to have some sourcecode-bbcode for this forum !!!