2018-04-25 13:02:10 +02:00
|
|
|
package com.minelittlepony.pony.data;
|
2015-12-09 04:14:42 +01:00
|
|
|
|
2018-04-25 16:40:47 +02:00
|
|
|
import com.minelittlepony.model.player.PlayerModels;
|
2018-04-24 14:55:32 +02:00
|
|
|
|
2018-04-25 13:00:18 +02:00
|
|
|
public enum PonyRace implements ITriggerPixelMapped<PonyRace> {
|
2017-06-13 05:55:50 +02:00
|
|
|
|
2018-04-25 13:00:18 +02:00
|
|
|
HUMAN(0, PlayerModels.HUMAN, false, false),
|
|
|
|
EARTH(0xf9b131, PlayerModels.PONY,false, false),
|
|
|
|
PEGASUS(0x88caf0, PlayerModels.PONY, true, false),
|
|
|
|
UNICORN(0xd19fe4, PlayerModels.PONY, false, true),
|
|
|
|
ALICORN(0xfef9fc, PlayerModels.PONY, true, true),
|
|
|
|
CHANGELING(0x282b29, PlayerModels.PONY, true, true),
|
|
|
|
ZEBRA(0xd0cccf, PlayerModels.PONY, false, false),
|
|
|
|
REFORMED_CHANGELING(0xcaed5a, PlayerModels.PONY, true, true),
|
|
|
|
GRIFFIN(0xae9145, PlayerModels.PONY, true, false),
|
|
|
|
HIPPOGRIFF(0xd6ddac, PlayerModels.PONY, true, false);
|
2018-04-24 14:55:32 +02:00
|
|
|
|
|
|
|
private boolean wings, horn;
|
|
|
|
|
2018-04-25 13:00:18 +02:00
|
|
|
private int triggerPixel;
|
|
|
|
|
2018-04-24 14:55:32 +02:00
|
|
|
private PlayerModels model;
|
|
|
|
|
2018-04-25 13:00:18 +02:00
|
|
|
PonyRace(int triggerPixel, PlayerModels model, boolean wings, boolean horn) {
|
|
|
|
this.triggerPixel = triggerPixel;
|
|
|
|
|
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;
|
|
|
|
}
|
2018-04-25 13:00:18 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getTriggerPixel() {
|
|
|
|
return triggerPixel;
|
|
|
|
}
|
2015-12-09 04:14:42 +01:00
|
|
|
}
|