Package org.jpokemon.interaction.actions

Source Code of org.jpokemon.interaction.actions.DresserAction

package org.jpokemon.interaction.actions;

import org.jpokemon.extra.DresserActivity;
import org.jpokemon.interaction.Action;
import org.jpokemon.interaction.ActionFactory;
import org.jpokemon.server.PlayerManager;
import org.jpokemon.server.ServiceException;
import org.jpokemon.trainer.Player;

public class DresserActionFactory implements ActionFactory {
  @Override
  public Action buildAction(String options) {
    return new DresserAction();
  }
}

class DresserAction implements Action {
  @Override
  public void execute(Player player) throws ServiceException {
    PlayerManager.addActivity(player, new DresserActivity());
  }
}
TOP

Related Classes of org.jpokemon.interaction.actions.DresserAction

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.