Package smack.down.ninjas

Source Code of smack.down.ninjas.Assassination

package smack.down.ninjas;

import smack.down.Action;
import smack.down.Callback;
import smack.down.Effect;
import smack.down.Faction;
import smack.down.Minion;

public class Assassination extends Action {
 
  public Assassination() {
    super("Assassination", Faction.Ninjas, Target.Minion);
  }
 
  public void play(final Minion minion, Callback callback) {
    Effect killAtEndOfTurn = new Effect() {
      public void expire() {
        minion.destroy();
      }
    };
   
    getOwner().expireAtNextTurnEnd(killAtEndOfTurn);
  }
}
TOP

Related Classes of smack.down.ninjas.Assassination

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.