Last active
February 12, 2019 19:35
-
-
Save Castone22/c94e939a02a8a957489ebe7071c6ad39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for CableType cableType : CableType.values(){ | |
name = cable.name; | |
voltage = cable.voltage; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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