示例#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 = []
示例#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)
示例#3
0
 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)]
示例#4
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)
示例#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 = []
示例#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
示例#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
示例#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")
示例#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))
示例#10
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))
示例#11
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)
示例#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()
示例#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()
示例#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
示例#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
示例#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
示例#17
0
 def __init__(self):
     super(TownMapIconModule, self).__init__()
     self.table = eb_table_from_offset(
         offset=self.POINTER_TABLE_DEFAULT_OFFSET,
         single_column=TownMapIconPlacementPointerTableEntry)
示例#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)
示例#19
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
示例#20
0
 def __init__(self):
     super(TownMapIconModule, self).__init__()
     self.table = eb_table_from_offset(
         offset=self.POINTER_TABLE_DEFAULT_OFFSET,
         single_column=TownMapIconPlacementPointerTableEntry)
示例#21
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)
示例#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)
示例#23
0
 def __init__(self):
     super(EbModule, self).__init__()
     self.pointer_table = eb_table_from_offset(0xD00000)
     self.door_areas = []
示例#24
0
 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))
示例#25
0
 def __init__(self):
     super(MiscTablesModule, self).__init__()
     self.tables = [(from_snes_address(x), eb_table_from_offset(x)) for x in self.TABLE_OFFSETS]
示例#26
0
 def __init__(self):
     super(AnimationModule, self).__init__()
     self.table = eb_table_from_offset(
         offset=ANIMATION_TABLE_DEFAULT_ADDRESS)
     self.animations = []
示例#27
0
 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))
示例#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)
示例#29
0
 def __init__(self):
     super(EbModule, self).__init__()
     self.pointer_table = eb_table_from_offset(0xD00000)
     self.door_areas = []