Package net.sphene.goim.games.adapter

Source Code of net.sphene.goim.games.adapter.MMOAdapter

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;
  }
}
TOP

Related Classes of net.sphene.goim.games.adapter.MMOAdapter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.