2016-11-17 05:45:04 +01:00
|
|
|
package com.minelittlepony;
|
2015-12-09 04:14:42 +01:00
|
|
|
|
2018-04-24 14:55:32 +02:00
|
|
|
import com.minelittlepony.model.PlayerModels;
|
|
|
|
|
2015-12-09 04:14:42 +01:00
|
|
|
public enum PonyRace {
|
2017-06-13 05:55:50 +02:00
|
|
|
|
2018-04-24 14:55:32 +02:00
|
|
|
HUMAN(PlayerModels.HUMAN, false, false),
|
|
|
|
EARTH(PlayerModels.PONY,false, false),
|
|
|
|
PEGASUS(PlayerModels.PONY, true, false),
|
|
|
|
UNICORN(PlayerModels.PONY, false, true),
|
|
|
|
ALICORN(PlayerModels.PONY, true, true),
|
|
|
|
CHANGELING(PlayerModels.PONY, true, true),
|
|
|
|
ZEBRA(PlayerModels.PONY, false, false),
|
|
|
|
REFORMED_CHANGELING(PlayerModels.PONY, true, true),
|
|
|
|
GRIFFIN(PlayerModels.PONY, true, false),
|
|
|
|
HIPPOGRIFF(PlayerModels.PONY, true, false);
|
|
|
|
|
|
|
|
private boolean wings, horn;
|
|
|
|
|
|
|
|
private PlayerModels model;
|
|
|
|
|
|
|
|
PonyRace(PlayerModels model, boolean wings, boolean horn) {
|
2015-12-09 04:14:42 +01:00
|
|
|
this.wings = wings;
|
|
|
|
this.horn = horn;
|
2018-04-24 14:55:32 +02:00
|
|
|
this.model = model;
|
2015-12-09 04:14:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean hasHorn() {
|
|
|
|
return horn;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean hasWings() {
|
|
|
|
return wings;
|
|
|
|
}
|
2018-04-24 14:55:32 +02:00
|
|
|
|
|
|
|
public boolean isHuman() {
|
|
|
|
return this == HUMAN;
|
|
|
|
}
|
|
|
|
|
|
|
|
public PlayerModels getModel() {
|
|
|
|
return model;
|
|
|
|
}
|
|
|
|
|
|
|
|
public PonyRace getEffectiveRace(PonyLevel level) {
|
|
|
|
if (level == PonyLevel.HUMANS) return HUMAN;
|
|
|
|
return this;
|
|
|
|
}
|
2015-12-09 04:14:42 +01:00
|
|
|
}
|