 Label = require './Label'
 AudioPlayer = require 'lib/AudioPlayer'
 {me} = require 'core/auth'
+ThangType = require 'models/ThangType'
 
 # We'll get rid of this once level's teams actually have colors
 healthColors =

    @gameUIState = @options.gameUIState
    @handleEvents = @options.handleEvents
    @setThang @options.thang
    if @thang?
      options = @thang?.getLankOptions?()
      @options.colorConfig = options.colorConfig if options and options.colorConfig
    console.error @toString(), 'has no ThangType!' unless @thangType

    # this is a stub, use @setSprite to swap it out for something else later

  addMark: (name, layer, thangType=null) ->
    @marks[name] ?= new Mark name: name, lank: @, camera: @options.camera, layer: layer ? @options.groundLayer, thangType: thangType
    @marks[name]

  removeMark: (name) ->
    @marks[name].destroy()
    delete @marks[name]
