Skip to content

Instantly share code, notes, and snippets.

@Castone22
Last active February 12, 2019 19:35
Show Gist options
  • Save Castone22/c94e939a02a8a957489ebe7071c6ad39 to your computer and use it in GitHub Desktop.
Save Castone22/c94e939a02a8a957489ebe7071c6ad39 to your computer and use it in GitHub Desktop.
for CableType cableType : CableType.values(){
name = cable.name;
voltage = cable.voltage;
}
public enum CableType {
SHODDY_LOW_VOLTAGE_CABLE("Shoddy Low Voltage Cable", "Not ideal, but it gets the job done", LVO, LVP(), 1.95f)
private CableType(name, description, voltage, power, color){
this.name = name;
this.description = description;
this.voltage = voltage;
this.power = power;
this.color = color;
}
}
public enum Quality{
SHODDY("Shoddy", "Not ideal, but it gets the job done.", 1),
NORMAL("Normal", "Seems average.", 2),
PERFECT("Perfect", "The result of meticulous crafting", 4);
private Quality(name, multiplier, image){
this.name = name;
this.multipier = multiplier;
this.image = "cable/" + name + ".jpg";
}
}
public enum Tier{
LOW("Low", LVO, LVP(), 1.95f),
MEDIUM("Medium", MVO, MVP(), 1.95f),
HIGH("High", HVO, HVP(), 1.95f),
VERY_HIGH("Very High", VHVO, VHVP(), 1.95f);
private Tier(name, multiplier, image, color){
this.name = name;
this.voltage = voltage;
this.power = power;
this.color = color;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment