text: #!/usr/bin/env python
  __author__ = "Thomas Zimmermann"
  __copyright__ = "Copyright 2021, The MUDCake Project"
  __credits__ = "Hauke Presig, Jack Drillisch, Jan Gruchott, Lukas Klein, Robert Fendrich, Thomas Zimmermann"
  
  __license__ = """MIT License
  
                       Copyright (c) 2021 MUDCake Project
  
                       Permission is hereby granted, free of charge, to any person obtaining a copy
                       of this software and associated documentation files (the "Software"), to deal
                       in the Software without restriction, including without limitation the rights
                       to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
                       copies of the Software, and to permit persons to whom the Software is
                       furnished to do so, subject to the following conditions:
  
                       The above copyright notice and this permission notice shall be included in all
                       copies or substantial portions of the Software.
  
                       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                       IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                       FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                       AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                       LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
                       OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
                       SOFTWARE."""
  
  __version__ = "1.0.0"
  __maintainer__ = "Thomas Zimmermann"
  __email__ = "mudcake@gmail.com"
  __status__ = "Development"
  
  from DatabaseHandler.DatabaseHandler import *
  
  
  class Npc:
      def __init__(self, npc_id: str= None, dungeon_id: str= None, item: str = None, name: str = None, description: str = None ):
          self.npc_id = npc_id
          self.item = item
          self.name = name
          self.description = description
          self.dungeon_id = dungeon_id
  
      def load_data(self, dungeon_id: str):
          db_handler = DatabaseHandler()
          database_npc = db_handler.get_npc_by_dungeon_id(dungeon_id)
          self.npc_id = database_npc[0]
          self.name = database_npc[1]
          self.description = database_npc[2]
          self.dungeon_id = dungeon_id
          self.item = database_npc[4]
  