# Path: scene_info.py
# class SceneInfo():
#   def __init__(self,
#                file_id    = -1,
#                speaker    = -1,
#                speaking   = False,
#                sprite     = SpriteId(),
#                voice      = VoiceId(),
#                bgm        = -1,
#                headshot   = -1,
#                mode       = None,
#                special    = None,
#                box_color  = common.BOX_COLORS.orange,
#                box_type   = common.BOX_TYPES.normal,
#                ammo       = -1,
#                bgd        = -1,
#                cutin      = -1,
#                flash      = -1,
#                movie      = -1,
#                img_filter = IMG_FILTERS.unfiltered,
#                chapter    = -1,
#                scene      = -1,
#                room       = -1,
#                extra_val  = -1
#               ):
#     self.file_id    = file_id
#     
#     self.speaker    = speaker
#     self.speaking   = speaking
#     self.sprite     = sprite
#     self.voice      = voice
#     self.bgm        = bgm
#     
#     self.headshot   = headshot
#     
#     self.mode       = mode
#     self.special    = special
#     self.box_color  = box_color
#     self.box_type   = box_type
#     
#     self.ammo       = ammo
#     self.bgd        = bgd
#     self.cutin      = cutin
#     self.flash      = flash
#     self.movie      = movie
#     
#     self.img_filter = img_filter
#     
#     self.chapter    = chapter
#     self.scene      = scene
#     self.room       = room
#     
#     self.extra_val  = extra_val
# 
# Path: text_printer.py
# IMG_FILTERS  = Enum("unfiltered", "sepia", "inverted")
# 
# Path: voice.py
# class VoiceId():
#   def __init__(
#     self,
#     char_id = -1,
#     chapter = -1,
#     voice_id = -1
#   ):
#     self.char_id  = char_id
#     self.chapter  = chapter
#     self.voice_id = voice_id


import common
from scene_info import SceneInfo
from sprite import SpriteId, SPRITE_TYPE
from text_printer import IMG_FILTERS
from voice import VoiceId
from wrd.ops import *
  check_char    = -1
  
  cur_ammo      = -1
  cur_cutin     = -1
  cur_bgd       = -1
  cur_flash     = -1
  cur_movie     = -1
  
  # Because we can put flashes on top of flashes.
  flash_stack  = []
  
  # If we set the speaker with a speaker tag,
  # don't let a voice file/sprite override it.
  speaker_set = False
  
  loaded_sprites = {}
  
  box_color = common.BOX_COLORS.orange
  box_type  = common.BOX_TYPES.normal
  
  wrd_info = []
  
  for op, params in commands:
    
    ########################################
    ### Show line
    ########################################
    if op == WRD_SHOW_LINE:
      line = params["line"]
      

# Path: scene_info.py
# class SceneInfo():
#   def __init__(self,
#                file_id    = -1,
#                speaker    = -1,
#                speaking   = False,
#                sprite     = SpriteId(),
#                voice      = VoiceId(),
#                bgm        = -1,
#                headshot   = -1,
#                mode       = None,
#                special    = None,
#                box_color  = common.BOX_COLORS.orange,
#                box_type   = common.BOX_TYPES.normal,
#                ammo       = -1,
#                bgd        = -1,
#                cutin      = -1,
#                flash      = -1,
#                movie      = -1,
#                img_filter = IMG_FILTERS.unfiltered,
#                chapter    = -1,
#                scene      = -1,
#                room       = -1,
#                extra_val  = -1
#               ):
#     self.file_id    = file_id
#     
#     self.speaker    = speaker
#     self.speaking   = speaking
#     self.sprite     = sprite
#     self.voice      = voice
#     self.bgm        = bgm
#     
#     self.headshot   = headshot
#     
#     self.mode       = mode
#     self.special    = special
#     self.box_color  = box_color
#     self.box_type   = box_type
#     
#     self.ammo       = ammo
#     self.bgd        = bgd
#     self.cutin      = cutin
#     self.flash      = flash
#     self.movie      = movie
#     
#     self.img_filter = img_filter
#     
#     self.chapter    = chapter
#     self.scene      = scene
#     self.room       = room
#     
#     self.extra_val  = extra_val
# 
# Path: text_printer.py
# IMG_FILTERS  = Enum("unfiltered", "sepia", "inverted")
# 
# Path: voice.py
# class VoiceId():
#   def __init__(
#     self,
#     char_id = -1,
#     chapter = -1,
#     voice_id = -1
#   ):
#     self.char_id  = char_id
#     self.chapter  = chapter
#     self.voice_id = voice_id


# Path: wrd/scene.py
import common
from scene_info import SceneInfo
from sprite import SpriteId, SPRITE_TYPE
from text_printer import IMG_FILTERS
from voice import VoiceId
from wrd.ops import *

  check_char    = -1
  
  cur_ammo      = -1
  cur_cutin     = -1
  cur_bgd       = -1
  cur_flash     = -1
  cur_movie     = -1
  
  # Because we can put flashes on top of flashes.
  flash_stack  = []
  
  # If we set the speaker with a speaker tag,
  # don't let a voice file/sprite override it.
  speaker_set = False
  
  loaded_sprites = {}
  
  box_color = common.BOX_COLORS.orange
  box_type  = common.BOX_TYPES.normal
  
  wrd_info = []
  
  for op, params in commands:
    
    ########################################
    ### Show line
    ########################################
    if op == WRD_SHOW_LINE:
      line = params["line"]
      

      scene_info = SceneInfo()