public class UniversalEggGroup extends BasicEggGroup
BasicEggGroup
that accepts all other egg groups as a partner except the
UndiscoveredEggGroup
index, name
Constructor and Description |
---|
UniversalEggGroup() |
UniversalEggGroup(int index,
java.lang.String name)
Basic constructor taking the index and the name
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBreed(Gender first,
Gender second)
Checks if the two
Gender |
boolean |
canBreedWith(EggGroup other)
Checks if the other egg group can breed with this egg group
Make sure it is consistent in both directions (i.e.
|
equals, hashCode
canBreedWith, canBreedWith, getIndex, getKey, getTranslationKey
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLocalizedName, getTranslatedName
public UniversalEggGroup(int index, java.lang.String name)
index
- The index of the egg groupname
- The name of the egg grouppublic UniversalEggGroup()
public boolean canBreed(Gender first, Gender second)
EggGroup
Gender
canBreed
in interface EggGroup
canBreed
in class AbstractEggGroup
first
- The first gendersecond
- The second genderpublic boolean canBreedWith(EggGroup other)
EggGroup
canBreedWith
in interface EggGroup
canBreedWith
in class BasicEggGroup
other
- The other egg group to check