Ben Edwards
enum class LootType { POTION, RING, ARMOR } class Loot(val name: String, val type: LootType, val value: Double) { }
fun main(args: Array<String>) { ... val redPotion = Loot("Red Potion", lootType.POTION, 7.5) }
August Lilleaas
LootType.POTION
A modern programming language that makes developers happier.