title: Kotlin enum with multiple "parameter"
body: <p>For an exercise I have an enum (set by the teacher) that looks like this :</p>
  
  <pre><code>enum class Weapon(name: String, damage: Int) {
      SWORD("Sword", 12),
      AXE("Axe", 13),
      BOW("Bow", 14)
  }
  </code></pre>
  
  <p>The weapon will be an attribute of a <code>data class Player</code><br/>
  But once I set <code>player.weapon = Weapon.SWORD</code><br/>
  How do i access to the <code>name</code> or <code>damage</code> of the <code>weapon</code> ?</p>
  
  <p>I have looked on the Internet for an answer but didn't find anywhere an enum with two "parameter" (don't know how to call it) so I start wondering if this enum is possible.</p>
  
  <p>Thanks guys</p>