|
|
@ -25,63 +25,20 @@ import java.util.HashMap; |
|
|
|
public class TrackPowerAction extends AbstractPowerAction { |
|
|
|
public class TrackPowerAction extends AbstractPowerAction { |
|
|
|
|
|
|
|
|
|
|
|
private String effectID; |
|
|
|
private String effectID; |
|
|
|
private boolean trackPlayer; |
|
|
|
|
|
|
|
private boolean trackCorpse; |
|
|
|
|
|
|
|
private boolean trackAll; |
|
|
|
|
|
|
|
private boolean trackDragon; |
|
|
|
|
|
|
|
private boolean trackGiant; |
|
|
|
|
|
|
|
private boolean trackNPC; |
|
|
|
|
|
|
|
private boolean trackUndead; |
|
|
|
|
|
|
|
private boolean trackVampire; |
|
|
|
|
|
|
|
private int maxTrack; |
|
|
|
|
|
|
|
private EffectsBase effect; |
|
|
|
private EffectsBase effect; |
|
|
|
|
|
|
|
public PowerAction powerAction; |
|
|
|
|
|
|
|
|
|
|
|
public TrackPowerAction(PowerAction powerAction, HashMap<String, EffectsBase> effects) { |
|
|
|
public TrackPowerAction(PowerAction powerAction, HashMap<String, EffectsBase> effects) { |
|
|
|
super(powerAction); |
|
|
|
super(powerAction); |
|
|
|
this.effectID = powerAction.effects.get(0).effect_id; |
|
|
|
this.effectID = powerAction.effects.get(0).effect_id; |
|
|
|
this.effect = effects.get(this.effectID); |
|
|
|
this.effect = effects.get(this.effectID); |
|
|
|
|
|
|
|
this.powerAction = powerAction; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getEffectID() { |
|
|
|
public String getEffectID() { |
|
|
|
return this.effectID; |
|
|
|
return this.effectID; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean trackPlayer() { |
|
|
|
|
|
|
|
return this.trackPlayer; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean trackCorpse() { |
|
|
|
|
|
|
|
return this.trackCorpse; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean trackAll() { |
|
|
|
|
|
|
|
return this.trackAll; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean trackDragon() { |
|
|
|
|
|
|
|
return this.trackDragon; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean trackGiant() { |
|
|
|
|
|
|
|
return this.trackGiant; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean trackNPC() { |
|
|
|
|
|
|
|
return this.trackNPC; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean trackUndead() { |
|
|
|
|
|
|
|
return this.trackUndead; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean trackVampire() { |
|
|
|
|
|
|
|
return this.trackVampire; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getMaxTrack() { |
|
|
|
|
|
|
|
return this.maxTrack; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public EffectsBase getEffect() { |
|
|
|
public EffectsBase getEffect() { |
|
|
|
return this.effect; |
|
|
|
return this.effect; |
|
|
|
} |
|
|
|
} |
|
|
|