package net.sphene.goim.games.adapter;
import net.sphene.goim.rcp.beans.GOIMGameItem;
import net.sphene.goim.rcp.extensionpoints.GameAdapterWithRegistryAutoDetection;
import net.sphene.goim.rcp.extensionpoints.GameExtensionPoint.GameExtensionProxy;
/**
* Adapter for MMOs where no choice of server is available. And the information
* that the user is playing is enough.
* @author kahless
*
*/
public abstract class MMOAdapter extends GameAdapterWithRegistryAutoDetection {
@Override
public String getStatusString(GOIMGameItem game) {
return game.retrieveExtensionProxy().name;
}
@Override
public String getTooltipText(GOIMGameItem game, IGameExtension gameEx) {
GameExtensionProxy proxy = gameEx.getGameExtension();
return proxy.name;
}
}