-
Notifications
You must be signed in to change notification settings - Fork 783
Code Templates
NorthFury edited this page May 23, 2012
·
7 revisions
class ${effectName newVarName default="OneShot"}Effect extends OneShotEffect<${effectName}Effect> {
public ${effectName}Effect() {
super(Outcome.Benefit);
this.staticText = "${selection}${cursor}";
}
public ${effectName}Effect(final ${effectName}Effect effect) {
super(effect);
}
@Override
public ${effectName}Effect copy() {
return new ${effectName}Effect(this);
}
@Override
public boolean apply(Game game, Ability source) {
return false;
}
}
class ${abilityName default="New"}TriggeredAbility extends TriggeredAbilityImpl<${abilityName}TriggeredAbility> {
public ${abilityName}TriggeredAbility() {
super(Zone.BATTLEFIELD, null, false);
}
public ${abilityName}TriggeredAbility(final ${abilityName}TriggeredAbility ability) {
super(ability);
}
@Override
public ${abilityName}TriggeredAbility copy() {
return new ${abilityName}TriggeredAbility(this);
}
@Override
public boolean checkTrigger(GameEvent event, Game game) {
return false;
}
@Override
public String getRule() {
return "${cursor}" + super.getRule();
}
}