Commit Graph

73 Commits

Author SHA1 Message Date
scawful
4c39f02224 update dungeon header 2025-01-06 15:55:44 -05:00
scawful
9c7f78a228 update z3_dungeon_room public data type internals 2025-01-06 15:48:36 -05:00
scawful
6bf8b62d64 Merge remote-tracking branch 'refs/remotes/origin/master'
Merge changes made on visual studio repo.
2025-01-06 11:13:29 -05:00
Justin Scofield
88198323b3 Refactor ROM handling and update Overworld methods
Updated MessageEditor, RoomEntrance, and Overworld classes to use WriteByte instead of Write for byte values. Refactored ROM class by removing Write and toint16 methods, moving constants, and updating operator[]. Modified Overworld methods to return absl::Status and handle errors. Updated Inventory and OverworldMap methods to use ReadWord instead of toint16.
2025-01-05 21:19:53 -05:00
Justin Scofield
2d9f4be91d Refactor and add default values to various structs
- Removed `FindMatchingCharacter` declaration from `message_data.h`
- Added default values to `DictionaryEntry` and `MessageData` members
- Marked several methods in `DictionaryEntry`, `MessageData`, and `TextElement` as `const`
- Updated `TextElement` constructor to take `const std::string&`
- Added string constants for text descriptions in `TextElement`
- Updated `TextCommands` vector to use new string constants
- Declared new function `FindMatchingCommand`
- Included `<array>` header in `message_editor.h`
- Changed `width_array` in `MessageEditor` to `std::array` with default initialization
- Removed `list_of_texts_` and `all_dictionaries_` vectors from `MessageEditor`
- Added default values to `GameEntity` members
- Initialized `sheets` array in `PseudoVram`
- Initialized `map_parent_` and `all_tiles_types_` arrays in `Overworld`
2025-01-04 20:05:46 -05:00
Justin Scofield
fe0dbd3642 Refactor graphics sheet management with singleton class
Refactor the handling of graphics sheets by introducing a singleton class `GraphicsSheetManager`. This centralizes the management of graphics sheets, replacing direct access through the `Rom` object. Key changes include:

- Updated various methods across multiple classes to use `GraphicsSheetManager::GetInstance()` for accessing and manipulating graphics sheets.
- Introduced standalone functions `LoadLinkGraphics`, `LoadAllGraphicsData`, and `SaveAllGraphicsData` for loading and saving graphics data.
- Refactored the `Rom` class to remove methods and member variables related to graphics sheet management.
- Updated `OverworldEditor` to use `std::array` for `maps_bmp_` and added error handling for `std::bad_alloc` exceptions.
- Improved code modularity and error handling throughout the application.
2025-01-04 20:04:00 -05:00
scawful
1f5acc66c9 remove unnecessary whitespace and comments in room_object and sprite files 2025-01-02 10:07:15 -05:00
scawful
3cbcb61222 Add CalculateRoomSize to Room 2025-01-02 08:37:48 -05:00
scawful
df67e6aaf7 Add LayerMergeType and list of constant types 2025-01-02 08:37:34 -05:00
scawful
72b51376d9 add enums for collision, effects, and tags 2025-01-02 08:35:15 -05:00
scawful
50e4117230 Add entrance names to common header and update usage in OverworldEditor 2024-12-31 16:40:44 -05:00
scawful
6699c4e605 Refactor object renderer: update class member types for consistency and clarity 2024-12-30 07:50:46 -05:00
scawful
7e470f2b33 remove dungeon namespace 2024-12-29 16:14:20 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
b336d14233 Refactor include paths and remove redundant headers in core and editor modules 2024-11-15 23:38:44 -05:00
scawful
84f30f45d0 Refactor includes in dungeon, music, and overworld files to remove unused headers for clarity 2024-11-13 08:51:54 -05:00
scawful
0f3fd1fb5d Rename staircase_rooms_vec_ to z3_staircases for clarity and update related usages 2024-11-10 22:14:15 -05:00
scawful
c640c0af66 Refactor dungeon background enum and update related usages for consistency 2024-11-10 22:05:19 -05:00
scawful
b40699e81d Refactor dungeon room structures and rename classes for consistency 2024-11-10 21:40:06 -05:00
scawful
1c8285a498 Refactor room handling for consistency and readability by standardizing variable naming and improving code structure 2024-11-08 00:12:45 -05:00
scawful
3be53b9e53 add dungeon.h to incl 2024-10-07 07:59:38 -04:00
scawful
1bc3188f1b include housekeeping 2024-10-07 07:59:26 -04:00
scawful
ea8a851539 clang tidy cleanups 2024-08-21 00:37:14 -04:00
scawful
3b5e4cd791 chore: Refactor room object loading and drawing methods 2024-08-21 00:09:57 -04:00
scawful
4baa302f40 Refactor room entrance constants 2024-08-20 23:14:30 -04:00
scawful
a9d365f3b4 cleanup constants 2024-08-20 23:09:10 -04:00
scawful
7b33313281 big cleanup 2024-08-20 22:10:35 -04:00
scawful
a8ed9b7f92 remove magic numbers, enforce const correctness 2024-08-20 21:31:59 -04:00
scawful
c3c310a84c Deprecation bitmap_manager efforts 2024-08-13 21:33:45 -04:00
scawful
164ae60f5a remove deprecated graphics_bin 2024-08-13 21:22:02 -04:00
scawful
be32ee9797 fix all unhandled status return type compiler warnings 2024-05-28 17:29:21 -04:00
scawful
f28e26ef28 housekeeping 2024-05-24 20:37:29 -04:00
scawful
885897072c inline room object name arrays 2024-05-11 14:48:15 -04:00
scawful
1c182efd01 Remove unused code from object renderer 2024-04-25 10:21:17 -04:00
scawful
1a4563f9e7 overhaul cleanups 2024-04-22 15:58:39 -04:00
scawful
5953e58bd4 Rename SharedROM to SharedRom 2024-04-14 14:51:53 -05:00
scawful
7e46cf1c64 Rename ROM class to Rom 2024-04-14 14:47:17 -05:00
scawful
f653517026 add memory namespace, update comments 2024-04-13 23:56:41 -05:00
scawful
2809acd809 Add video namespace to emu 2024-04-13 23:39:23 -05:00
scawful
ca076164ce Rename CPU to Cpu 2024-04-13 23:33:35 -05:00
scawful
dc74483f2c Add object_renderer.cc 2024-02-08 09:19:22 -05:00
scawful
2397ac6efd Add RoomEntrance class, move entrance constants 2024-02-08 09:18:59 -05:00
scawful
13b588fa75 Dungeon Object Renderer updates 2024-02-03 00:03:06 -05:00
scawful
693dca1329 Rename SNESPalette, SNESColor to SnesPalette, SnesColor
Create snes_color.h and snes_color.cc to separate concerns
2024-01-31 21:09:42 -05:00
scawful
ee179a5598 housekeeping for GfxContext and Room logging 2024-01-28 12:05:50 -05:00
scawful
53f76460b4 Compute room size and room size pointers in Room class 2024-01-18 20:06:30 -05:00
scawful
08b95df7ad Dungeon Room Object refactor 2024-01-10 23:14:49 -05:00
scawful
27098a7917 cleanup bitmap and object renderer 2023-12-29 22:43:40 -05:00
scawful
10785357ef Move DungeonObjectRenderer to its own file 2023-12-17 20:59:42 -05:00
scawful
90625598dd Update ConfigureObject for RoomObjects 2023-12-10 02:14:43 -05:00