Package smack.down.pirates

Source Code of smack.down.pirates.Cannon

package smack.down.pirates;

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

public class Cannon extends Action {
 
  public Cannon() {
    super("Cannon", Faction.Pirates, Target.General);
  }
 
  public void play(Callback callback) {
    Minion target = callback.selectMinionInPlay(2);
   
    if (target == null)
      return;
   
    target.destroy();
   
    target = callback.selectMinionInPlay(2);
   
    if (target == null)
      return;
   
    target.destroy();
  }
}
TOP

Related Classes of smack.down.pirates.Cannon

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.