Exemple #1
0
 def __init__(self):
     super(SwirlModule, self).__init__()
     self.swirl_table = eb_table_from_offset(
         offset=SWIRL_TABLE_DEFAULT_OFFSET)
     self.pointer_table = eb_table_from_offset(
         offset=SWIRL_ANIMATION_POINTER_TABLE_DEFAULT_OFFSET)
     self.swirls = []
Exemple #2
0
 def __init__(self):
     super(MapEnemyModule, self).__init__()
     self.group_pointer_table = eb_table_from_offset(
         offset=GROUP_POINTER_TABLE_OFFSET,
         single_column=EbPointerToVariableSizeEntryTableEntry.create(
             EbPointerTableEntry.create(4), MapEnemyGroupTableEntry))
     self.group_placement_table = eb_table_from_offset(
         offset=GROUP_PLACEMENT_TABLE_OFFSET)
 def __init__(self):
     super(TilesetModule, self).__init__()
     self.graphics_pointer_table = eb_table_from_offset(GRAPHICS_POINTER_TABLE_OFFSET)
     self.arrangements_pointer_table = eb_table_from_offset(ARRANGEMENTS_POINTER_TABLE_OFFSET)
     self.collisions_pointer_table = eb_table_from_offset(COLLISIONS_POINTER_TABLE_OFFSET)
     self.map_tileset_table = eb_table_from_offset(MAP_TILESET_TABLE_OFFSET)
     self.palette_pointer_table = eb_table_from_offset(PALETTE_POINTER_TABLE_OFFSET)
     self.tilesets = [EbTileset() for i in range(20)]
 def __init__(self):
     super(MapEnemyModule, self).__init__()
     self.group_pointer_table = eb_table_from_offset(
         offset=GROUP_POINTER_TABLE_OFFSET,
         single_column=EbPointerToVariableSizeEntryTableEntry.create(
             EbPointerTableEntry.create(4),
             MapEnemyGroupTableEntry))
     self.group_placement_table = eb_table_from_offset(offset=GROUP_PLACEMENT_TABLE_OFFSET)
Exemple #5
0
 def __init__(self):
     super(SwirlModule, self).__init__()
     self.swirl_table = eb_table_from_offset(
         offset=SWIRL_TABLE_DEFAULT_OFFSET
     )
     self.pointer_table = eb_table_from_offset(
         offset=SWIRL_ANIMATION_POINTER_TABLE_DEFAULT_OFFSET
     )
     self.swirls = []
Exemple #6
0
    def __init__(self):
        super(EnemyModule, self).__init__()
        self.enemy_config_table = eb_table_from_offset(offset=ENEMY_CONFIGURATION_TABLE_DEFAULT_OFFSET,
                                                       hidden_columns=["Battle Sprite", "Battle Sprite Palette"])
        self.graphics_pointer_table = eb_table_from_offset(offset=BATTLE_SPRITES_POINTER_TABLE_DEFAULT_OFFSET)
        self.enemy_group_table = eb_table_from_offset(offset=ENEMY_GROUP_TABLE_DEFAULT_OFFSET,
                                                      hidden_columns=["Pointer"])
        self.enemy_group_bg_table = eb_table_from_offset(offset=ENEMY_GROUP_BACKGROUND_TABLE_DEFAULT_OFFSET)

        self.battle_sprites = None
        self.palettes = None
        self.enemy_groups = None
Exemple #7
0
    def __init__(self):
        super(EnemyModule, self).__init__()
        self.enemy_config_table = eb_table_from_offset(offset=ENEMY_CONFIGURATION_TABLE_DEFAULT_OFFSET,
                                                       hidden_columns=["Battle Sprite", "Battle Sprite Palette"])
        self.graphics_pointer_table = eb_table_from_offset(offset=BATTLE_SPRITES_POINTER_TABLE_DEFAULT_OFFSET)
        self.enemy_group_table = eb_table_from_offset(offset=ENEMY_GROUP_TABLE_DEFAULT_OFFSET,
                                                      hidden_columns=["Pointer"])
        self.enemy_group_bg_table = eb_table_from_offset(offset=ENEMY_GROUP_BACKGROUND_TABLE_DEFAULT_OFFSET)

        self.battle_sprites = None
        self.palettes = None
        self.enemy_groups = None
Exemple #8
0
 def __init__(self):
     super(MapModule, self).__init__()
     self.tiles = []
     self.sector_tilesets_palettes_table = eb_table_from_offset(offset=SECTOR_TILESETS_PALETTES_TABLE_OFFSET,
                                                                name="map_sectors")
     self.sector_music_table = eb_table_from_offset(offset=SECTOR_MUSIC_TABLE_OFFSET,
                                                    name="map_sectors")
     self.sector_misc_table = eb_table_from_offset(offset=SECTOR_MISC_TABLE_OFFSET,
                                                   name="map_sectors")
     self.sector_town_map_table = eb_table_from_offset(offset=SECTOR_TOWN_MAP_TABLE_OFFSET,
                                                       name="map_sectors")
     self.sector_yml_table = eb_table_from_offset(offset=SECTOR_TILESETS_PALETTES_TABLE_OFFSET,
                                                  single_column=SectorYmlTable,
                                                  num_rows=self.sector_tilesets_palettes_table.num_rows,
                                                  name="map_sectors")
Exemple #9
0
 def __init__(self):
     super(MapMusicModule, self).__init__()
     self.pointer_table = eb_table_from_offset(
         offset=MAP_MUSIC_DEFAULT_OFFSET,
         single_column=EbBankPointerToVariableSizeEntryTableEntry.create(
             EbPointerTableEntry.create(2),
             MapMusicTableEntry,
             0x0f))
 def __init__(self):
     super(MapMusicModule, self).__init__()
     self.pointer_table = eb_table_from_offset(
         offset=MAP_MUSIC_DEFAULT_OFFSET,
         single_column=EbBankPointerToVariableSizeEntryTableEntry.create(
             EbPointerTableEntry.create(2),
             MapMusicTableEntry,
             0x0f))
 def __init__(self):
     super(MapEventModule, self).__init__()
     self.pointer_table_entry_class = type(
         "MapEventPointerTableEntrySubclass", (MapEventPointerTableEntry, ),
         {})
     self.pointer_table = eb_table_from_offset(
         offset=POINTER_TABLE_DEFAULT_OFFSET,
         single_column=self.pointer_table_entry_class)
Exemple #12
0
 def __init__(self):
     super(FontModule, self).__init__()
     self.font_pointer_table = eb_table_from_offset(offset=FONT_POINTER_TABLE_OFFSET)
     self.fonts = [
         EbFont(num_characters=128, tile_width=16, tile_height=16),
         EbFont(num_characters=128, tile_width=16, tile_height=16),
         EbFont(num_characters=128, tile_width=8, tile_height=16),
         EbFont(num_characters=128, tile_width=8, tile_height=8),
         EbFont(num_characters=128, tile_width=16, tile_height=16)
     ]
     self.credits_font = EbCreditsFont()
Exemple #13
0
 def __init__(self):
     super(FontModule, self).__init__()
     self.font_pointer_table = eb_table_from_offset(offset=FONT_POINTER_TABLE_OFFSET)
     self.fonts = [
         EbFont(num_characters=128, tile_width=16, tile_height=16),
         EbFont(num_characters=128, tile_width=16, tile_height=16),
         EbFont(num_characters=128, tile_width=8, tile_height=16),
         EbFont(num_characters=128, tile_width=8, tile_height=8),
         EbFont(num_characters=128, tile_width=16, tile_height=16)
     ]
     self.credits_font = EbCreditsFont()
Exemple #14
0
    def __init__(self):
        super(BattleBgModule, self).__init__()
        self.graphics_pointer_table = eb_table_from_offset(offset=GRAPHICS_POINTER_TABLE_DEFAULT_OFFSET)
        self.arrangement_pointer_table = eb_table_from_offset(offset=ARRANGEMENT_POINTER_TABLE_DEFAULT_OFFSET)
        self.palette_pointer_table = eb_table_from_offset(offset=PALETTE_POINTER_TABLE_DEFAULT_OFFSET)
        self.scroll_table = eb_table_from_offset(offset=SCROLL_TABLE_OFFSET)
        self.distortion_table = eb_table_from_offset(offset=DISTORTION_TABLE_OFFSET)
        self.bg_table = eb_table_from_offset(offset=BACKGROUND_TABLE_OFFSET,
                                             hidden_columns=["Graphics and Arrangement", "Palette"])

        self.backgrounds = None
        self.palettes = None
Exemple #15
0
    def __init__(self):
        super(BattleBgModule, self).__init__()
        self.graphics_pointer_table = eb_table_from_offset(
            offset=GRAPHICS_POINTER_TABLE_DEFAULT_OFFSET)
        self.arrangement_pointer_table = eb_table_from_offset(
            offset=ARRANGEMENT_POINTER_TABLE_DEFAULT_OFFSET)
        self.palette_pointer_table = eb_table_from_offset(
            offset=PALETTE_POINTER_TABLE_DEFAULT_OFFSET)
        self.scroll_table = eb_table_from_offset(offset=SCROLL_TABLE_OFFSET)
        self.distortion_table = eb_table_from_offset(
            offset=DISTORTION_TABLE_OFFSET)
        self.bg_table = eb_table_from_offset(
            offset=BACKGROUND_TABLE_OFFSET,
            hidden_columns=["Graphics and Arrangement", "Palette"])

        self.backgrounds = None
        self.palettes = None
Exemple #16
0
 def __init__(self):
     super(SpriteGroupModule, self).__init__()
     self.group_pointer_table = eb_table_from_offset(
         offset=GROUP_POINTER_TABLE_OFFSET)
     self.palette_table = eb_table_from_offset(offset=PALETTE_TABLE_OFFSET)
     self.groups = None
 def __init__(self):
     super(TownMapIconModule, self).__init__()
     self.table = eb_table_from_offset(
         offset=self.POINTER_TABLE_DEFAULT_OFFSET,
         single_column=TownMapIconPlacementPointerTableEntry)
Exemple #18
0
 def __init__(self):
     super(MiscTablesModule, self).__init__()
     self.tables = map(lambda x: (from_snes_address(x), eb_table_from_offset(x)), self.TABLE_OFFSETS)
 def __init__(self):
     super(SpriteGroupModule, self).__init__()
     self.group_pointer_table = eb_table_from_offset(offset=GROUP_POINTER_TABLE_OFFSET)
     self.palette_table = eb_table_from_offset(offset=PALETTE_TABLE_OFFSET)
     self.groups = None
Exemple #20
0
 def __init__(self):
     super(TownMapIconModule, self).__init__()
     self.table = eb_table_from_offset(
         offset=self.POINTER_TABLE_DEFAULT_OFFSET,
         single_column=TownMapIconPlacementPointerTableEntry)
 def __init__(self):
     super(MiscTablesModule, self).__init__()
     self.tables = map(lambda x: (from_snes_address(x), eb_table_from_offset(x)), self.TABLE_OFFSETS)
Exemple #22
0
 def __init__(self):
     super(MapEventModule, self).__init__()
     self.pointer_table_entry_class = type("MapEventPointerTableEntrySubclass", (MapEventPointerTableEntry,), {})
     self.pointer_table = eb_table_from_offset(
         offset=POINTER_TABLE_DEFAULT_OFFSET,
         single_column=self.pointer_table_entry_class)
Exemple #23
0
 def __init__(self):
     super(EbModule, self).__init__()
     self.pointer_table = eb_table_from_offset(0xD00000)
     self.door_areas = []
 def __init__(self):
     super(MapSpriteModule, self).__init__()
     self.table = eb_table_from_offset(
         offset=self.POINTER_TABLE_DEFAULT_OFFSET,
         single_column=SpritePlacementPointerTableEntry,
         matrix_dimensions=(32, 40))
 def __init__(self):
     super(MiscTablesModule, self).__init__()
     self.tables = [(from_snes_address(x), eb_table_from_offset(x)) for x in self.TABLE_OFFSETS]
Exemple #26
0
 def __init__(self):
     super(AnimationModule, self).__init__()
     self.table = eb_table_from_offset(
         offset=ANIMATION_TABLE_DEFAULT_ADDRESS)
     self.animations = []
 def __init__(self):
     super(MapSpriteModule, self).__init__()
     self.table = eb_table_from_offset(
         offset=self.POINTER_TABLE_DEFAULT_OFFSET,
         single_column=SpritePlacementPointerTableEntry,
         matrix_dimensions=(32, 40))
Exemple #28
0
 def __init__(self):
     super(ExpandedTablesModule, self).__init__()
     self.tables = dict()
     for table_offset in ExpandedTablesModule.TABLE_OFFSETS:
         self.tables[table_offset] = eb_table_from_offset(table_offset)
Exemple #29
0
 def __init__(self):
     super(EbModule, self).__init__()
     self.pointer_table = eb_table_from_offset(0xD00000)
     self.door_areas = []