renamed gender class to pronoun class

This commit is contained in:
Evan Kranzler 2022-01-27 20:36:53 -05:00
parent 47bbb70675
commit 6eda309765
10 changed files with 57 additions and 49 deletions

View file

@ -1,25 +0,0 @@
package mage.abilities;
/**
* Created by IGOUDT on 5-3-2017.
*/
public enum Gender {
MALE("his", "him"), FEMALE("her", "her"), NEUTRAL("its", "it");
String personalPronoun;
String possesivePronoun;
Gender(String possessive, String personal) {
personalPronoun = personal;
possesivePronoun = possessive;
}
public String getPersonalPronoun() {
return personalPronoun;
}
public String getPossesivePronoun() {
return possesivePronoun;
}
}

View file

@ -0,0 +1,33 @@
package mage.abilities;
/**
* Created by IGOUDT on 5-3-2017.
*/
public enum Pronoun {
HE("he", "him", "his"),
SHE("she", "her", "her"),
THEY("they", "them", "their"),
IT("it", "it", "its");
private final String subjective;
private final String objective;
private final String possessive;
Pronoun(String subjective, String objective, String possessive) {
this.subjective = subjective;
this.objective = objective;
this.possessive = possessive;
}
public String getSubjective() {
return subjective;
}
public String getObjective() {
return objective;
}
public String getPossessive() {
return possessive;
}
}

View file

@ -1,7 +1,7 @@
package mage.abilities.effects.common;
import mage.abilities.Ability;
import mage.abilities.Gender;
import mage.abilities.Pronoun;
import mage.abilities.effects.ContinuousEffect;
import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect;
@ -22,28 +22,28 @@ public class ExileAndReturnTransformedSourceEffect extends OneShotEffect {
protected boolean returnUnderYourControl;
public ExileAndReturnTransformedSourceEffect() {
this(Gender.NEUTRAL);
this(Pronoun.IT);
}
public ExileAndReturnTransformedSourceEffect(Gender gender) {
this(gender, null);
public ExileAndReturnTransformedSourceEffect(Pronoun pronoun) {
this(pronoun, null);
}
public ExileAndReturnTransformedSourceEffect(Gender gender, Effect additionalEffect) {
this(gender, additionalEffect, false);
public ExileAndReturnTransformedSourceEffect(Pronoun pronoun, Effect additionalEffect) {
this(pronoun, additionalEffect, false);
}
/**
* @param gender
* @param pronoun
* @param additionalEffect that effect is applies as source is exiled
* @param returnUnderYourControl return under your or owner control
*/
public ExileAndReturnTransformedSourceEffect(Gender gender, Effect additionalEffect, boolean returnUnderYourControl) {
public ExileAndReturnTransformedSourceEffect(Pronoun pronoun, Effect additionalEffect, boolean returnUnderYourControl) {
super(Outcome.Benefit);
this.additionalEffect = additionalEffect;
this.returnUnderYourControl = returnUnderYourControl;
this.staticText = "exile {this}, then return " + gender.getPersonalPronoun()
+ " to the battlefield transformed under " + gender.getPossesivePronoun()
this.staticText = "exile {this}, then return " + pronoun.getObjective()
+ " to the battlefield transformed under " + pronoun.getPossessive()
+ " " + (this.returnUnderYourControl ? "your" : "owner's") + " control";
}