 class StageScene extends Scene
   constructor: (@game) ->
     super(@game)
-    @max_stage = @game.get_config('stages')
     @init_stage_nodes()
 
   start: () ->

    }

  kick_off: () -> @switch_scene('welcome')

  reset: () ->
    _.each @scenes, (scene) -> scene.stop()

    @enemy_win() if (@remain_user_p1_lives == 0 and @remain_user_p2_lives == 0)

  user_win: () ->
    # report
    setTimeout((() =>
      @game.next_stage()
      @game.switch_scene('report')
    ), 5000)

  enemy_win: () ->
    # hi score or
    # welcome
    setTimeout(() =>
      @game.switch_scene('welcome')
    , 10000)

  born_tanks: (tank) ->
    if tank instanceof UserP1Tank
