| assets | |
| saves | |
| notes | |
| context | |
| decisions | |
| plans | |
| reference | |
| sessions | |
| 2026-06 | |
| systems | |
| version | |
| projects | |
| app | |
| src | |
| boot | |
| boot.cpp | The bootstrap sequence: bootDatabase() -> bootQmlLinkage() -> Router::loadScreens() -> createApp() (QApplication + MainWindow) |
| bootDatabase.cpp | Brings up the entire game database – just (void)DB::inst();, which constructs, loads, indexes, and deep-links every DB in order |
| bootQmlLinkage.cpp | Registers every C++ type with the QML meta-system: qRegisterMetaType for each pointer used in a Q_PROPERTY chain, and qmlRegisterType / qmlRegisterUncreatableType for each enum (creatable) and object (uncreatable) |
| shortcutdefs.h | Single source of truth for the global keyboard shortcut KEY SEQUENCES |
| bridge | |
| bridge.cpp | Implementation of Bridge – constructs the models and wires up the brg aggregate |
| bridge.h | |
| router.cpp | Implementation of Router/Screen – screen registry + navigation |
| router.h | |
| settings.cpp | Implementation of Settings – UI theme/layout state |
| settings.h | |
| engine | |
| fontpreviewprovider.cpp | Implementation of FontPreviewProvider/FontPreviewInstance – the name-preview render pipeline |
| fontpreviewprovider.h | |
| tilesetengine.cpp | Implementation of TilesetEngine – tileset building + wave/flower post-processing |
| tilesetengine.h | |
| tilesetprovider.cpp | Implementation of TilesetProvider – the per-tile QML image provider |
| tilesetprovider.h | |
| mvc | |
| itemmarket | |
| itemmarketentry.cpp | Implementation of ItemMarketEntry (the market-row base) |
| itemmarketentry.h | |
| itemmarketentrygcpokemon.cpp | Implementation of ItemMarketEntryGCPokemon |
| itemmarketentrygcpokemon.h | |
| itemmarketentrymessage.cpp | Implementation of ItemMarketEntryMessage |
| itemmarketentrymessage.h | |
| itemmarketentrymoney.cpp | Implementation of ItemMarketEntryMoney |
| itemmarketentrymoney.h | |
| itemmarketentryplayeritem.cpp | Implementation of ItemMarketEntryPlayerItem |
| itemmarketentryplayeritem.h | |
| itemmarketentrystoreitem.cpp | Implementation of ItemMarketEntryStoreItem |
| itemmarketentrystoreitem.h | |
| creditsmodel.cpp | Implementation of CreditsModel |
| creditsmodel.h | |
| fontsearchmodel.cpp | Implementation of FontSearchModel |
| fontsearchmodel.h | |
| individualmap.cpp | Implementation of IndividualMap |
| individualmap.h | |
| itemmarketcartmodel.cpp | Implementation of ItemMarketCartModel – the cart filter proxy |
| itemmarketcartmodel.h | |
| itemmarketmodel.cpp | Implementation of ItemMarketModel – the buy/sell market + cart logic |
| itemmarketmodel.h | |
| itemmarketviewmodel.cpp | Implementation of ItemMarketViewModel – the Buy/Sell view proxy |
| itemmarketviewmodel.h | |
| itemoverviewmodel.cpp | Implementation of ItemOverviewModel |
| itemoverviewmodel.h | |
| itemselectmodel.cpp | Implementation of ItemSelectModel |
| itemselectmodel.h | |
| itemstoragemodel.cpp | Implementation of ItemStorageModel |
| itemstoragemodel.h | |
| mapselectmodel.cpp | Implementation of MapSelectModel |
| mapselectmodel.h | |
| moveselectmodel.cpp | Implementation of MoveSelectModel |
| moveselectmodel.h | |
| natureselectmodel.cpp | Implementation of NatureSelectModel |
| natureselectmodel.h | |
| pokedexmodel.cpp | Implementation of PokedexModel (incl |
| pokedexmodel.h | |
| pokemonboxselectmodel.cpp | Implementation of PokemonBoxSelectModel |
| pokemonboxselectmodel.h | |
| pokemonoverviewmodel.cpp | Implementation of PokemonOverviewModel |
| pokemonoverviewmodel.h | |
| pokemonstartersmodel.cpp | Implementation of PokemonStartersModel |
| pokemonstartersmodel.h | |
| pokemonstoragemodel.cpp | Implementation of PokemonStorageModel |
| pokemonstoragemodel.h | |
| recentfilesmodel.cpp | Implementation of RecentFilesModel |
| recentfilesmodel.h | |
| speciesselectmodel.cpp | Implementation of SpeciesSelectModel |
| speciesselectmodel.h | |
| statusselectmodel.cpp | Implementation of StatusSelectModel |
| statusselectmodel.h | |
| typesmodel.cpp | Implementation of TypesModel |
| typesmodel.h | |
| main.cpp | Program entry point |
| ui | |
| window | |
| mainwindow.cpp | Implementation of MainWindow – builds the Bridge, registers QML image providers, injects brg, wires shortcuts, and persists window state |
| mainwindow.h | |
| common | |
| src | |
| pse-common | |
| common_autoport.h | Shared-library import/export macro for the common library |
| random.cpp | Implementation of Random |
| random.h | |
| types.h | Project-wide fixed-width integer aliases (var8, var16, ...) |
| utility.cpp | Implementation of Utility |
| utility.h | |
| db | |
| assets | |
| data | |
| src | |
| pse-db | |
| entries | |
| abstractrandomstring.cpp | Implementation of AbstractRandomString |
| abstractrandomstring.h | |
| creditdbentry.cpp | Implementation of CreditDBEntry |
| creditdbentry.h | |
| eventdbentry.cpp | Implementation of EventDBEntry |
| eventdbentry.h | |
| eventpokemondbentry.cpp | Implementation of EventPokemonDBEntry |
| eventpokemondbentry.h | |
| examplesplayer.cpp | Implementation of ExamplesPlayer |
| examplesplayer.h | |
| examplespokemon.cpp | Implementation of ExamplesPokemon |
| examplespokemon.h | |
| examplesrival.cpp | Implementation of ExamplesRival |
| examplesrival.h | |
| flydbentry.cpp | Implementation of FlyDBEntry |
| flydbentry.h | |
| fontdbentry.cpp | Implementation of FontDBEntry |
| fontdbentry.h | |
| gamecornerdbentry.cpp | Implementation of GameCornerDBEntry |
| gamecornerdbentry.h | |
| hiddenitemdbentry.cpp | Implementation of HiddenItemDBEntry |
| hiddenitemdbentry.h | |
| itemdbentry.cpp | Implementation of ItemDBEntry (pricing + cross-refs) |
| itemdbentry.h | |
| mapdbentry.cpp | Implementation of MapDBEntry (the map definition + its deep-link web) |
| mapdbentry.h | |
| mapdbentryconnect.cpp | Implementation of MapDBEntryConnect (the map-connection math) |
| mapdbentryconnect.h | |
| mapdbentrysign.cpp | Implementation of MapDBEntrySign |
| mapdbentrysign.h | |
| mapdbentrysprite.cpp | Implementation of MapDBEntrySprite (the sprite base) |
| mapdbentrysprite.h | |
| mapdbentryspriteitem.cpp | Implementation of MapDBEntrySpriteItem |
| mapdbentryspriteitem.h | |
| mapdbentryspritenpc.cpp | Implementation of MapDBEntrySpriteNPC |
| mapdbentryspritenpc.h | |
| mapdbentryspritepokemon.cpp | Implementation of MapDBEntrySpritePokemon |
| mapdbentryspritepokemon.h | |
| mapdbentryspritetrainer.cpp | Implementation of MapDBEntrySpriteTrainer |
| mapdbentryspritetrainer.h | |
| mapdbentrywarpin.cpp | Implementation of MapDBEntryWarpIn |
| mapdbentrywarpin.h | |
| mapdbentrywarpout.cpp | Implementation of MapDBEntryWarpOut |
| mapdbentrywarpout.h | |
| mapdbentrywildmon.cpp | Implementation of MapDBEntryWildMon |
| mapdbentrywildmon.h | |
| missabledbentry.cpp | Implementation of MissableDBEntry |
| missabledbentry.h | |
| namesplayer.cpp | Implementation of NamesPlayer |
| namesplayer.h | |
| namespokemon.cpp | Implementation of NamesPokemon |
| namespokemon.h | |
| util | |
| fontsearch.cpp | Implementation of FontSearch (the chainable glyph finder) |
| fontsearch.h | |
| gamedata.cpp | Implementation of GameData (the JSON asset loader) |
| gamedata.h | |
| mapsearch.cpp | Implementation of MapSearch (the chainable map finder behind map randomization) |
| mapsearch.h | |
| abstracthiddenitemdb.cpp | Implementation of AbstractHiddenItemDB (base for hidden items/coins) |
| abstracthiddenitemdb.h | |
| creditsdb.cpp | Implementation of CreditsDB |
| creditsdb.h | |
| db.cpp | Implementation of DB – the aggregate and the load/index/deep-link bootstrap sequence |
| db.h | |
| db_autoport.h | Import/export macro for the db library, plus the central list of DB entry pointer types declared opaque to Qt's metatype system |
| eventpokemondb.cpp | Implementation of EventPokemonDB |
| eventpokemondb.h | |
| eventsdb.cpp | Implementation of EventsDB |
| eventsdb.h | |
| examples.cpp | Implementation of Examples (the example/preset aggregate) |
| examples.h | |
| flydb.cpp | Implementation of FlyDB |
| flydb.h | |
| fontsdb.cpp | Implementation of FontsDB – the glyph store plus the string<->font-code codec (convertToCode/expandStr/etc.) |
| fontsdb.h | |
| gamecornerdb.cpp | Implementation of GameCornerDB |
| gamecornerdb.h | |
| hiddencoinsdb.cpp | Implementation of HiddenCoinsDB |
| hiddencoinsdb.h | |
| hiddenItemsdb.cpp | Implementation of HiddenItemsDB |
| hiddenItemsdb.h | |
| itemsdb.cpp | Implementation of ItemsDB |
| itemsdb.h | |
| mapsdb.cpp | Implementation of MapsDB (incl |
| mapsdb.h | |
| missablesdb.cpp | Implementation of MissablesDB |
| missablesdb.h | |
| moves.cpp | Implementation of MovesDB and MoveDBEntry |
| moves.h | |
| music.cpp | Implementation of MusicDB and MusicDBEntry |
| music.h | |
| names.cpp | Implementation of Names (the random-name aggregate) |
| names.h | |
| pokemon.cpp | Implementation of PokemonDB and the PokemonDBEntry family (species, moves, evolutions, and the heavy deep-link) |
| pokemon.h | |
| scripts.cpp | Implementation of ScriptsDB and ScriptDBEntry |
| scripts.h | |
| sprites.cpp | Implementation of SpritesDB and SpriteDBEntry |
| sprites.h | |
| spriteSet.cpp | Implementation of SpriteSetDB and SpriteSetDBEntry (incl |
| spriteSet.h | |
| starterPokemon.cpp | Implementation of StarterPokemonDB |
| starterPokemon.h | |
| tileset.cpp | Implementation of TilesetDB and TilesetDBEntry |
| tileset.h | |
| tmHm.cpp | Implementation of TmHmsDB |
| tmHm.h | |
| trades.cpp | Implementation of TradesDB and TradeDBEntry |
| trades.h | |
| trainers.cpp | Implementation of TrainersDB and TrainerDBEntry |
| trainers.h | |
| types.cpp | Implementation of TypesDB and TypeDBEntry |
| types.h | |
| savefile | |
| src | |
| pse-savefile | |
| expanded | |
| area | |
| area.cpp | Implementation of Area – the current-map state container (load/save/ reset/randomize, and setTo() for the "place on any map" feature) |
| area.h | |
| areaaudio.cpp | Implementation of AreaAudio – the map's music track and audio flags |
| areaaudio.h | |
| areageneral.cpp | Implementation of AreaGeneral – contrast, letter delay, playtime toggle |
| areageneral.h | |
| arealoadedsprites.cpp | Implementation of AreaLoadedSprites – the fixed loaded-sprite slots |
| arealoadedsprites.h | |
| areamap.cpp | Implementation of AreaMap – map id/size/pointers and edge connections |
| areamap.h | |
| areanpc.cpp | Implementation of AreaNPC – transient NPC/control/battle flags |
| areanpc.h | |
| areaplayer.cpp | Implementation of AreaPlayer – player position and movement/HM/battle/ warp state on the map |
| areaplayer.h | |
| areapokemon.cpp | Implementation of AreaPokemon / AreaPokemonWild – the grass/water wild-encounter tables |
| areapokemon.h | |
| areasign.cpp | Implementation of AreaSign – the map's list of signs |
| areasign.h | |
| areasprites.cpp | Implementation of AreaSprites – the map's list of sprites/NPCs |
| areasprites.h | |
| areatileset.cpp | Implementation of AreaTileset – the map's tileset, behaviour type, and graphics/block/collision pointers |
| areatileset.h | |
| areawarps.cpp | Implementation of AreaWarps – the map's warp points plus the live warp-transition state |
| areawarps.h | |
| fragments | |
| hofpokemon.cpp | Implementation of HoFPokemon – one Hall of Fame entry (species/level/ name) |
| hofpokemon.h | |
| hofrecord.cpp | Implementation of HoFRecord – a Hall of Fame record (up to 6 mons) |
| hofrecord.h | |
| item.cpp | Implementation of Item – an inventory slot (index + amount) and its derived buy/sell pricing |
| item.h | |
| itemstoragebox.cpp | Implementation of ItemStorageBox – the bag or a PC item box (add/remove/move/sort/relocate) |
| itemstoragebox.h | |
| mapconndata.cpp | Implementation of MapConnData – one map edge-connection block |
| mapconndata.h | |
| pokemonbox.cpp | Implementation of PokemonBox and PokemonMove – the central Pokemon record: load/save, stat computation, validity, evolution, shininess, nature, and constrained randomization |
| pokemonbox.h | |
| pokemonparty.cpp | Implementation of PokemonParty – a party mon (PokemonBox + stored stats), incl |
| pokemonparty.h | |
| pokemonstoragebox.cpp | Implementation of PokemonStorageBox – a box of Pokemon (the party's base class), incl |
| pokemonstoragebox.h | |
| pokemonstorageset.cpp | Implementation of PokemonStorageSet – a bank of six boxes (with the "skip the current box" load/save logic) |
| pokemonstorageset.h | |
| signdata.cpp | Implementation of SignData – one map sign (position + text id) |
| signdata.h | |
| spritedata.cpp | Implementation of SpriteData – one on-map sprite/NPC, including the split sprite-data tables and the optional-field accessors |
| spritedata.h | |
| warpdata.cpp | Implementation of WarpData – one warp point (tile + destination) |
| warpdata.h | |
| player | |
| player.cpp | Implementation of Player – groups the trainer's basics/items/pokedex/ party |
| player.h | |
| playerbasics.cpp | Implementation of PlayerBasics – name/ID/money/coins/badges/starter, including the full-set name/ID that also rewrites non-trade mons' OT |
| playerbasics.h | |
| playerpokedex.cpp | Implementation of PlayerPokedex – the seen/owned dex bit-fields and their counts/toggles |
| playerpokedex.h | |
| playerpokemon.cpp | Implementation of PlayerPokemon – the party as a specialized PokemonStorageBox |
| playerpokemon.h | |
| world | |
| world.cpp | Implementation of World – the global, map-independent state container |
| world.h | |
| worldcompleted.cpp | Implementation of WorldCompleted – the one-off milestone flags (rods, Lapras, Lorelei, ...) |
| worldcompleted.h | |
| worldevents.cpp | Implementation of WorldEvents – the 508-flag story-event bitfield |
| worldevents.h | |
| worldgeneral.cpp | Implementation of WorldGeneral (and the Options / LetterDelay sub-objects) |
| worldgeneral.h | |
| worldhidden.cpp | Implementation of WorldHidden – hidden-item and hidden-coin collected flags |
| worldhidden.h | |
| worldlocal.cpp | Implementation of WorldLocal – map-specific puzzle/minigame state (Lt |
| worldlocal.h | |
| worldmissables.cpp | Implementation of WorldMissables – the missable-sprite visibility flags |
| worldmissables.h | |
| worldother.cpp | Implementation of WorldOther (and the Playtime clock) – playtime, fossils, and debug mode |
| worldother.h | |
| worldscripts.cpp | Implementation of WorldScripts – per-map script-progress values |
| worldscripts.h | |
| worldtowns.cpp | Implementation of WorldTowns – visited-town (Fly destination) flags |
| worldtowns.h | |
| worldtrades.cpp | Implementation of WorldTrades – completed in-game (NPC) trade flags |
| worldtrades.h | |
| daycare.cpp | Implementation of Daycare – the single deposited Pokemon |
| daycare.h | |
| halloffame.cpp | Implementation of HallOfFame – the rolling list of HoF records |
| halloffame.h | |
| rival.cpp | Implementation of Rival – name + starter |
| rival.h | |
| savefileexpanded.cpp | Implementation of SaveFileExpanded – the expanded-tree root that loads/saves every region |
| savefileexpanded.h | |
| storage.cpp | Implementation of Storage – the PC: the item box plus 12 Pokemon boxes (2 sets), flattened to one 0..11 box space |
| storage.h | |
| filemanagement.cpp | Implementation of FileManagement – file new/open/save/reopen and the recent-files list (disk I/O around SaveFile) |
| filemanagement.h | |
| qmlownership.h | QmlCppOwned() – protect Q_INVOKABLE QObject returns from QML's GC |
| savefile.cpp | Implementation of SaveFile – the raw<->expanded lifecycle (expand/flatten/reset/randomize) |
| savefile.h | |
| savefile_autoport.h | Import/export macro for the savefile library, plus the central list of QObject types kept deliberately opaque to QML |
| savefileiterator.cpp | Implementation of SaveFileIterator – the auto-advancing cursor that wraps SaveFileToolset |
| savefileiterator.h | |
| savefiletoolset.cpp | Implementation of SaveFileToolset – the raw-byte primitives (BCD, font-encoded strings, bit-fields, words, and the Gen 1 checksum) |
| savefiletoolset.h | |