title: Swift - Subclass an Enum (or something to that effect)
body: <p>I want to do something like this...</p>
  
  <pre><code>enum SpriteFrames:Int {
  
      case N
      case NE
      case E
      case SE
      case S
      case SW
      case W
      case NW
  }
  
  enum DroidSpriteFramesIdle:Int {
  
      var image:String {
          switch self {
          case N:
              return "droid_n"
          case NE:
              return "droid_ne"
          case E:
              return "droid_e"
          case SE:
              return "droid_se"
          case S:
              return "droid_s"
          case SW:
              return "droid_sw"
          case W:
              return "droid_w"
          case NW:
              return "droid_nw"
          }
      }
  
  }
  enum DroidSpriteFramesMove:Int {
  
      var image:String {
          switch self {
          case N:
              return "droid_move_n"
          case NE:
              return "droid_move_ne"
          case E:
              return "droid_move_e"
          case SE:
              return "droid_move_se"
          case S:
              return "droid_move_s"
          case SW:
              return "droid_move_sw"
          case W:
              return "droid_move_w"
          case NW:
              return "droid_move_nw"
          }
      }
  
  }
  </code></pre>
  
  <p>...where <code>DroidSpriteFramesIdle</code> and <code>DroidSpriteFramesMove</code> subclass <code>SpriteFrames</code>, or conform to it as a protocol or something to that effect. Basically, I want to have a lot of Enums that all have the same list of cases for the directions (N, NE, E etc) but have their own list of unique values for those common directions. I don't want to use classes, because that would result in the creation of instances when assigned. Open to alternative ideas though, I'm quite new to Swift. Thanks.</p>