diff --git a/CMakeLists.txt b/CMakeLists.txt index f272f33..3418008 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,11 +65,12 @@ target_include_directories(theora SYSTEM PUBLIC external/theora/include) target_link_libraries(theora PUBLIC ogg) target_compile_options(theora PRIVATE -w) -# The curated game: src/*.cpp, written on top of the declarations generated-src/classes.h holds for every class. +# The curated game: every .cpp under src/, sorted into subsystem folders and including each other by path from src/, +# written on top of the declarations generated-src/classes.h holds for every class. # generated-src/'s own bodies stay out until they compile (scripts/source_tree.py --check reports how many do). # generated-src/stubs.cpp defines everything not curated yet as a stub that stops the game where it is reached, so the # executable always links and runs exactly as far as src/ goes. -file(GLOB SOURCES CONFIGURE_DEPENDS src/*.cpp) +file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.cpp) add_executable(isaac ${SOURCES} generated-src/stubs.cpp) target_include_directories(isaac PRIVATE src) target_include_directories(isaac SYSTEM PRIVATE generated-src external/stb) diff --git a/README.md b/README.md index 1a5fb09..a012506 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ game, written by hand on top of it one function at a time: - a function in `src/` defines the method `generated-src/classes.h` declares (Rebirth's names stay, as in `RNG::RandomInt`), with its address first in the comment above it (`// 007e9020 A number below max ...`). The next - build stops emitting the generated body. `src/rng.cpp` is the first. + build stops emitting the generated body. `src/engine/rng.cpp` is the first. - no raw offsets: a field the code needs gets a name in `db/fields.tsv`, and with it a member in `classes.h`. - constants are `constexpr` with names, read from the exe where they live there (`RNG`'s shift table). diff --git a/scripts/curate_brief.js b/scripts/curate_brief.js index 41154e7..1796620 100644 --- a/scripts/curate_brief.js +++ b/scripts/curate_brief.js @@ -19,22 +19,22 @@ Read these before starting: Conventions added since wave A, which every agent this wave follows: -- Manager is taken over (src/manager.h). Reach the subsystems through g_manager by the generated member name without the leading underscore: g_manager->stringTable, g_manager->optionsConfig, g_manager->itemConfig, g_manager->entityConfig, g_manager->modManager ... Read manager.h for the exact names. +- Manager is taken over (src/game/manager.h). Reach the subsystems through g_manager by the generated member name without the leading underscore: g_manager->stringTable, g_manager->optionsConfig, g_manager->itemConfig, g_manager->entityConfig, g_manager->modManager ... Read manager.h for the exact names. - A taken-over class gets no generated stubs. Every method your header declares but you do not write yet gets a one-line definition calling reconstruction_missing("Class::Method 00xxxxxx") from src/log.h, so the build keeps linking and stops there with a clear message. - A free function you take over (not a class method) must also be declared in one of your headers: the generator drops it from classes.h once src/ carries its address, so its other callers need your header. - Never delete decompilation write-ups (docs/, *.md with addresses). When you retire an old module, move its notes into notes/systems/ instead. - Running the game: always muted (./build/isaac --mute) and never watch the intro: any input (Space, Enter) skips it, so inject one early. - Comments: a comment starting with an address takes that function over. So does every address in a parenthesised list on a comment, like "(0040b000, 0040b1d0, 00a1a5c0 to 00a1a630)" (ranges included). -- src/data.h has resource_path(path) (lowercased, under resources/) for any non-JSON resource, and data_path(path) for converted XML. .anm2 files are Anm2Ed JSON documents, already handled by src/anm2.h. +- src/engine/data.h has resource_path(path) (lowercased, under resources/) for any non-JSON resource, and data_path(path) for converted XML. .anm2 files are Anm2Ed JSON documents, already handled by src/engine/anm2.h. How the build works: - generated-src/classes.h is generated and declares every class with the original 32-bit layout. - generated-src/stubs.cpp defines every function src/ has not taken over as a stub that prints "Reached X, not reconstructed yet" and exits. -- CMake builds src/*.cpp + stubs.cpp into build/isaac. Only curated code ever runs. +- CMake builds every .cpp under src/ (sorted into subsystem folders: engine, game, level, level/grid, entity with player, npc, boss, familiar, effect, pickup and weapon, ui, ui/menu, lua, online) + stubs.cpp into build/isaac. Files drop their folder prefix (src/entity/boss/mom.cpp) and include each other by path from src/ ("entity/boss/mom.h"). Only curated code ever runs. - When src/.h defines a struct or class itself, the generator (scripts/source_tree.py) drops that class from classes.h, keeping only a forward declaration, and writes no stubs for it. That is a CLASS TAKEOVER, and this round is about class takeovers. How to take over a class: -- Write src/.h with the class definition and src/.cpp with its methods. Include "classes.h" for everything else. +- Write src//.h with the class definition and src//.cpp with its methods, in the folder its subsystem belongs to. Include "classes.h" for everything else. - Make it idiomatic C++20 in the smack-a-brother style: - std::string, std::vector, std::map, std::unordered_map, std::array, std::unique_ptr members instead of the MSVC layouts; - real enums, preferably enum class or plain enums as smack-a-brother does, for modes and flags; @@ -48,7 +48,7 @@ How to take over a class: - Take over the WHOLE class you are assigned: every method the class has in the original that the game needs (see generated-src/classes.h for the list and generated-src/.cpp, ./decompile.sh
, ./decompile.sh --asm
N for bodies). - Collapse compiler-generated ones (copy constructors, operator_assign, destructors that only free members) into the language defaults where std members make them unnecessary, and still list their addresses in a comment above the class so the generator drops them: "// Copies, assignment and destruction (0040b000, 0040b1d0, 0040ae70) are the defaults." - Behaviour must match the original exactly: same results, same order of effects, same edge cases. Where the original crashes or has undefined behaviour, pick a safe behaviour and say so in one comment line. -- Data: XML is converted by the import tool into JSON under resources/ (lowercase paths, ".json" appended). Read it through src/data.h: data_load, node_children, node_tag, node_attr, node_text. Element order is preserved and attribute values are the original strings. A file with several roots becomes {"tag":"#document","children":[...]}. Convert values exactly as the original did. resources/ holds the real converted game files: look at them. +- Data: XML is converted by the import tool into JSON under resources/ (lowercase paths, ".json" appended). Read it through src/engine/data.h: data_load, node_children, node_tag, node_attr, node_text. Element order is preserved and attribute values are the original strings. A file with several roots becomes {"tag":"#document","children":[...]}. Convert values exactly as the original did. resources/ holds the real converted game files: look at them. - Other classes: call whatever classes.h declares for classes nobody has taken over (they are stubs for now). Do NOT edit src/ files other than your own: other agents are rewriting other classes at the same time. If a round 1 file outside your assignment calls something you changed, list the needed call-site change in your report. - Every file you write must compile with no warnings: clang++ -std=c++20 -fsyntax-only -Wall -Wextra -I src -isystem ${R}/gen_\${i} -isystem external/simdjson/singleheader -isystem external/sdl/include -isystem external/lua -isystem external/stb src/.cpp - First regenerate your private header with python3 -I scripts/source_tree.py ${R}/gen_\${i} classes.tsv dump zhl_vtables.tsv. Rerun it after creating your .h, because the generator drops the classes your header defines. diff --git a/src/anm2.cpp b/src/engine/anm2.cpp similarity index 99% rename from src/anm2.cpp rename to src/engine/anm2.cpp index c438a93..5f64bf5 100644 --- a/src/anm2.cpp +++ b/src/engine/anm2.cpp @@ -1,13 +1,13 @@ -#include "anm2.h" -#include "color_stack.h" -#include "game.h" -#include "kage_graphics.h" -#include "data.h" -#include "manager.h" -#include "log.h" -#include "render_passes.h" -#include "room.h" -#include "texture_cache.h" +#include "engine/anm2.h" +#include "engine/color_stack.h" +#include "game/game.h" +#include "engine/kage_graphics.h" +#include "engine/data.h" +#include "game/manager.h" +#include "engine/log.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/anm2.h b/src/engine/anm2.h similarity index 100% rename from src/anm2.h rename to src/engine/anm2.h diff --git a/src/anm2_texel.cpp b/src/engine/anm2_texel.cpp similarity index 97% rename from src/anm2_texel.cpp rename to src/engine/anm2_texel.cpp index b4c2300..6332274 100644 --- a/src/anm2_texel.cpp +++ b/src/engine/anm2_texel.cpp @@ -1,7 +1,7 @@ -#include "anm2.h" -#include "fx_layers.h" -#include "npc_ai.h" -#include "room_render.h" +#include "engine/anm2.h" +#include "engine/fx_layers.h" +#include "entity/npc/ai.h" +#include "level/room_render.h" #include #include diff --git a/src/beam_renderer.cpp b/src/engine/beam_renderer.cpp similarity index 97% rename from src/beam_renderer.cpp rename to src/engine/beam_renderer.cpp index 684f864..3d24639 100644 --- a/src/beam_renderer.cpp +++ b/src/engine/beam_renderer.cpp @@ -1,8 +1,8 @@ -#include "beam_renderer.h" -#include "fx_layers.h" -#include "kage_graphics.h" -#include "npc_ai.h" -#include "render_passes.h" +#include "engine/beam_renderer.h" +#include "engine/fx_layers.h" +#include "engine/kage_graphics.h" +#include "entity/npc/ai.h" +#include "engine/render_passes.h" #include // A point's edges spread along its direction turned a quarter, and a joint's normal is never shortened past this. diff --git a/src/beam_renderer.h b/src/engine/beam_renderer.h similarity index 98% rename from src/beam_renderer.h rename to src/engine/beam_renderer.h index b4a3493..b23db76 100644 --- a/src/beam_renderer.h +++ b/src/engine/beam_renderer.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include // Which animation of the sprite a beam takes its layer's keyframe from. diff --git a/src/capsule.cpp b/src/engine/capsule.cpp similarity index 99% rename from src/capsule.cpp rename to src/engine/capsule.cpp index bee38e2..bdfe818 100644 --- a/src/capsule.cpp +++ b/src/engine/capsule.cpp @@ -1,5 +1,5 @@ -#include "capsule.h" -#include "npc_ai.h" +#include "engine/capsule.h" +#include "entity/npc/ai.h" #include // Below this squared length a segment counts as a point. diff --git a/src/capsule.h b/src/engine/capsule.h similarity index 100% rename from src/capsule.h rename to src/engine/capsule.h diff --git a/src/color_stack.cpp b/src/engine/color_stack.cpp similarity index 94% rename from src/color_stack.cpp rename to src/engine/color_stack.cpp index e60586b..366b608 100644 --- a/src/color_stack.cpp +++ b/src/engine/color_stack.cpp @@ -1,4 +1,4 @@ -#include "color_stack.h" +#include "engine/color_stack.h" #include // The pushed colours, the last on top. diff --git a/src/color_stack.h b/src/engine/color_stack.h similarity index 100% rename from src/color_stack.h rename to src/engine/color_stack.h diff --git a/src/data.cpp b/src/engine/data.cpp similarity index 98% rename from src/data.cpp rename to src/engine/data.cpp index 8e28caa..4a05009 100644 --- a/src/data.cpp +++ b/src/engine/data.cpp @@ -1,5 +1,5 @@ -#include "data.h" -#include "manager.h" +#include "engine/data.h" +#include "game/manager.h" #include #include diff --git a/src/data.h b/src/engine/data.h similarity index 100% rename from src/data.h rename to src/engine/data.h diff --git a/src/font.cpp b/src/engine/font.cpp similarity index 99% rename from src/font.cpp rename to src/engine/font.cpp index 245498d..95c46b4 100644 --- a/src/font.cpp +++ b/src/engine/font.cpp @@ -1,6 +1,6 @@ -#include "font.h" -#include "data.h" -#include "log.h" +#include "engine/font.h" +#include "engine/data.h" +#include "engine/log.h" #include #include #include diff --git a/src/font.h b/src/engine/font.h similarity index 98% rename from src/font.h rename to src/engine/font.h index ead18d7..8a2f961 100644 --- a/src/font.h +++ b/src/engine/font.h @@ -1,8 +1,8 @@ #pragma once #include "classes.h" -#include "kage_graphics.h" -#include "formatted_text.h" +#include "engine/kage_graphics.h" +#include "ui/formatted_text.h" #include #include #include diff --git a/src/fx_layers.cpp b/src/engine/fx_layers.cpp similarity index 99% rename from src/fx_layers.cpp rename to src/engine/fx_layers.cpp index ddf0481..5f55bb0 100644 --- a/src/fx_layers.cpp +++ b/src/engine/fx_layers.cpp @@ -1,13 +1,13 @@ -#include "fx_layers.h" -#include "data.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "render_passes.h" -#include "room.h" -#include "seeds.h" +#include "engine/fx_layers.h" +#include "engine/data.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/fx_layers.h b/src/engine/fx_layers.h similarity index 99% rename from src/fx_layers.h rename to src/engine/fx_layers.h index 8217dde..7871107 100644 --- a/src/fx_layers.h +++ b/src/engine/fx_layers.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/gl.cpp b/src/engine/gl.cpp similarity index 95% rename from src/gl.cpp rename to src/engine/gl.cpp index 574a8c7..1e3e5ed 100644 --- a/src/gl.cpp +++ b/src/engine/gl.cpp @@ -1,4 +1,4 @@ -#include "gl.h" +#include "engine/gl.h" #include Gl gl; diff --git a/src/gl.h b/src/engine/gl.h similarity index 100% rename from src/gl.h rename to src/engine/gl.h diff --git a/src/kage_graphics.cpp b/src/engine/kage_graphics.cpp similarity index 99% rename from src/kage_graphics.cpp rename to src/engine/kage_graphics.cpp index 3dfc49f..74b68ea 100644 --- a/src/kage_graphics.cpp +++ b/src/engine/kage_graphics.cpp @@ -1,7 +1,7 @@ -#include "kage_graphics.h" -#include "data.h" -#include "gl.h" -#include "platform.h" +#include "engine/kage_graphics.h" +#include "engine/data.h" +#include "engine/gl.h" +#include "engine/platform.h" #include #include #include diff --git a/src/kage_graphics.h b/src/engine/kage_graphics.h similarity index 100% rename from src/kage_graphics.h rename to src/engine/kage_graphics.h diff --git a/src/kage_input.cpp b/src/engine/kage_input.cpp similarity index 99% rename from src/kage_input.cpp rename to src/engine/kage_input.cpp index dbb0e19..165269b 100644 --- a/src/kage_input.cpp +++ b/src/engine/kage_input.cpp @@ -1,5 +1,5 @@ -#include "kage_input.h" -#include "platform.h" +#include "engine/kage_input.h" +#include "engine/platform.h" #include #include #include diff --git a/src/kage_input.h b/src/engine/kage_input.h similarity index 100% rename from src/kage_input.h rename to src/engine/kage_input.h diff --git a/src/kage_sound.cpp b/src/engine/kage_sound.cpp similarity index 99% rename from src/kage_sound.cpp rename to src/engine/kage_sound.cpp index e6b0edb..2e63125 100644 --- a/src/kage_sound.cpp +++ b/src/engine/kage_sound.cpp @@ -1,6 +1,6 @@ -#include "kage_sound.h" -#include "data.h" -#include "platform.h" +#include "engine/kage_sound.h" +#include "engine/data.h" +#include "engine/platform.h" #include #include #include diff --git a/src/kage_sound.h b/src/engine/kage_sound.h similarity index 100% rename from src/kage_sound.h rename to src/engine/kage_sound.h diff --git a/src/log.h b/src/engine/log.h similarity index 100% rename from src/log.h rename to src/engine/log.h diff --git a/src/platform.cpp b/src/engine/platform.cpp similarity index 99% rename from src/platform.cpp rename to src/engine/platform.cpp index 7423eff..d50fccc 100644 --- a/src/platform.cpp +++ b/src/engine/platform.cpp @@ -1,11 +1,11 @@ -#include "platform.h" -#include "data.h" -#include "gl.h" -#include "kage_graphics.h" -#include "kage_input.h" -#include "kage_sound.h" -#include "manager.h" -#include "options_config.h" +#include "engine/platform.h" +#include "engine/data.h" +#include "engine/gl.h" +#include "engine/kage_graphics.h" +#include "engine/kage_input.h" +#include "engine/kage_sound.h" +#include "game/manager.h" +#include "game/options_config.h" #include #include #include diff --git a/src/platform.h b/src/engine/platform.h similarity index 99% rename from src/platform.h rename to src/engine/platform.h index 6e615ab..4989b9a 100644 --- a/src/platform.h +++ b/src/engine/platform.h @@ -1,6 +1,6 @@ #pragma once -#include "log.h" +#include "engine/log.h" #include #include #include diff --git a/src/render_passes.cpp b/src/engine/render_passes.cpp similarity index 98% rename from src/render_passes.cpp rename to src/engine/render_passes.cpp index fdff112..e067ebe 100644 --- a/src/render_passes.cpp +++ b/src/engine/render_passes.cpp @@ -1,5 +1,5 @@ -#include "render_passes.h" -#include "anm2.h" +#include "engine/render_passes.h" +#include "engine/anm2.h" #include constexpr const char* CLIP_PLANE_UNIFORM = "ClipPlane"; diff --git a/src/render_passes.h b/src/engine/render_passes.h similarity index 97% rename from src/render_passes.h rename to src/engine/render_passes.h index 496b526..6f2854c 100644 --- a/src/render_passes.h +++ b/src/engine/render_passes.h @@ -1,6 +1,6 @@ #pragma once -#include "kage_graphics.h" +#include "engine/kage_graphics.h" #include #include diff --git a/src/rng.cpp b/src/engine/rng.cpp similarity index 98% rename from src/rng.cpp rename to src/engine/rng.cpp index fbd36c8..ff8d1e7 100644 --- a/src/rng.cpp +++ b/src/engine/rng.cpp @@ -1,6 +1,6 @@ #include "classes.h" -#include "log.h" -#include "seeds.h" +#include "engine/log.h" +#include "engine/seeds.h" // The xorshift triples a seed is paired with, by shift index. constexpr unsigned int SHIFT_COUNT = 81; diff --git a/src/screenshot.cpp b/src/engine/screenshot.cpp similarity index 94% rename from src/screenshot.cpp rename to src/engine/screenshot.cpp index 628e5ed..8d3df49 100644 --- a/src/screenshot.cpp +++ b/src/engine/screenshot.cpp @@ -1,7 +1,7 @@ -#include "screenshot.h" -#include "gl.h" -#include "log.h" -#include "platform.h" +#include "engine/screenshot.h" +#include "engine/gl.h" +#include "engine/log.h" +#include "engine/platform.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #include diff --git a/src/screenshot.h b/src/engine/screenshot.h similarity index 100% rename from src/screenshot.h rename to src/engine/screenshot.h diff --git a/src/seeds.cpp b/src/engine/seeds.cpp similarity index 99% rename from src/seeds.cpp rename to src/engine/seeds.cpp index 32d6114..02d1c2e 100644 --- a/src/seeds.cpp +++ b/src/engine/seeds.cpp @@ -1,8 +1,8 @@ -#include "seeds.h" -#include "entity_player.h" -#include "game.h" -#include "manager.h" -#include "platform.h" +#include "engine/seeds.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/seeds.h b/src/engine/seeds.h similarity index 100% rename from src/seeds.h rename to src/engine/seeds.h diff --git a/src/texture_cache.cpp b/src/engine/texture_cache.cpp similarity index 96% rename from src/texture_cache.cpp rename to src/engine/texture_cache.cpp index 05234e5..a41b1b9 100644 --- a/src/texture_cache.cpp +++ b/src/engine/texture_cache.cpp @@ -1,6 +1,6 @@ -#include "texture_cache.h" -#include "data.h" -#include "manager.h" +#include "engine/texture_cache.h" +#include "engine/data.h" +#include "game/manager.h" #include constexpr std::string_view UNKNOWN_NAME = "unknown"; diff --git a/src/texture_cache.h b/src/engine/texture_cache.h similarity index 91% rename from src/texture_cache.h rename to src/engine/texture_cache.h index d01a532..84bdc73 100644 --- a/src/texture_cache.h +++ b/src/engine/texture_cache.h @@ -1,6 +1,6 @@ #pragma once -#include "kage_graphics.h" +#include "engine/kage_graphics.h" #include // The images preloaded ahead of their sprites (entity preloads, .anm2 spritesheets), held by their mounted path until diff --git a/src/video_player.cpp b/src/engine/video_player.cpp similarity index 98% rename from src/video_player.cpp rename to src/engine/video_player.cpp index 6378b28..4442638 100644 --- a/src/video_player.cpp +++ b/src/engine/video_player.cpp @@ -1,11 +1,11 @@ -#include "video_player.h" -#include "data.h" -#include "fx_layers.h" -#include "gl.h" -#include "kage_sound.h" -#include "log.h" -#include "manager.h" -#include "platform.h" +#include "engine/video_player.h" +#include "engine/data.h" +#include "engine/fx_layers.h" +#include "engine/gl.h" +#include "engine/kage_sound.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/video_player.h b/src/engine/video_player.h similarity index 95% rename from src/video_player.h rename to src/engine/video_player.h index 8d578e6..2db74b2 100644 --- a/src/video_player.h +++ b/src/engine/video_player.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "kage_graphics.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/boss_adversary.cpp b/src/entity/boss/adversary.cpp similarity index 98% rename from src/boss_adversary.cpp rename to src/entity/boss/adversary.cpp index 8e390a1..d8f067c 100644 --- a/src/boss_adversary.cpp +++ b/src/entity/boss/adversary.cpp @@ -1,12 +1,12 @@ -#include "boss_ai.h" -#include "camera.h" -#include "entity_bomb.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "grid_entity_trap_door.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "entity/weapon/bomb.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "level/grid/trap_door.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // The Adversary's states: wandering, the brimstone, the spiders, the flight and the scream that darkens the room. diff --git a/src/boss_ai.h b/src/entity/boss/ai.h similarity index 98% rename from src/boss_ai.h rename to src/entity/boss/ai.h index 5fe5028..a90b5bc 100644 --- a/src/boss_ai.h +++ b/src/entity/boss/ai.h @@ -1,9 +1,9 @@ #pragma once -#include "entity_effect.h" -#include "game.h" -#include "npc_ai.h" -#include "room.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "level/room.h" #include #include diff --git a/src/boss_angel.cpp b/src/entity/boss/angel.cpp similarity index 98% rename from src/boss_angel.cpp rename to src/entity/boss/angel.cpp index b56afa4..01ff1e3 100644 --- a/src/boss_angel.cpp +++ b/src/entity/boss/angel.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "menu_manager.h" -#include "npc_caves.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "ui/menu/manager.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" #include // The Fallen Uriel and Gabriel (variant 1) wear the black spritesheets. diff --git a/src/boss_baby_plum.cpp b/src/entity/boss/baby_plum.cpp similarity index 99% rename from src/boss_baby_plum.cpp rename to src/entity/boss/baby_plum.cpp index 1a4554f..fde17a5 100644 --- a/src/boss_baby_plum.cpp +++ b/src/entity/boss/baby_plum.cpp @@ -1,6 +1,6 @@ -#include "boss_ai.h" -#include "entity_projectile.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "game/sfx_manager.h" #include // Baby Plum's attacks, by state: the tear sweep, the stomp and the bouncing tear spray, and leaving. diff --git a/src/boss_beast.cpp b/src/entity/boss/beast.cpp similarity index 99% rename from src/boss_beast.cpp rename to src/entity/boss/beast.cpp index e83af80..704ebf7 100644 --- a/src/boss_beast.cpp +++ b/src/entity/boss/beast.cpp @@ -1,23 +1,23 @@ -#include "boss_final.h" -#include "beam_renderer.h" -#include "boss_ai.h" -#include "camera.h" -#include "capsule.h" -#include "deathmatch_manager.h" -#include "entity_combat.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "fx_layers.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_alt.h" -#include "player_manager.h" -#include "room_grid.h" +#include "entity/boss/final.h" +#include "engine/beam_renderer.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "engine/capsule.h" +#include "game/deathmatch_manager.h" +#include "entity/combat.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "engine/fx_layers.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/alt.h" +#include "entity/player/manager.h" +#include "level/room_grid.h" #include #include diff --git a/src/boss_beast_horsemen.cpp b/src/entity/boss/beast_horsemen.cpp similarity index 99% rename from src/boss_beast_horsemen.cpp rename to src/entity/boss/beast_horsemen.cpp index c65f769..505d872 100644 --- a/src/boss_beast_horsemen.cpp +++ b/src/entity/boss/beast_horsemen.cpp @@ -1,21 +1,21 @@ -#include "boss_final.h" -#include "boss_ai.h" -#include "capsule.h" -#include "entity_bomb.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_list.h" -#include "grid_entity_trap_door.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_basement.h" -#include "npc_fireplace.h" -#include "player_manager.h" -#include "room_grid.h" +#include "entity/boss/final.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/weapon/bomb.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/list.h" +#include "level/grid/trap_door.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/basement.h" +#include "entity/npc/fireplace.h" +#include "entity/player/manager.h" +#include "level/room_grid.h" #include #include diff --git a/src/boss_big_horn.cpp b/src/entity/boss/big_horn.cpp similarity index 99% rename from src/boss_big_horn.cpp rename to src/entity/boss/big_horn.cpp index 9abe8c4..40fdac2 100644 --- a/src/boss_big_horn.cpp +++ b/src/entity/boss/big_horn.cpp @@ -1,13 +1,13 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "capsule.h" -#include "entity_bomb.h" -#include "entity_player.h" -#include "npc_caves.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "temporary_effects.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/weapon/bomb.h" +#include "entity/player/player.h" +#include "entity/npc/caves.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "entity/player/temporary_effects.h" #include // Big Horn's parts, by variant: Big Horn himself, a small hole with his hand, and a big hole that may bring him up. diff --git a/src/boss_blastocyst.cpp b/src/entity/boss/blastocyst.cpp similarity index 99% rename from src/boss_blastocyst.cpp rename to src/entity/boss/blastocyst.cpp index 8492c3c..ecf993c 100644 --- a/src/boss_blastocyst.cpp +++ b/src/entity/boss/blastocyst.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "grid_entity_trap_door.h" -#include "npc_caves.h" -#include "room_render.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "level/grid/trap_door.h" +#include "entity/npc/caves.h" +#include "level/room_render.h" +#include "game/sfx_manager.h" // Blastocyst's states: its drop into the boss room (the big jump's landing too), the hop, the big jump and the stomp, // and the split. diff --git a/src/boss_brownie.cpp b/src/entity/boss/brownie.cpp similarity index 98% rename from src/boss_brownie.cpp rename to src/entity/boss/brownie.cpp index 04039c1..0055e12 100644 --- a/src/boss_brownie.cpp +++ b/src/entity/boss/brownie.cpp @@ -1,12 +1,12 @@ -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "grid_entity.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "npc_caves.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/boss_bumbino.cpp b/src/entity/boss/bumbino.cpp similarity index 98% rename from src/boss_bumbino.cpp rename to src/entity/boss/bumbino.cpp index 2a21a17..11f0597 100644 --- a/src/boss_bumbino.cpp +++ b/src/entity/boss/bumbino.cpp @@ -1,15 +1,15 @@ -#include "boss_ai.h" -#include "boss_repentance.h" -#include "capsule.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_slot.h" -#include "grid_entity.h" -#include "item_pool.h" -#include "npc_basement.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "engine/capsule.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/pickup/slot.h" +#include "level/grid/grid_entity.h" +#include "entity/pickup/item_pool.h" +#include "entity/npc/basement.h" +#include "level/room_grid.h" #include #include diff --git a/src/boss_cage.cpp b/src/entity/boss/cage.cpp similarity index 98% rename from src/boss_cage.cpp rename to src/entity/boss/cage.cpp index 5ca0875..c87ecc3 100644 --- a/src/boss_cage.cpp +++ b/src/entity/boss/cage.cpp @@ -1,12 +1,12 @@ -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "grid_entity_trap_door.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "level/grid/trap_door.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/boss_chimera.cpp b/src/entity/boss/chimera.cpp similarity index 99% rename from src/boss_chimera.cpp rename to src/entity/boss/chimera.cpp index 3cac5d8..96c1471 100644 --- a/src/boss_chimera.cpp +++ b/src/entity/boss/chimera.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "boss_repentance.h" -#include "entity_config.h" -#include "entity_laser.h" -#include "loot_list.h" -#include "grid_entity.h" -#include "npc_basement.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/config.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/loot_list.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/basement.h" // The Chimera's states: walking, running (charging whole, at its head or rolling after it), leaping, tripping its head // off, spitting a fly, falling back to spray shots, its brimstone, its roll and its head's throw. Its head's states: diff --git a/src/boss_chub.cpp b/src/entity/boss/chub.cpp similarity index 99% rename from src/boss_chub.cpp rename to src/entity/boss/chub.cpp index c8747ce..66b4006 100644 --- a/src/boss_chub.cpp +++ b/src/entity/boss/chub.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "grid_entity.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/boss_clog.cpp b/src/entity/boss/clog.cpp similarity index 99% rename from src/boss_clog.cpp rename to src/entity/boss/clog.cpp index 7b63400..5cfc1a8 100644 --- a/src/boss_clog.cpp +++ b/src/entity/boss/clog.cpp @@ -1,8 +1,8 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "manager.h" -#include "loot_list.h" -#include "npc_ai.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "game/manager.h" +#include "entity/pickup/loot_list.h" +#include "entity/npc/ai.h" #include // Clog's states: idling, spitting a drip, its whirlpool spin, its bullet hell and its fart. diff --git a/src/boss_clutch.cpp b/src/entity/boss/clutch.cpp similarity index 99% rename from src/boss_clutch.cpp rename to src/entity/boss/clutch.cpp index 1aeb9cd..276e78b 100644 --- a/src/boss_clutch.cpp +++ b/src/entity/boss/clutch.cpp @@ -1,8 +1,8 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "grid_entity_trap_door.h" -#include "entity_config.h" -#include "npc_fireplace.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "level/grid/trap_door.h" +#include "entity/config.h" +#include "entity/npc/fireplace.h" #include #include diff --git a/src/boss_colostomia.cpp b/src/entity/boss/colostomia.cpp similarity index 99% rename from src/boss_colostomia.cpp rename to src/entity/boss/colostomia.cpp index e511435..572ecb1 100644 --- a/src/boss_colostomia.cpp +++ b/src/entity/boss/colostomia.cpp @@ -1,12 +1,12 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "loot_list.h" -#include "npc_basement.h" -#include "room_grid.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "entity/pickup/loot_list.h" +#include "entity/npc/basement.h" +#include "level/room_grid.h" #include #include diff --git a/src/boss_daddy_long_legs.cpp b/src/entity/boss/daddy_long_legs.cpp similarity index 98% rename from src/boss_daddy_long_legs.cpp rename to src/entity/boss/daddy_long_legs.cpp index 8b1344b..2961a21 100644 --- a/src/boss_daddy_long_legs.cpp +++ b/src/entity/boss/daddy_long_legs.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "grid_entity_trap_door.h" -#include "npc_caves.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "level/grid/trap_door.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" // Daddy Long Legs (variant 0) and the Triachnid stomp from above the room: the body (i1 0) rises and drops onto its // target, or sends down legs (i1 1, copies of itself that each stomp once and vanish), spits spiders or Trites. diff --git a/src/boss_dark_one.cpp b/src/entity/boss/dark_one.cpp similarity index 98% rename from src/boss_dark_one.cpp rename to src/entity/boss/dark_one.cpp index 7877726..054bd72 100644 --- a/src/boss_dark_one.cpp +++ b/src/entity/boss/dark_one.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "npc_caves.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" #include // The Dark One's states: walking about, the ring of shots, the laser down, the charge and the darkness. diff --git a/src/boss_death.cpp b/src/entity/boss/death.cpp similarity index 98% rename from src/boss_death.cpp rename to src/entity/boss/death.cpp index 93ad891..f4a4e36 100644 --- a/src/boss_death.cpp +++ b/src/entity/boss/death.cpp @@ -1,24 +1,24 @@ -#include "boss_death.h" -#include "boss_ai.h" -#include "entity_combat.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "item_config.h" -#include "item_overlay.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "options_config.h" -#include "persistent_game_data.h" -#include "player_manager.h" -#include "item_pool.h" -#include "room.h" -#include "room_descriptor.h" -#include "room_grid.h" -#include "room_render.h" +#include "entity/boss/death.h" +#include "entity/boss/ai.h" +#include "entity/combat.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_overlay.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "game/options_config.h" +#include "game/persistent_game_data.h" +#include "entity/player/manager.h" +#include "entity/pickup/item_pool.h" +#include "level/room.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" +#include "level/room_render.h" #include #include #include diff --git a/src/boss_death.h b/src/entity/boss/death.h similarity index 62% rename from src/boss_death.h rename to src/entity/boss/death.h index 7e70e33..c27c841 100644 --- a/src/boss_death.h +++ b/src/entity/boss/death.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" -#include "entity_npc.h" +#include "engine/anm2.h" +#include "entity/npc/npc.h" void npc_blood_guide_update(Entity_NPC& npc, const NullFrame& bloodGuide); diff --git a/src/boss_death_horseman.cpp b/src/entity/boss/death_horseman.cpp similarity index 98% rename from src/boss_death_horseman.cpp rename to src/entity/boss/death_horseman.cpp index bc58258..3733fd8 100644 --- a/src/boss_death_horseman.cpp +++ b/src/entity/boss/death_horseman.cpp @@ -1,12 +1,12 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "item_config.h" -#include "item_overlay.h" -#include "manager.h" -#include "npc_caves.h" -#include "player_manager.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_overlay.h" +#include "game/manager.h" +#include "entity/npc/caves.h" +#include "entity/player/manager.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Death's variants: Death on his horse, his scythes, his horse once he gets off, and Death on foot. The black Death diff --git a/src/boss_delirium.cpp b/src/entity/boss/delirium.cpp similarity index 99% rename from src/boss_delirium.cpp rename to src/entity/boss/delirium.cpp index ccfe051..7f364fe 100644 --- a/src/boss_delirium.cpp +++ b/src/entity/boss/delirium.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "camera.h" -#include "entity_config.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "manager.h" -#include "platform.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "entity/config.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/boss_dingle.cpp b/src/entity/boss/dingle.cpp similarity index 99% rename from src/boss_dingle.cpp rename to src/entity/boss/dingle.cpp index 6e0e85d..1651103 100644 --- a/src/boss_dingle.cpp +++ b/src/entity/boss/dingle.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_projectile.h" -#include "npc_ai.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "entity/npc/ai.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Dingle and Dangle (variant 1), and the subtypes that change what they summon and shoot. diff --git a/src/boss_dogma.cpp b/src/entity/boss/dogma.cpp similarity index 99% rename from src/boss_dogma.cpp rename to src/entity/boss/dogma.cpp index 1b42176..cc4a76d 100644 --- a/src/boss_dogma.cpp +++ b/src/entity/boss/dogma.cpp @@ -1,23 +1,23 @@ -#include "boss_final.h" -#include "active_items.h" -#include "backdrop.h" -#include "boss_ai.h" -#include "camera.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "grid_entity_trap_door.h" -#include "manager.h" -#include "menu_manager.h" -#include "music_manager.h" -#include "npc_alt.h" -#include "npc_basement.h" -#include "player_manager.h" -#include "room_config.h" -#include "room_grid.h" -#include "room_transition.h" +#include "entity/boss/final.h" +#include "entity/player/active_items.h" +#include "level/backdrop.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "level/grid/trap_door.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/music_manager.h" +#include "entity/npc/alt.h" +#include "entity/npc/basement.h" +#include "entity/player/manager.h" +#include "level/room_config.h" +#include "level/room_grid.h" +#include "level/room_transition.h" #include #include diff --git a/src/boss_duke.cpp b/src/entity/boss/duke.cpp similarity index 99% rename from src/boss_duke.cpp rename to src/entity/boss/duke.cpp index 35a6f9a..7b9a3c3 100644 --- a/src/boss_duke.cpp +++ b/src/entity/boss/duke.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "entity_projectile.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // The Duke of Flies (variant 0) and the Husk (variant 1), and their subtypes. diff --git a/src/boss_fallen.cpp b/src/entity/boss/fallen.cpp similarity index 99% rename from src/boss_fallen.cpp rename to src/entity/boss/fallen.cpp index 115fe2a..ed0f806 100644 --- a/src/boss_fallen.cpp +++ b/src/entity/boss/fallen.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "npc_caves.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" #include // The Fallen's moves (states): a spread of shots, a charge, a cross of beams, and Krampus's spinning cross. diff --git a/src/boss_famine.cpp b/src/entity/boss/famine.cpp similarity index 99% rename from src/boss_famine.cpp rename to src/entity/boss/famine.cpp index 0fc21f2..4904d2d 100644 --- a/src/boss_famine.cpp +++ b/src/entity/boss/famine.cpp @@ -1,6 +1,6 @@ -#include "boss_ai.h" -#include "npc_caves.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" #include // Famine's blue subtype, which sprays where the plain one summons, and steers its dash. diff --git a/src/boss_final.h b/src/entity/boss/final.h similarity index 98% rename from src/boss_final.h rename to src/entity/boss/final.h index 5e18d4e..eea2f12 100644 --- a/src/boss_final.h +++ b/src/entity/boss/final.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_npc.h" +#include "entity/npc/npc.h" // Mother's forms (912), by variant: her two phases, the Dead Isaacs she raises, her worms and her balls. enum MotherVariant diff --git a/src/boss_fistula.cpp b/src/entity/boss/fistula.cpp similarity index 98% rename from src/boss_fistula.cpp rename to src/entity/boss/fistula.cpp index e261b33..84c8267 100644 --- a/src/boss_fistula.cpp +++ b/src/entity/boss/fistula.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "grid_entity.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Fistula (variant 0) and Teratoma (variant 1), and their grey subtype that splits into one more piece. diff --git a/src/boss_forsaken.cpp b/src/entity/boss/forsaken.cpp similarity index 98% rename from src/boss_forsaken.cpp rename to src/entity/boss/forsaken.cpp index a89a0a3..2512094 100644 --- a/src/boss_forsaken.cpp +++ b/src/entity/boss/forsaken.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "deathmatch_manager.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "game/deathmatch_manager.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // The Forsaken's states: resting, summoning Bonys (Black Bonys for the black one), summoning Death's Heads (the black // one), the fade cycle, and the laser spin. diff --git a/src/boss_gate.cpp b/src/entity/boss/gate.cpp similarity index 98% rename from src/boss_gate.cpp rename to src/entity/boss/gate.cpp index e3f2d5a..80442d5 100644 --- a/src/boss_gate.cpp +++ b/src/entity/boss/gate.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // The Gate's subtypes: the red one that fires patterns of shots, and the black one that throws big spiders. diff --git a/src/boss_gemini.cpp b/src/entity/boss/gemini.cpp similarity index 99% rename from src/boss_gemini.cpp rename to src/entity/boss/gemini.cpp index b511967..8a73477 100644 --- a/src/boss_gemini.cpp +++ b/src/entity/boss/gemini.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "camera.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "room_descriptor.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "level/room_descriptor.h" #include // Gemini's parts, by variant: the big twins below 10 (Gemini, Steven, Blighted Ovum), their babies ten above, and the diff --git a/src/boss_gideon.cpp b/src/entity/boss/gideon.cpp similarity index 98% rename from src/boss_gideon.cpp rename to src/entity/boss/gideon.cpp index 41cc95b..52fd386 100644 --- a/src/boss_gideon.cpp +++ b/src/entity/boss/gideon.cpp @@ -1,17 +1,17 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_effect_combat.h" -#include "entity_factory.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "grid_entity.h" -#include "grid_entity_stairs.h" -#include "loot_list.h" -#include "manager.h" -#include "music_manager.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/effect/combat.h" +#include "entity/factory.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "level/grid/grid_entity.h" +#include "level/grid/stairs.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" #include // The Great Gideon: a wall of a face fixed in the Mines' floor, three cells wide and two high. It calls waves of diff --git a/src/boss_gurdy.cpp b/src/entity/boss/gurdy.cpp similarity index 98% rename from src/boss_gurdy.cpp rename to src/entity/boss/gurdy.cpp index bafd7fa..3ec18b1 100644 --- a/src/boss_gurdy.cpp +++ b/src/entity/boss/gurdy.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "npc_caves.h" -#include "room_config.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/npc/caves.h" +#include "level/room_config.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/boss_gurdy_jr.cpp b/src/entity/boss/gurdy_jr.cpp similarity index 99% rename from src/boss_gurdy_jr.cpp rename to src/entity/boss/gurdy_jr.cpp index 4f13675..9d1cc56 100644 --- a/src/boss_gurdy_jr.cpp +++ b/src/entity/boss/gurdy_jr.cpp @@ -1,6 +1,6 @@ -#include "boss_ai.h" -#include "npc_caves.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" // Gurdy Jr.'s subtypes: the twins, and the blue one that neither sprays nor summons. constexpr int GURDY_JR_TWINS = 1; diff --git a/src/boss_haunt.cpp b/src/entity/boss/haunt.cpp similarity index 99% rename from src/boss_haunt.cpp rename to src/entity/boss/haunt.cpp index 81942d9..0e002c1 100644 --- a/src/boss_haunt.cpp +++ b/src/entity/boss/haunt.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "entity_tear.h" -#include "manager.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/weapon/tear.h" +#include "game/manager.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/boss_headless_horseman.cpp b/src/entity/boss/headless_horseman.cpp similarity index 98% rename from src/boss_headless_horseman.cpp rename to src/entity/boss/headless_horseman.cpp index 9ff3f3c..8767318 100644 --- a/src/boss_headless_horseman.cpp +++ b/src/entity/boss/headless_horseman.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "entity_projectile.h" -#include "npc_caves.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" // The Headless Horseman's states: walking (the head floating), the attack, the head's charge and the head's shot. constexpr int HORSEMAN_WALK = NPC_STATE_MOVE; diff --git a/src/boss_heretic.cpp b/src/entity/boss/heretic.cpp similarity index 99% rename from src/boss_heretic.cpp rename to src/entity/boss/heretic.cpp index 482b0b6..34bb34c 100644 --- a/src/boss_heretic.cpp +++ b/src/entity/boss/heretic.cpp @@ -1,12 +1,12 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "loot_list.h" -#include "npc_fireplace.h" -#include "path_finder.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/pickup/loot_list.h" +#include "entity/npc/fireplace.h" +#include "level/path_finder.h" #include #include diff --git a/src/boss_hornfel.cpp b/src/entity/boss/hornfel.cpp similarity index 99% rename from src/boss_hornfel.cpp rename to src/entity/boss/hornfel.cpp index c5aa79b..eaa5571 100644 --- a/src/boss_hornfel.cpp +++ b/src/entity/boss/hornfel.cpp @@ -1,14 +1,14 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_tear.h" -#include "grid_entity_door.h" -#include "log.h" -#include "loot_list.h" -#include "manager.h" -#include "mines.h" -#include "room_grid.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/weapon/tear.h" +#include "level/grid/door.h" +#include "engine/log.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "entity/weapon/mines.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/boss_horny_boys.cpp b/src/entity/boss/horny_boys.cpp similarity index 98% rename from src/boss_horny_boys.cpp rename to src/entity/boss/horny_boys.cpp index 570d1ec..bff9dea 100644 --- a/src/boss_horny_boys.cpp +++ b/src/entity/boss/horny_boys.cpp @@ -1,11 +1,11 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "loot_list.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "entity/pickup/loot_list.h" #include #include diff --git a/src/boss_hush.cpp b/src/entity/boss/hush.cpp similarity index 99% rename from src/boss_hush.cpp rename to src/entity/boss/hush.cpp index c97c615..1d61379 100644 --- a/src/boss_hush.cpp +++ b/src/entity/boss/hush.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "loot_list.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/pickup/loot_list.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/boss_intro.cpp b/src/entity/boss/intro.cpp similarity index 97% rename from src/boss_intro.cpp rename to src/entity/boss/intro.cpp index ef93f8f..b306542 100644 --- a/src/boss_intro.cpp +++ b/src/entity/boss/intro.cpp @@ -1,14 +1,14 @@ -#include "data.h" -#include "boss_pool.h" -#include "entity_config.h" -#include "entity_player.h" -#include "game.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "room.h" -#include "room_transition.h" -#include "stage_transition.h" +#include "engine/data.h" +#include "entity/boss/pool.h" +#include "entity/config.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room.h" +#include "level/room_transition.h" +#include "level/stage_transition.h" #include "stb_image.h" #include diff --git a/src/boss_isaac.cpp b/src/entity/boss/isaac.cpp similarity index 99% rename from src/boss_isaac.cpp rename to src/entity/boss/isaac.cpp index 7015c32..197d512 100644 --- a/src/boss_isaac.cpp +++ b/src/entity/boss/isaac.cpp @@ -1,13 +1,13 @@ -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_list.h" -#include "entity_player.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "room_render.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "level/room_render.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/boss_lamb.cpp b/src/entity/boss/lamb.cpp similarity index 99% rename from src/boss_lamb.cpp rename to src/entity/boss/lamb.cpp index bc955a5..187601f 100644 --- a/src/boss_lamb.cpp +++ b/src/entity/boss/lamb.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "npc_caves.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/boss_larry_jr.cpp b/src/entity/boss/larry_jr.cpp similarity index 98% rename from src/boss_larry_jr.cpp rename to src/entity/boss/larry_jr.cpp index 71c0b90..bf21fa4 100644 --- a/src/boss_larry_jr.cpp +++ b/src/entity/boss/larry_jr.cpp @@ -1,12 +1,12 @@ -#include "boss_ai.h" -#include "npc_alt.h" -#include "entity_player.h" -#include "entity_config.h" -#include "entity_pickup.h" -#include "grid_entity.h" -#include "menu_manager.h" -#include "room_descriptor.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/npc/alt.h" +#include "entity/player/player.h" +#include "entity/config.h" +#include "entity/pickup/pickup.h" +#include "level/grid/grid_entity.h" +#include "ui/menu/manager.h" +#include "level/room_descriptor.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/boss_lil_blub.cpp b/src/entity/boss/lil_blub.cpp similarity index 99% rename from src/boss_lil_blub.cpp rename to src/entity/boss/lil_blub.cpp index 922c85a..a1ca071 100644 --- a/src/boss_lil_blub.cpp +++ b/src/entity/boss/lil_blub.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "boss_repentance.h" -#include "fx_layers.h" -#include "level.h" -#include "npc_basement.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "engine/fx_layers.h" +#include "level/level.h" +#include "entity/npc/basement.h" +#include "level/room_grid.h" #include #include diff --git a/src/boss_little_horn.cpp b/src/entity/boss/little_horn.cpp similarity index 99% rename from src/boss_little_horn.cpp rename to src/entity/boss/little_horn.cpp index 13b1ba0..2a184f6 100644 --- a/src/boss_little_horn.cpp +++ b/src/entity/boss/little_horn.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Little Horn (variant 0) and the dark ball it spits (variant 1), and their subtypes: the hot one throws burning diff --git a/src/boss_loki.cpp b/src/entity/boss/loki.cpp similarity index 98% rename from src/boss_loki.cpp rename to src/entity/boss/loki.cpp index 898da66..57966a0 100644 --- a/src/boss_loki.cpp +++ b/src/entity/boss/loki.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "npc_caves.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" // Lokii, the twin Loki (its variant). The second of a pair starts hidden and mirrored (its i1 2). constexpr int LOKII_HIDDEN_TWIN = 2; diff --git a/src/boss_mama_gurdy.cpp b/src/entity/boss/mama_gurdy.cpp similarity index 99% rename from src/boss_mama_gurdy.cpp rename to src/entity/boss/mama_gurdy.cpp index c79bab1..2713f0c 100644 --- a/src/boss_mama_gurdy.cpp +++ b/src/entity/boss/mama_gurdy.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "entity_projectile.h" -#include "hud.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "ui/hud.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Mama Gurdy's parts, by variant: the body in the top wall and its two hands. diff --git a/src/boss_mask_of_infamy.cpp b/src/entity/boss/mask_of_infamy.cpp similarity index 98% rename from src/boss_mask_of_infamy.cpp rename to src/entity/boss/mask_of_infamy.cpp index 0fd8759..eb95776 100644 --- a/src/boss_mask_of_infamy.cpp +++ b/src/entity/boss/mask_of_infamy.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "menu_manager.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "ui/menu/manager.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/boss_matriarch.cpp b/src/entity/boss/matriarch.cpp similarity index 99% rename from src/boss_matriarch.cpp rename to src/entity/boss/matriarch.cpp index bd9f23f..7f4f7ed 100644 --- a/src/boss_matriarch.cpp +++ b/src/entity/boss/matriarch.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "boss_repentance.h" -#include "entity_config.h" -#include "manager.h" -#include "npc_basement.h" -#include "npc_depths.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/config.h" +#include "game/manager.h" +#include "entity/npc/basement.h" +#include "entity/npc/depths.h" #include #include #include diff --git a/src/boss_mega_fatty.cpp b/src/entity/boss/mega_fatty.cpp similarity index 98% rename from src/boss_mega_fatty.cpp rename to src/entity/boss/mega_fatty.cpp index 0fe1ed0..c2c5eb8 100644 --- a/src/boss_mega_fatty.cpp +++ b/src/entity/boss/mega_fatty.cpp @@ -1,11 +1,11 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "grid_entity.h" -#include "grid_entity_trap_door.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "level/grid/grid_entity.h" +#include "level/grid/trap_door.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Mega Fatty's subtypes: the red one (its belly layers hidden) that pukes rings and drops poop, and the brown one that diff --git a/src/boss_mega_maw.cpp b/src/entity/boss/mega_maw.cpp similarity index 98% rename from src/boss_mega_maw.cpp rename to src/entity/boss/mega_maw.cpp index 827c42a..44e4252 100644 --- a/src/boss_mega_maw.cpp +++ b/src/entity/boss/mega_maw.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_familiar.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Mega Maw's subtypes: the red one that only fires rings, and the black one that throws spiders. diff --git a/src/boss_mega_satan.cpp b/src/entity/boss/mega_satan.cpp similarity index 99% rename from src/boss_mega_satan.cpp rename to src/entity/boss/mega_satan.cpp index 7f50209..213e350 100644 --- a/src/boss_mega_satan.cpp +++ b/src/entity/boss/mega_satan.cpp @@ -1,14 +1,14 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_familiar.h" -#include "grid_entity_door.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "grid_entity_trap_door.h" -#include "manager.h" -#include "npc_caves.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/familiar/familiar.h" +#include "level/grid/door.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "level/grid/trap_door.h" +#include "game/manager.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/boss_min_min.cpp b/src/entity/boss/min_min.cpp similarity index 99% rename from src/boss_min_min.cpp rename to src/entity/boss/min_min.cpp index 06c8095..59afa48 100644 --- a/src/boss_min_min.cpp +++ b/src/entity/boss/min_min.cpp @@ -1,10 +1,10 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "manager.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "game/manager.h" #include #include diff --git a/src/boss_mom.cpp b/src/entity/boss/mom.cpp similarity index 98% rename from src/boss_mom.cpp rename to src/entity/boss/mom.cpp index c2bcdba..dab763a 100644 --- a/src/boss_mom.cpp +++ b/src/entity/boss/mom.cpp @@ -1,13 +1,13 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "grid_entity_trap_door.h" -#include "entity_tear.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "level/grid/trap_door.h" +#include "entity/weapon/tear.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Mom's colors (her subtype): the plain one, the blue one that summons spiders, the red one that stomps fast and diff --git a/src/boss_moms_heart.cpp b/src/entity/boss/moms_heart.cpp similarity index 99% rename from src/boss_moms_heart.cpp rename to src/entity/boss/moms_heart.cpp index 3201ab9..8ded53f 100644 --- a/src/boss_moms_heart.cpp +++ b/src/entity/boss/moms_heart.cpp @@ -1,16 +1,16 @@ -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "grid_entity_trap_door.h" -#include "level.h" -#include "manager.h" -#include "music_manager.h" -#include "room_render.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "level/grid/trap_door.h" +#include "level/level.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "level/room_render.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/boss_monstro.cpp b/src/entity/boss/monstro.cpp similarity index 98% rename from src/boss_monstro.cpp rename to src/entity/boss/monstro.cpp index 9e3d5b7..c5a5e21 100644 --- a/src/boss_monstro.cpp +++ b/src/entity/boss/monstro.cpp @@ -1,13 +1,13 @@ -#include "boss_ai.h" -#include "active_items.h" -#include "entity_laser.h" -#include "entity_projectile.h" -#include "grid_entity_trap_door.h" -#include "menu_manager.h" -#include "npc_caves.h" -#include "room_descriptor.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/player/active_items.h" +#include "entity/weapon/laser.h" +#include "entity/weapon/projectile.h" +#include "level/grid/trap_door.h" +#include "ui/menu/manager.h" +#include "entity/npc/caves.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // Monstro's subtypes: a pair of twins, and one that never jumps. A Monstro II or Gish of subtype 1 is the quick one. constexpr int MONSTRO_TWINS = 1; diff --git a/src/boss_mother.cpp b/src/entity/boss/mother.cpp similarity index 99% rename from src/boss_mother.cpp rename to src/entity/boss/mother.cpp index bfcd2e2..61ac694 100644 --- a/src/boss_mother.cpp +++ b/src/entity/boss/mother.cpp @@ -1,21 +1,21 @@ -#include "boss_final.h" -#include "boss_ai.h" -#include "capsule.h" -#include "entity_config.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "grid_entity.h" -#include "grid_entity_trap_door.h" -#include "manager.h" -#include "npc_alt.h" -#include "npc_basement.h" -#include "player_manager.h" -#include "room_grid.h" +#include "entity/boss/final.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/config.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "level/grid/grid_entity.h" +#include "level/grid/trap_door.h" +#include "game/manager.h" +#include "entity/npc/alt.h" +#include "entity/npc/basement.h" +#include "entity/player/manager.h" +#include "level/room_grid.h" #include static void mother_orb_burst(Entity_NPC& npc); diff --git a/src/boss_mothers_shadow.cpp b/src/entity/boss/mothers_shadow.cpp similarity index 97% rename from src/boss_mothers_shadow.cpp rename to src/entity/boss/mothers_shadow.cpp index 8e06554..8effb48 100644 --- a/src/boss_mothers_shadow.cpp +++ b/src/entity/boss/mothers_shadow.cpp @@ -1,15 +1,15 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_effect_combat.h" -#include "entity_list.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "grid_entity_door.h" -#include "level.h" -#include "manager.h" -#include "npc_fireplace.h" -#include "music_manager.h" -#include "room_config.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/effect/combat.h" +#include "entity/list.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "level/grid/door.h" +#include "level/level.h" +#include "game/manager.h" +#include "entity/npc/fireplace.h" +#include "game/music_manager.h" +#include "level/room_config.h" #include // Mother's Shadow's states: rising through the floor, chasing, gone once the players leave the mineshaft, dashing at diff --git a/src/boss_mr_fred.cpp b/src/entity/boss/mr_fred.cpp similarity index 98% rename from src/boss_mr_fred.cpp rename to src/entity/boss/mr_fred.cpp index a2ac4ef..34cefaa 100644 --- a/src/boss_mr_fred.cpp +++ b/src/entity/boss/mr_fred.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Mr. Fred's states: the dig, the squirt, the barf of a Fred and the cord pulling a Homunculus. diff --git a/src/boss_overlay.cpp b/src/entity/boss/overlay.cpp similarity index 94% rename from src/boss_overlay.cpp rename to src/entity/boss/overlay.cpp index cb6f833..5819548 100644 --- a/src/boss_overlay.cpp +++ b/src/entity/boss/overlay.cpp @@ -1,9 +1,9 @@ -#include "boss_overlay.h" -#include "cutscene.h" -#include "game.h" -#include "manager.h" -#include "menu_manager.h" -#include "sfx_manager.h" +#include "entity/boss/overlay.h" +#include "ui/cutscene.h" +#include "game/game.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/sfx_manager.h" // The 480 by 270 screen the overlays are drawn for, Dogma's static layer that ignores the game's time, and the room // Dogma's shutdown leads to. diff --git a/src/boss_overlay.h b/src/entity/boss/overlay.h similarity index 98% rename from src/boss_overlay.h rename to src/entity/boss/overlay.h index b17f80a..f9f0fe4 100644 --- a/src/boss_overlay.h +++ b/src/entity/boss/overlay.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include diff --git a/src/boss_peep.cpp b/src/entity/boss/peep.cpp similarity index 98% rename from src/boss_peep.cpp rename to src/entity/boss/peep.cpp index 0784701..3498f0a 100644 --- a/src/boss_peep.cpp +++ b/src/entity/boss/peep.cpp @@ -1,12 +1,12 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "grid_entity_trap_door.h" -#include "manager.h" -#include "npc_caves.h" -#include "room_descriptor.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "level/grid/trap_door.h" +#include "game/manager.h" +#include "entity/npc/caves.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/boss_pestilence.cpp b/src/entity/boss/pestilence.cpp similarity index 99% rename from src/boss_pestilence.cpp rename to src/entity/boss/pestilence.cpp index 99ce46f..e59547d 100644 --- a/src/boss_pestilence.cpp +++ b/src/entity/boss/pestilence.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // Pestilence's grey subtype, which summons Trites and spiders and fires rings. diff --git a/src/boss_pin.cpp b/src/entity/boss/pin.cpp similarity index 99% rename from src/boss_pin.cpp rename to src/entity/boss/pin.cpp index c929fbc..dd72630 100644 --- a/src/boss_pin.cpp +++ b/src/entity/boss/pin.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_projectile.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" #include #include diff --git a/src/boss_polycephalus.cpp b/src/entity/boss/polycephalus.cpp similarity index 99% rename from src/boss_polycephalus.cpp rename to src/entity/boss/polycephalus.cpp index 1547246..f4005d6 100644 --- a/src/boss_polycephalus.cpp +++ b/src/entity/boss/polycephalus.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "entity_effect_combat.h" -#include "loot_list.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/effect/combat.h" +#include "entity/pickup/loot_list.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/boss_pool.cpp b/src/entity/boss/pool.cpp similarity index 98% rename from src/boss_pool.cpp rename to src/entity/boss/pool.cpp index 2709322..a32ed2c 100644 --- a/src/boss_pool.cpp +++ b/src/entity/boss/pool.cpp @@ -1,10 +1,10 @@ -#include "boss_pool.h" -#include "data.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "platform.h" +#include "entity/boss/pool.h" +#include "engine/data.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/boss_pool.h b/src/entity/boss/pool.h similarity index 100% rename from src/boss_pool.h rename to src/entity/boss/pool.h diff --git a/src/boss_rag_man.cpp b/src/entity/boss/rag_man.cpp similarity index 99% rename from src/boss_rag_man.cpp rename to src/entity/boss/rag_man.cpp index d2d8979..f0f32c9 100644 --- a/src/boss_rag_man.cpp +++ b/src/entity/boss/rag_man.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "npc_caves.h" -#include "entity_player.h" -#include "player_manager.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" +#include "entity/player/player.h" +#include "entity/player/manager.h" +#include "level/room_grid.h" #include #include diff --git a/src/boss_raglich.cpp b/src/entity/boss/raglich.cpp similarity index 98% rename from src/boss_raglich.cpp rename to src/entity/boss/raglich.cpp index ed6e764..ad25c95 100644 --- a/src/boss_raglich.cpp +++ b/src/entity/boss/raglich.cpp @@ -1,12 +1,12 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect_combat.h" -#include "entity_laser.h" -#include "grid_entity.h" -#include "manager.h" -#include "npc_fireplace.h" -#include "npc_basement.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/combat.h" +#include "entity/weapon/laser.h" +#include "level/grid/grid_entity.h" +#include "game/manager.h" +#include "entity/npc/fireplace.h" +#include "entity/npc/basement.h" #include #include diff --git a/src/boss_rainmaker.cpp b/src/entity/boss/rainmaker.cpp similarity index 99% rename from src/boss_rainmaker.cpp rename to src/entity/boss/rainmaker.cpp index 11875fb..eb31885 100644 --- a/src/boss_rainmaker.cpp +++ b/src/entity/boss/rainmaker.cpp @@ -1,6 +1,6 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "manager.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "game/manager.h" // The Rainmaker's states: walking, raining a line of drops, raining drops about it while it walks, and gathering the // rain into one burst. diff --git a/src/boss_reap_creep.cpp b/src/entity/boss/reap_creep.cpp similarity index 99% rename from src/boss_reap_creep.cpp rename to src/entity/boss/reap_creep.cpp index b3b36f2..cef479f 100644 --- a/src/boss_reap_creep.cpp +++ b/src/entity/boss/reap_creep.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "entity_projectile.h" -#include "level.h" -#include "npc_alt.h" -#include "npc_caves.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/weapon/projectile.h" +#include "level/level.h" +#include "entity/npc/alt.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" #include #include diff --git a/src/boss_repentance.h b/src/entity/boss/repentance.h similarity index 98% rename from src/boss_repentance.h rename to src/entity/boss/repentance.h index 18ce338..d25ecd9 100644 --- a/src/boss_repentance.h +++ b/src/entity/boss/repentance.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_npc.h" -#include "entity_effect.h" +#include "entity/npc/npc.h" +#include "entity/effect/effect.h" #include // Rotgut's forms, by variant: the face in the wall, the maggot in its first dungeon and the heart in its second. diff --git a/src/boss_rotgut.cpp b/src/entity/boss/rotgut.cpp similarity index 99% rename from src/boss_rotgut.cpp rename to src/entity/boss/rotgut.cpp index 2f99b2a..0e611ee 100644 --- a/src/boss_rotgut.cpp +++ b/src/entity/boss/rotgut.cpp @@ -1,14 +1,14 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "grid_entity.h" -#include "loot_list.h" -#include "npc_basement.h" -#include "room_transition.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "level/grid/grid_entity.h" +#include "entity/pickup/loot_list.h" +#include "entity/npc/basement.h" +#include "level/room_transition.h" #include // Rotgut's states: idle, its three attacks (the face's spirals, rubble and munch, the maggot's butt attacks), the diff --git a/src/boss_satan.cpp b/src/entity/boss/satan.cpp similarity index 98% rename from src/boss_satan.cpp rename to src/entity/boss/satan.cpp index c1d570f..f4c23de 100644 --- a/src/boss_satan.cpp +++ b/src/entity/boss/satan.cpp @@ -1,13 +1,13 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_laser.h" -#include "grid_entity_trap_door.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/weapon/laser.h" +#include "level/grid/trap_door.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/boss_scourge.cpp b/src/entity/boss/scourge.cpp similarity index 99% rename from src/boss_scourge.cpp rename to src/entity/boss/scourge.cpp index c23a190..ce5ce2a 100644 --- a/src/boss_scourge.cpp +++ b/src/entity/boss/scourge.cpp @@ -1,13 +1,13 @@ -#include "boss_ai.h" -#include "boss_repentance.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "grid_entity.h" -#include "kage_graphics.h" -#include "loot_list.h" -#include "npc_basement.h" -#include "render_passes.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "level/grid/grid_entity.h" +#include "engine/kage_graphics.h" +#include "entity/pickup/loot_list.h" +#include "entity/npc/basement.h" +#include "engine/render_passes.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/boss_singe.cpp b/src/entity/boss/singe.cpp similarity index 99% rename from src/boss_singe.cpp rename to src/entity/boss/singe.cpp index 5a0c35c..2c86869 100644 --- a/src/boss_singe.cpp +++ b/src/entity/boss/singe.cpp @@ -1,16 +1,16 @@ -#include "boss_ai.h" -#include "boss_repentance.h" -#include "entity_player.h" -#include "grid_entity.h" -#include "player_manager.h" -#include "room_grid.h" -#include "entity_bomb.h" -#include "entity_projectile.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "path_finder.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/player/player.h" +#include "level/grid/grid_entity.h" +#include "entity/player/manager.h" +#include "level/room_grid.h" +#include "entity/weapon/bomb.h" +#include "entity/weapon/projectile.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/path_finder.h" +#include "level/room.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/boss_siren.cpp b/src/entity/boss/siren.cpp similarity index 98% rename from src/boss_siren.cpp rename to src/entity/boss/siren.cpp index 1476632..2d0cf9e 100644 --- a/src/boss_siren.cpp +++ b/src/entity/boss/siren.cpp @@ -1,21 +1,21 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "grid_entity_rock.h" -#include "grid_entity_trap_door.h" -#include "loot_list.h" -#include "manager.h" -#include "npc_ai.h" -#include "path_finder.h" -#include "persistent_game_data.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "level/grid/rock.h" +#include "level/grid/trap_door.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/path_finder.h" +#include "game/persistent_game_data.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/boss_sisters_vis.cpp b/src/entity/boss/sisters_vis.cpp similarity index 99% rename from src/boss_sisters_vis.cpp rename to src/entity/boss/sisters_vis.cpp index 32c7db3..dedce8a 100644 --- a/src/boss_sisters_vis.cpp +++ b/src/entity/boss/sisters_vis.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "npc_caves.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/npc/caves.h" #include // The Sisters Vis' states: idle, the leap across the room and its landing, the twin beam, the roll, and their three diff --git a/src/boss_tuff_twins.cpp b/src/entity/boss/tuff_twins.cpp similarity index 99% rename from src/boss_tuff_twins.cpp rename to src/entity/boss/tuff_twins.cpp index b44be67..0ee2727 100644 --- a/src/boss_tuff_twins.cpp +++ b/src/entity/boss/tuff_twins.cpp @@ -1,8 +1,8 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "path_finder.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "level/path_finder.h" #include #include #include diff --git a/src/boss_turdlet.cpp b/src/entity/boss/turdlet.cpp similarity index 99% rename from src/boss_turdlet.cpp rename to src/entity/boss/turdlet.cpp index cad5325..fea206f 100644 --- a/src/boss_turdlet.cpp +++ b/src/entity/boss/turdlet.cpp @@ -1,7 +1,7 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_laser.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" #include #include diff --git a/src/boss_visage.cpp b/src/entity/boss/visage.cpp similarity index 99% rename from src/boss_visage.cpp rename to src/entity/boss/visage.cpp index 3b9076d..4da2e82 100644 --- a/src/boss_visage.cpp +++ b/src/entity/boss/visage.cpp @@ -1,12 +1,12 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect_combat.h" -#include "entity_laser.h" -#include "grid_entity.h" -#include "manager.h" -#include "npc_basement.h" -#include "npc_gehenna.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/combat.h" +#include "entity/weapon/laser.h" +#include "level/grid/grid_entity.h" +#include "game/manager.h" +#include "entity/npc/basement.h" +#include "entity/npc/gehenna.h" #include #include #include diff --git a/src/boss_war.cpp b/src/entity/boss/war.cpp similarity index 98% rename from src/boss_war.cpp rename to src/entity/boss/war.cpp index 090c2d0..ce9d87c 100644 --- a/src/boss_war.cpp +++ b/src/entity/boss/war.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_slot.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/pickup/slot.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // War's variants: War, Conquest (whose clones share its hurt), and War on foot once his horse is gone. The black War diff --git a/src/boss_widow.cpp b/src/entity/boss/widow.cpp similarity index 99% rename from src/boss_widow.cpp rename to src/entity/boss/widow.cpp index 3c00fbf..7c80831 100644 --- a/src/boss_widow.cpp +++ b/src/entity/boss/widow.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_effect.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // The Widow (variant 0) and the Wretched (variant 1), and the Widow's black and pale subtypes. diff --git a/src/boss_wormwood.cpp b/src/entity/boss/wormwood.cpp similarity index 99% rename from src/boss_wormwood.cpp rename to src/entity/boss/wormwood.cpp index a8f2dc1..61fe429 100644 --- a/src/boss_wormwood.cpp +++ b/src/entity/boss/wormwood.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "entity_projectile.h" -#include "level.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "entity/weapon/projectile.h" +#include "level/level.h" +#include "level/room_grid.h" #include // Wormwood's states: swimming under the floor, up in the air, stunned by a bomb it bit, leaping out of a pit, its diff --git a/src/entity_collision.cpp b/src/entity/collision.cpp similarity index 98% rename from src/entity_collision.cpp rename to src/entity/collision.cpp index d56cfa7..688afb1 100644 --- a/src/entity_collision.cpp +++ b/src/entity/collision.cpp @@ -1,17 +1,17 @@ -#include "capsule.h" -#include "boss_pool.h" -#include "entity_collision.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "grid_entity_door.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "room.h" -#include "room_grid.h" +#include "engine/capsule.h" +#include "entity/boss/pool.h" +#include "entity/collision.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_collision.h b/src/entity/collision.h similarity index 80% rename from src/entity_collision.h rename to src/entity/collision.h index 4c0fe83..69da9fd 100644 --- a/src/entity_collision.h +++ b/src/entity/collision.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" bool is_player_object(Entity& entity); bool is_collision_ignored(Entity& first, Entity& second); diff --git a/src/entity_combat.cpp b/src/entity/combat.cpp similarity index 98% rename from src/entity_combat.cpp rename to src/entity/combat.cpp index 1b379e1..1d4463a 100644 --- a/src/entity_combat.cpp +++ b/src/entity/combat.cpp @@ -1,27 +1,27 @@ -#include "entity_combat.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_list.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "fx_layers.h" -#include "game.h" -#include "lua_engine.h" -#include "manager.h" -#include "entity_player_characters.h" -#include "npc_ai.h" -#include "platform.h" -#include "room.h" -#include "room_render.h" -#include "seeds.h" -#include "entity_npc.h" -#include "sfx_manager.h" +#include "entity/combat.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/player/characters.h" +#include "entity/npc/ai.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_render.h" +#include "engine/seeds.h" +#include "entity/npc/npc.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_combat.h b/src/entity/combat.h similarity index 95% rename from src/entity_combat.h rename to src/entity/combat.h index f526d9a..e55bc81 100644 --- a/src/entity_combat.h +++ b/src/entity/combat.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" // The gibs a burst throws: how many and how far apart, which kinds (the config's GibFlag bits), their color, the push // they share and the speed they fly at. diff --git a/src/entity_config.cpp b/src/entity/config.cpp similarity index 99% rename from src/entity_config.cpp rename to src/entity/config.cpp index fb6d392..e20d868 100644 --- a/src/entity_config.cpp +++ b/src/entity/config.cpp @@ -1,9 +1,9 @@ -#include "entity_config.h" -#include "data.h" -#include "entity.h" -#include "entity_player.h" -#include "manager.h" -#include "texture_cache.h" +#include "entity/config.h" +#include "engine/data.h" +#include "entity/entity.h" +#include "entity/player/player.h" +#include "game/manager.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/entity_config.h b/src/entity/config.h similarity index 99% rename from src/entity_config.h rename to src/entity/config.h index 66dae16..02f4cf2 100644 --- a/src/entity_config.h +++ b/src/entity/config.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include "classes.h" #include #include diff --git a/src/entity_dummy.cpp b/src/entity/dummy.cpp similarity index 92% rename from src/entity_dummy.cpp rename to src/entity/dummy.cpp index 932c186..32fb9c9 100644 --- a/src/entity_dummy.cpp +++ b/src/entity/dummy.cpp @@ -1,7 +1,7 @@ -#include "entity_dummy.h" -#include "font.h" -#include "fx_layers.h" -#include "manager.h" +#include "entity/dummy.h" +#include "engine/font.h" +#include "engine/fx_layers.h" +#include "game/manager.h" #include constexpr float DUMMY_FRICTION = 0.965f; diff --git a/src/entity_dummy.h b/src/entity/dummy.h similarity index 93% rename from src/entity_dummy.h rename to src/entity/dummy.h index 046234c..a6a1a2b 100644 --- a/src/entity_dummy.h +++ b/src/entity/dummy.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" // Construction and destruction (006a7ee0) are the defaults. // A dummy entity (Lua's EntityType ENTITY_DUMMY), which collides with nothing. diff --git a/src/entity_effect_alt.cpp b/src/entity/effect/alt.cpp similarity index 97% rename from src/entity_effect_alt.cpp rename to src/entity/effect/alt.cpp index 3a94a6f..a93a17b 100644 --- a/src/entity_effect_alt.cpp +++ b/src/entity/effect/alt.cpp @@ -1,15 +1,15 @@ -#include "entity_effect.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "game.h" -#include "grid_entity.h" -#include "manager.h" -#include "npc_alt.h" -#include "room.h" -#include "room_descriptor.h" +#include "entity/effect/effect.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "game/manager.h" +#include "entity/npc/alt.h" +#include "level/room.h" +#include "level/room_descriptor.h" #include #include diff --git a/src/entity_effect_ambient.cpp b/src/entity/effect/ambient.cpp similarity index 99% rename from src/entity_effect_ambient.cpp rename to src/entity/effect/ambient.cpp index 1693030..086bad7 100644 --- a/src/entity_effect_ambient.cpp +++ b/src/entity/effect/ambient.cpp @@ -1,22 +1,22 @@ -#include "boss_ai.h" -#include "data.h" -#include "deathmatch_manager.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "fx_layers.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_door.h" -#include "kage_graphics.h" -#include "level_generator.h" -#include "npc_ai.h" -#include "pocket_items.h" -#include "room.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "engine/data.h" +#include "game/deathmatch_manager.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/door.h" +#include "engine/kage_graphics.h" +#include "level/generator.h" +#include "entity/npc/ai.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_effect_beam.cpp b/src/entity/effect/beam.cpp similarity index 96% rename from src/entity_effect_beam.cpp rename to src/entity/effect/beam.cpp index b107740..061436d 100644 --- a/src/entity_effect_beam.cpp +++ b/src/entity/effect/beam.cpp @@ -1,9 +1,9 @@ -#include "entity_effect.h" -#include "entity_laser.h" -#include "entity_list.h" -#include "game.h" -#include "npc_ai.h" -#include "room.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "entity/list.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "level/room.h" #include // The beam effects: where a laser hits, the enemies' brimstone swirls that fire four beams, and the dark ball's diff --git a/src/entity_effect_blast.cpp b/src/entity/effect/blast.cpp similarity index 98% rename from src/entity_effect_blast.cpp rename to src/entity/effect/blast.cpp index 422ac98..e4e343c 100644 --- a/src/entity_effect_blast.cpp +++ b/src/entity/effect/blast.cpp @@ -1,17 +1,17 @@ -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "weapon_rockets.h" -#include "backdrop.h" -#include "game.h" -#include "loot_list.h" -#include "room_grid.h" -#include "grid_entity_trap_door.h" -#include "npc_ai.h" -#include "room.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "entity/weapon/rockets.h" +#include "level/backdrop.h" +#include "game/game.h" +#include "entity/pickup/loot_list.h" +#include "level/room_grid.h" +#include "level/grid/trap_door.h" +#include "entity/npc/ai.h" +#include "level/room.h" #include #include #include diff --git a/src/entity_effect_boss.cpp b/src/entity/effect/boss.cpp similarity index 98% rename from src/entity_effect_boss.cpp rename to src/entity/effect/boss.cpp index cdb99b5..9b25ba5 100644 --- a/src/entity_effect_boss.cpp +++ b/src/entity/effect/boss.cpp @@ -1,13 +1,13 @@ -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "npc_caves.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "entity/npc/caves.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/entity_effect_combat.cpp b/src/entity/effect/combat.cpp similarity index 99% rename from src/entity_effect_combat.cpp rename to src/entity/effect/combat.cpp index f57d093..74a53d7 100644 --- a/src/entity_effect_combat.cpp +++ b/src/entity/effect/combat.cpp @@ -1,14 +1,14 @@ -#include "entity_effect_combat.h" -#include "entity_bomb.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "game.h" -#include "grid_entity_rock.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/effect/combat.h" +#include "entity/weapon/bomb.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "level/grid/rock.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_effect_combat.h b/src/entity/effect/combat.h similarity index 98% rename from src/entity_effect_combat.h rename to src/entity/effect/combat.h index 84cb17d..2433d5a 100644 --- a/src/entity_effect_combat.h +++ b/src/entity/effect/combat.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_effect.h" +#include "entity/effect/effect.h" // The combat effects: blood, gibs and particles, explosions and their craters and ground breaks, the tear poofs and // splashes, and the poofs pickups and items leave. Entity_Effect's Init and Update hand these variants here. diff --git a/src/entity_effect_dogma.cpp b/src/entity/effect/dogma.cpp similarity index 98% rename from src/entity_effect_dogma.cpp rename to src/entity/effect/dogma.cpp index f996e14..bd9db09 100644 --- a/src/entity_effect_dogma.cpp +++ b/src/entity/effect/dogma.cpp @@ -1,21 +1,21 @@ -#include "beam_renderer.h" -#include "boss_final.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "entity_list.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "manager.h" -#include "boss_ai.h" -#include "entity_npc.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "engine/beam_renderer.h" +#include "entity/boss/final.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "entity/list.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/boss/ai.h" +#include "entity/npc/npc.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_effect.cpp b/src/entity/effect/effect.cpp similarity index 97% rename from src/entity_effect.cpp rename to src/entity/effect/effect.cpp index 01ed902..c1a3cad 100644 --- a/src/entity_effect.cpp +++ b/src/entity/effect/effect.cpp @@ -1,25 +1,25 @@ -#include "entity_effect.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "entity_effect_trail.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_player_forgotten.h" -#include "entity_player_passives.h" -#include "game.h" -#include "item_config.h" -#include "kage_graphics.h" -#include "log.h" -#include "loot_list.h" -#include "lua_engine.h" -#include "manager.h" -#include "mines.h" -#include "room.h" -#include "seeds.h" -#include "sfx_manager.h" -#include "weapon_rockets.h" +#include "entity/effect/effect.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "entity/effect/trail.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/player/forgotten.h" +#include "entity/player/passives.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "engine/kage_graphics.h" +#include "engine/log.h" +#include "entity/pickup/loot_list.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/weapon/mines.h" +#include "level/room.h" +#include "engine/seeds.h" +#include "game/sfx_manager.h" +#include "entity/weapon/rockets.h" #include #include #include diff --git a/src/entity_effect.h b/src/entity/effect/effect.h similarity index 99% rename from src/entity_effect.h rename to src/entity/effect/effect.h index 666e47c..34fad30 100644 --- a/src/entity_effect.h +++ b/src/entity/effect/effect.h @@ -1,7 +1,7 @@ #pragma once -#include "entity.h" -#include "sfx_manager.h" +#include "entity/entity.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_effect_floor.cpp b/src/entity/effect/floor.cpp similarity index 98% rename from src/entity_effect_floor.cpp rename to src/entity/effect/floor.cpp index 006f58b..9728b0e 100644 --- a/src/entity_effect_floor.cpp +++ b/src/entity/effect/floor.cpp @@ -1,14 +1,14 @@ -#include "backdrop.h" -#include "capsule.h" -#include "entity_effect.h" -#include "fx_layers.h" -#include "entity_player.h" -#include "game.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "level/backdrop.h" +#include "engine/capsule.h" +#include "entity/effect/effect.h" +#include "engine/fx_layers.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_effect_hazard.cpp b/src/entity/effect/hazard.cpp similarity index 98% rename from src/entity_effect_hazard.cpp rename to src/entity/effect/hazard.cpp index 8d0e537..e4db261 100644 --- a/src/entity_effect_hazard.cpp +++ b/src/entity/effect/hazard.cpp @@ -1,15 +1,15 @@ -#include "entity_bomb.h" -#include "entity_effect.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "grid_entity_poop.h" -#include "log.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "level/grid/poop.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // The hazard effects: the farts, the shockwaves and crackwaves that break the floor and crush what stands there, the diff --git a/src/entity_effect_helpers.cpp b/src/entity/effect/helpers.cpp similarity index 98% rename from src/entity_effect_helpers.cpp rename to src/entity/effect/helpers.cpp index 6ba6821..e8b0712 100644 --- a/src/entity_effect_helpers.cpp +++ b/src/entity/effect/helpers.cpp @@ -1,18 +1,18 @@ -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "item_config.h" -#include "manager.h" -#include "npc_basement.h" -#include "npc_fireplace.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "entity/npc/basement.h" +#include "entity/npc/fireplace.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/entity_effect_items.cpp b/src/entity/effect/items.cpp similarity index 98% rename from src/entity_effect_items.cpp rename to src/entity/effect/items.cpp index 39d6d24..76ea3e9 100644 --- a/src/entity_effect_items.cpp +++ b/src/entity/effect/items.cpp @@ -1,27 +1,27 @@ -#include "boss_ai.h" -#include "boss_repentance.h" -#include "entity_bomb.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_tear.h" -#include "entity_laser.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "grid_entity_door.h" -#include "kage_graphics.h" -#include "level.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "weapon.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/tear.h" +#include "entity/weapon/laser.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "engine/kage_graphics.h" +#include "level/level.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "entity/weapon/weapon.h" #include #include diff --git a/src/entity_effect_mother.cpp b/src/entity/effect/mother.cpp similarity index 98% rename from src/entity_effect_mother.cpp rename to src/entity/effect/mother.cpp index 3bfab09..6b2831e 100644 --- a/src/entity_effect_mother.cpp +++ b/src/entity/effect/mother.cpp @@ -1,14 +1,14 @@ -#include "beam_renderer.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" +#include "engine/beam_renderer.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_effect_portal.cpp b/src/entity/effect/portal.cpp similarity index 97% rename from src/entity_effect_portal.cpp rename to src/entity/effect/portal.cpp index 7d7b4cb..6906047 100644 --- a/src/entity_effect_portal.cpp +++ b/src/entity/effect/portal.cpp @@ -1,14 +1,14 @@ -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_trap_door.h" -#include "level.h" -#include "manager.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/trap_door.h" +#include "level/level.h" +#include "game/manager.h" +#include "level/room.h" +#include "game/sfx_manager.h" #include // The portals: Ventricle Razor's pair of womb holes, each leading to the other, and the portals a room or Card diff --git a/src/entity_effect_shots.cpp b/src/entity/effect/shots.cpp similarity index 98% rename from src/entity_effect_shots.cpp rename to src/entity/effect/shots.cpp index eac9a4d..4a8ca62 100644 --- a/src/entity_effect_shots.cpp +++ b/src/entity/effect/shots.cpp @@ -1,24 +1,24 @@ -#include "capsule.h" -#include "entity_effect.h" -#include "entity_projectile.h" -#include "beam_renderer.h" -#include "entity_combat.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_list.h" -#include "entity_tear.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "deathmatch_manager.h" -#include "game.h" -#include "item_config.h" -#include "manager.h" -#include "temporary_effects.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "weapon.h" +#include "engine/capsule.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" +#include "engine/beam_renderer.h" +#include "entity/combat.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/list.h" +#include "entity/weapon/tear.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/deathmatch_manager.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "entity/player/temporary_effects.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "entity/weapon/weapon.h" #include #include #include diff --git a/src/entity_effect_souls.cpp b/src/entity/effect/souls.cpp similarity index 98% rename from src/entity_effect_souls.cpp rename to src/entity/effect/souls.cpp index 876a4bf..3a524c8 100644 --- a/src/entity_effect_souls.cpp +++ b/src/entity/effect/souls.cpp @@ -1,18 +1,18 @@ -#include "capsule.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "npc_basement.h" -#include "entity_slot.h" -#include "kage_graphics.h" -#include "deathmatch_manager.h" -#include "game.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "engine/capsule.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "entity/npc/basement.h" +#include "entity/pickup/slot.h" +#include "engine/kage_graphics.h" +#include "game/deathmatch_manager.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_effect_spike.cpp b/src/entity/effect/spike.cpp similarity index 95% rename from src/entity_effect_spike.cpp rename to src/entity/effect/spike.cpp index 2b32ae6..2db841f 100644 --- a/src/entity_effect_spike.cpp +++ b/src/entity/effect/spike.cpp @@ -1,7 +1,7 @@ -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "player_manager.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/player/manager.h" // A spike rising from the womb's floor (Mama Gurdy's): it hurts the walking players it touches for a heart, without // Callus or Socks, then sinks. Two Flat Files keep it down. diff --git a/src/entity_effect_trail.cpp b/src/entity/effect/trail.cpp similarity index 97% rename from src/entity_effect_trail.cpp rename to src/entity/effect/trail.cpp index 593d8c7..e3553c0 100644 --- a/src/entity_effect_trail.cpp +++ b/src/entity/effect/trail.cpp @@ -1,6 +1,6 @@ -#include "entity_effect_trail.h" -#include "beam_renderer.h" -#include "npc_ai.h" +#include "entity/effect/trail.h" +#include "engine/beam_renderer.h" +#include "entity/npc/ai.h" #include #include diff --git a/src/entity_effect_trail.h b/src/entity/effect/trail.h similarity index 95% rename from src/entity_effect_trail.h rename to src/entity/effect/trail.h index 7384607..bfe0505 100644 --- a/src/entity_effect_trail.h +++ b/src/entity/effect/trail.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_effect.h" +#include "entity/effect/effect.h" #include #include diff --git a/src/entity_effect_vortex.cpp b/src/entity/effect/vortex.cpp similarity index 98% rename from src/entity_effect_vortex.cpp rename to src/entity/effect/vortex.cpp index 6558c2a..42e40b3 100644 --- a/src/entity_effect_vortex.cpp +++ b/src/entity/effect/vortex.cpp @@ -1,16 +1,16 @@ -#include "entity_combat.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/combat.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity.cpp b/src/entity/entity.cpp similarity index 99% rename from src/entity.cpp rename to src/entity/entity.cpp index 5b5368f..21a1146 100644 --- a/src/entity.cpp +++ b/src/entity/entity.cpp @@ -1,20 +1,20 @@ -#include "entity.h" -#include "capsule.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "render_passes.h" -#include "entity_text.h" -#include "fx_layers.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "room.h" -#include "room_grid.h" +#include "entity/entity.h" +#include "engine/capsule.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "engine/render_passes.h" +#include "entity/text.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity.h b/src/entity/entity.h similarity index 99% rename from src/entity.h rename to src/entity/entity.h index 51bf3f7..2e45648 100644 --- a/src/entity.h +++ b/src/entity/entity.h @@ -1,8 +1,8 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include "classes.h" -#include "seeds.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/entity_factory.cpp b/src/entity/factory.cpp similarity index 98% rename from src/entity_factory.cpp rename to src/entity/factory.cpp index 15e874e..556ba12 100644 --- a/src/entity_factory.cpp +++ b/src/entity/factory.cpp @@ -1,26 +1,26 @@ -#include "entity_factory.h" -#include "boss_pool.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_slot.h" -#include "entity_tear.h" -#include "entity_text.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_poop.h" -#include "level.h" -#include "lua_engine.h" -#include "manager.h" -#include "persistent_game_data.h" -#include "platform.h" -#include "room.h" +#include "entity/factory.h" +#include "entity/boss/pool.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/pickup/slot.h" +#include "entity/weapon/tear.h" +#include "entity/text.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/poop.h" +#include "level/level.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "game/persistent_game_data.h" +#include "engine/platform.h" +#include "level/room.h" #include #include diff --git a/src/entity_factory.h b/src/entity/factory.h similarity index 99% rename from src/entity_factory.h rename to src/entity/factory.h index 789786c..8df5091 100644 --- a/src/entity_factory.h +++ b/src/entity/factory.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" #include #include #include diff --git a/src/familiar_afterbirth.cpp b/src/entity/familiar/afterbirth.cpp similarity index 98% rename from src/familiar_afterbirth.cpp rename to src/entity/familiar/afterbirth.cpp index f953c98..792a455 100644 --- a/src/familiar_afterbirth.cpp +++ b/src/entity/familiar/afterbirth.cpp @@ -1,18 +1,18 @@ -#include "entity_familiar.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "entity_npc.h" -#include "game.h" -#include "grid_entity_door.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "seeds.h" +#include "entity/familiar/familiar.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "entity/npc/npc.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "engine/seeds.h" #include #include diff --git a/src/familiar_ai.cpp b/src/entity/familiar/ai.cpp similarity index 98% rename from src/familiar_ai.cpp rename to src/entity/familiar/ai.cpp index 1b2f549..3ccff53 100644 --- a/src/familiar_ai.cpp +++ b/src/entity/familiar/ai.cpp @@ -1,20 +1,20 @@ -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "familiar_gello.h" -#include "familiar_variants.h" -#include "boss_ai.h" -#include "game.h" -#include "level_generator.h" -#include "item_pool.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "entity/familiar/gello.h" +#include "entity/familiar/variants.h" +#include "entity/boss/ai.h" +#include "game/game.h" +#include "level/generator.h" +#include "entity/pickup/item_pool.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include // The items a familiar's drops and charges read. diff --git a/src/familiar_babies.cpp b/src/entity/familiar/babies.cpp similarity index 99% rename from src/familiar_babies.cpp rename to src/entity/familiar/babies.cpp index c42d26d..c1a5b83 100644 --- a/src/familiar_babies.cpp +++ b/src/entity/familiar/babies.cpp @@ -1,27 +1,27 @@ -#include "boss_ai.h" -#include "data.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "familiar_wisp.h" -#include "fx_layers.h" -#include "game.h" -#include "grid_entity_door.h" -#include "item_config.h" -#include "level.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "engine/data.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "entity/familiar/wisp.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "entity/pickup/item_config.h" +#include "level/level.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/familiar_body.cpp b/src/entity/familiar/body.cpp similarity index 98% rename from src/familiar_body.cpp rename to src/entity/familiar/body.cpp index 580e7ff..eb18d4c 100644 --- a/src/familiar_body.cpp +++ b/src/entity/familiar/body.cpp @@ -1,11 +1,11 @@ -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" // The player layers Isaac's body copies, and the blood gush on its neck. constexpr int BODY_PART_LAYERS[BODY_PART_COUNT] = { diff --git a/src/familiar_bums.cpp b/src/entity/familiar/bums.cpp similarity index 98% rename from src/familiar_bums.cpp rename to src/entity/familiar/bums.cpp index e1f80d8..34dab41 100644 --- a/src/familiar_bums.cpp +++ b/src/entity/familiar/bums.cpp @@ -1,12 +1,12 @@ -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "item_pool.h" -#include "npc_ai.h" -#include "room_grid.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/pickup/item_pool.h" +#include "entity/npc/ai.h" +#include "level/room_grid.h" #include // How the bums trail: the player within this reach (or the bum ahead of them in line), pulled toward the one they diff --git a/src/familiar_clot.cpp b/src/entity/familiar/clot.cpp similarity index 98% rename from src/familiar_clot.cpp rename to src/entity/familiar/clot.cpp index 755c428..6d17edc 100644 --- a/src/familiar_clot.cpp +++ b/src/entity/familiar/clot.cpp @@ -1,16 +1,16 @@ -#include "entity_familiar.h" -#include "active_items.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "kage_graphics.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "room_grid.h" -#include "seeds.h" +#include "entity/familiar/familiar.h" +#include "entity/player/active_items.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/kage_graphics.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "level/room_grid.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/familiar_collision.cpp b/src/entity/familiar/collision.cpp similarity index 98% rename from src/familiar_collision.cpp rename to src/entity/familiar/collision.cpp index deab299..830b9ca 100644 --- a/src/familiar_collision.cpp +++ b/src/entity/familiar/collision.cpp @@ -1,21 +1,21 @@ -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "familiar_variants.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "weapon.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/familiar/variants.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "entity/weapon/weapon.h" #include // The enemies a contact familiar swats outright: the flies (a Pooter only of its first kinds). diff --git a/src/familiar_dip.cpp b/src/entity/familiar/dip.cpp similarity index 98% rename from src/familiar_dip.cpp rename to src/entity/familiar/dip.cpp index d60bc84..d6ec653 100644 --- a/src/familiar_dip.cpp +++ b/src/entity/familiar/dip.cpp @@ -1,12 +1,12 @@ -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_poop.h" -#include "npc_ai.h" -#include "platform.h" -#include "room_grid.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/poop.h" +#include "entity/npc/ai.h" +#include "engine/platform.h" +#include "level/room_grid.h" // A player keeps at most this many Dips, the first dip subtype a thrown poop turns into a plain Dip, and the last. constexpr int DIP_OWNED_LIMIT = 32; diff --git a/src/familiar_evaluate.cpp b/src/entity/familiar/evaluate.cpp similarity index 99% rename from src/familiar_evaluate.cpp rename to src/entity/familiar/evaluate.cpp index 75ca401..9bbf53f 100644 --- a/src/familiar_evaluate.cpp +++ b/src/entity/familiar/evaluate.cpp @@ -1,14 +1,14 @@ -#include "data.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "weapon.h" +#include "engine/data.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "entity/weapon/weapon.h" #include #include #include diff --git a/src/entity_familiar.cpp b/src/entity/familiar/familiar.cpp similarity index 98% rename from src/entity_familiar.cpp rename to src/entity/familiar/familiar.cpp index b4e2106..21e02e6 100644 --- a/src/entity_familiar.cpp +++ b/src/entity/familiar/familiar.cpp @@ -1,24 +1,24 @@ -#include "entity_familiar.h" -#include "active_items.h" -#include "boss_ai.h" -#include "color_stack.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_player.h" -#include "entity_player_forgotten.h" -#include "familiar_gello.h" -#include "familiar_variants.h" -#include "game_state_player.h" -#include "entity_tear.h" -#include "item_config.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/familiar/familiar.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "engine/color_stack.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "entity/player/forgotten.h" +#include "entity/familiar/gello.h" +#include "entity/familiar/variants.h" +#include "game/state_player.h" +#include "entity/weapon/tear.h" +#include "entity/pickup/item_config.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/entity_familiar.h b/src/entity/familiar/familiar.h similarity index 99% rename from src/entity_familiar.h rename to src/entity/familiar/familiar.h index d19f66d..7b75906 100644 --- a/src/entity_familiar.h +++ b/src/entity/familiar/familiar.h @@ -1,11 +1,11 @@ #pragma once -#include "anm2.h" -#include "entity.h" -#include "entity_effect.h" -#include "path_finder.h" -#include "sfx_manager.h" -#include "weapon.h" +#include "engine/anm2.h" +#include "entity/entity.h" +#include "entity/effect/effect.h" +#include "level/path_finder.h" +#include "game/sfx_manager.h" +#include "entity/weapon/weapon.h" #include #include #include diff --git a/src/familiar_follow.cpp b/src/entity/familiar/follow.cpp similarity index 98% rename from src/familiar_follow.cpp rename to src/entity/familiar/follow.cpp index fcd3c35..0e9742e 100644 --- a/src/familiar_follow.cpp +++ b/src/entity/familiar/follow.cpp @@ -1,19 +1,19 @@ -#include "active_items.h" -#include "entity_familiar.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "menu_manager.h" -#include "familiar_gello.h" -#include "familiar_variants.h" -#include "weapon_umbilical_whip.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/player/active_items.h" +#include "entity/familiar/familiar.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "ui/menu/manager.h" +#include "entity/familiar/gello.h" +#include "entity/familiar/variants.h" +#include "entity/weapon/umbilical_whip.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include // How far behind its leader a follower keeps, closer for Milk and on Child's Leash, and how hard it catches up. diff --git a/src/familiar_gello.cpp b/src/entity/familiar/gello.cpp similarity index 98% rename from src/familiar_gello.cpp rename to src/entity/familiar/gello.cpp index 9639c5d..11dc2b6 100644 --- a/src/familiar_gello.cpp +++ b/src/entity/familiar/gello.cpp @@ -1,21 +1,21 @@ -#include "familiar_gello.h" -#include "beam_renderer.h" -#include "capsule.h" -#include "deathmatch_manager.h" -#include "entity_bomb.h" -#include "entity_collision.h" -#include "entity_list.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "item_config.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_caves.h" -#include "room.h" -#include "room_grid.h" +#include "entity/familiar/gello.h" +#include "engine/beam_renderer.h" +#include "engine/capsule.h" +#include "game/deathmatch_manager.h" +#include "entity/weapon/bomb.h" +#include "entity/collision.h" +#include "entity/list.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/caves.h" +#include "level/room.h" +#include "level/room_grid.h" #include // Gello's looks by the player's items: the overlay on the head layer, the eye layer and the body. diff --git a/src/familiar_gello.h b/src/entity/familiar/gello.h similarity index 94% rename from src/familiar_gello.h rename to src/entity/familiar/gello.h index 19c09d4..e042f25 100644 --- a/src/familiar_gello.h +++ b/src/entity/familiar/gello.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_effect.h" -#include "entity_familiar.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" #include // A point of Gello's cord: where it hangs (z its height, negative up) and how it moves. diff --git a/src/familiar_locust.cpp b/src/entity/familiar/locust.cpp similarity index 98% rename from src/familiar_locust.cpp rename to src/entity/familiar/locust.cpp index 1b46d46..1e163a9 100644 --- a/src/familiar_locust.cpp +++ b/src/entity/familiar/locust.cpp @@ -1,25 +1,25 @@ -#include "boss_ai.h" -#include "console.h" -#include "entity_bomb.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "item_config.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "pocket_items.h" -#include "room.h" -#include "room_grid.h" -#include "seeds.h" -#include "weapon.h" +#include "entity/boss/ai.h" +#include "ui/console.h" +#include "entity/weapon/bomb.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "engine/seeds.h" +#include "entity/weapon/weapon.h" #include #include diff --git a/src/familiar_repentance.cpp b/src/entity/familiar/repentance.cpp similarity index 99% rename from src/familiar_repentance.cpp rename to src/entity/familiar/repentance.cpp index 7eb2564..23445ae 100644 --- a/src/familiar_repentance.cpp +++ b/src/entity/familiar/repentance.cpp @@ -1,25 +1,25 @@ -#include "entity_familiar.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "capsule.h" -#include "game.h" -#include "hud.h" -#include "item_pool.h" -#include "level.h" -#include "log.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_descriptor.h" -#include "room_grid.h" -#include "seeds.h" +#include "entity/familiar/familiar.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "engine/capsule.h" +#include "game/game.h" +#include "ui/hud.h" +#include "entity/pickup/item_pool.h" +#include "level/level.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/familiar_shoot.cpp b/src/entity/familiar/shoot.cpp similarity index 99% rename from src/familiar_shoot.cpp rename to src/entity/familiar/shoot.cpp index d6f62e2..482d991 100644 --- a/src/familiar_shoot.cpp +++ b/src/entity/familiar/shoot.cpp @@ -1,15 +1,15 @@ -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" #include // The items and trinkets the familiars' shots read. diff --git a/src/familiar_sprinkler.cpp b/src/entity/familiar/sprinkler.cpp similarity index 98% rename from src/familiar_sprinkler.cpp rename to src/entity/familiar/sprinkler.cpp index f43891f..47f08c6 100644 --- a/src/familiar_sprinkler.cpp +++ b/src/entity/familiar/sprinkler.cpp @@ -1,15 +1,15 @@ -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "familiar_variants.h" -#include "game.h" -#include "npc_ai.h" -#include "room.h" -#include "weapon.h" -#include "weapon_fetus.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "entity/familiar/variants.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "entity/weapon/weapon.h" +#include "entity/weapon/fetus.h" #include #include #include diff --git a/src/familiar_update.cpp b/src/entity/familiar/update.cpp similarity index 98% rename from src/familiar_update.cpp rename to src/entity/familiar/update.cpp index acd9ed5..37e8f18 100644 --- a/src/familiar_update.cpp +++ b/src/entity/familiar/update.cpp @@ -1,21 +1,21 @@ -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity_poop.h" -#include "log.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "pocket_items.h" -#include "room.h" -#include "room_grid.h" -#include "weapon.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/poop.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "entity/weapon/weapon.h" #include #include diff --git a/src/familiar_variants.cpp b/src/entity/familiar/variants.cpp similarity index 99% rename from src/familiar_variants.cpp rename to src/entity/familiar/variants.cpp index 98327ed..b8f75a7 100644 --- a/src/familiar_variants.cpp +++ b/src/entity/familiar/variants.cpp @@ -1,25 +1,25 @@ -#include "familiar_variants.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity.h" -#include "grid_entity_poop.h" -#include "item_config.h" -#include "entity_tear.h" -#include "item_pool.h" -#include "kage_graphics.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "path_finder.h" -#include "boss_ai.h" -#include "entity_npc.h" -#include "room_render.h" -#include "room.h" -#include "room_grid.h" +#include "entity/familiar/variants.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/grid_entity.h" +#include "level/grid/poop.h" +#include "entity/pickup/item_config.h" +#include "entity/weapon/tear.h" +#include "entity/pickup/item_pool.h" +#include "engine/kage_graphics.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/path_finder.h" +#include "entity/boss/ai.h" +#include "entity/npc/npc.h" +#include "level/room_render.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/familiar_variants.h b/src/entity/familiar/variants.h similarity index 98% rename from src/familiar_variants.h rename to src/entity/familiar/variants.h index 080ee5c..62dd59f 100644 --- a/src/familiar_variants.h +++ b/src/entity/familiar/variants.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_familiar.h" +#include "entity/familiar/familiar.h" // The familiars from Sprinkler (3.120) on, each variant's setup, frame and room hooks (familiar_variants.cpp, // familiar_sprinkler.cpp, familiar_locust.cpp). diff --git a/src/familiar_walker.cpp b/src/entity/familiar/walker.cpp similarity index 98% rename from src/familiar_walker.cpp rename to src/entity/familiar/walker.cpp index 4f8b93d..94a6dff 100644 --- a/src/familiar_walker.cpp +++ b/src/entity/familiar/walker.cpp @@ -1,13 +1,13 @@ -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "game.h" -#include "entity_npc.h" -#include "grid_entity.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/npc/npc.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include // The walkers' hunt: their reach grows with their contact damage, and they head home once this far from the one diff --git a/src/familiar_wisp.cpp b/src/entity/familiar/wisp.cpp similarity index 98% rename from src/familiar_wisp.cpp rename to src/entity/familiar/wisp.cpp index 0765acc..c57d9f8 100644 --- a/src/familiar_wisp.cpp +++ b/src/entity/familiar/wisp.cpp @@ -1,15 +1,15 @@ -#include "familiar_wisp.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "game_over.h" -#include "kage_graphics.h" -#include "item_config.h" -#include "level.h" -#include "manager.h" -#include "room.h" +#include "entity/familiar/wisp.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "game/over.h" +#include "engine/kage_graphics.h" +#include "entity/pickup/item_config.h" +#include "level/level.h" +#include "game/manager.h" +#include "level/room.h" #include #include #include diff --git a/src/familiar_wisp.h b/src/entity/familiar/wisp.h similarity index 97% rename from src/familiar_wisp.h rename to src/entity/familiar/wisp.h index d2d0016..324e39f 100644 --- a/src/familiar_wisp.h +++ b/src/entity/familiar/wisp.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_familiar.h" +#include "entity/familiar/familiar.h" struct WispEntry; diff --git a/src/familiar_wisp_kinds.cpp b/src/entity/familiar/wisp_kinds.cpp similarity index 98% rename from src/familiar_wisp_kinds.cpp rename to src/entity/familiar/wisp_kinds.cpp index cc5e39c..bc10e21 100644 --- a/src/familiar_wisp_kinds.cpp +++ b/src/entity/familiar/wisp_kinds.cpp @@ -1,31 +1,31 @@ -#include "familiar_wisp.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_slot.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_lock.h" -#include "grid_entity_rock.h" -#include "item_config.h" -#include "item_pool.h" -#include "level.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "pocket_items.h" -#include "room.h" -#include "room_grid.h" -#include "room_render.h" -#include "weapon_rockets.h" +#include "entity/familiar/wisp.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/pickup/slot.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/lock.h" +#include "level/grid/rock.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_pool.h" +#include "level/level.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_render.h" +#include "entity/weapon/rockets.h" #include #include #include diff --git a/src/entity_list.cpp b/src/entity/list.cpp similarity index 98% rename from src/entity_list.cpp rename to src/entity/list.cpp index d890e31..f2c709c 100644 --- a/src/entity_list.cpp +++ b/src/entity/list.cpp @@ -1,15 +1,15 @@ -#include "entity_list.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "room.h" +#include "entity/list.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room.h" #include #include #include diff --git a/src/entity_list.h b/src/entity/list.h similarity index 98% rename from src/entity_list.h rename to src/entity/list.h index 1bc3290..f5d78c7 100644 --- a/src/entity_list.h +++ b/src/entity/list.h @@ -1,7 +1,7 @@ #pragma once -#include "entity.h" -#include "kage_graphics.h" +#include "entity/entity.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/npc_adult_leech.cpp b/src/entity/npc/adult_leech.cpp similarity index 99% rename from src/npc_adult_leech.cpp rename to src/entity/npc/adult_leech.cpp index 11db948..38a0258 100644 --- a/src/npc_adult_leech.cpp +++ b/src/entity/npc/adult_leech.cpp @@ -1,7 +1,7 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "room_grid.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "level/room_grid.h" #include // The Adult Leech's states: crawling, crossing the room (Rotgut's), burrowing, surfacing under its target, lunging diff --git a/src/npc_ai.cpp b/src/entity/npc/ai.cpp similarity index 97% rename from src/npc_ai.cpp rename to src/entity/npc/ai.cpp index 40b8e0a..4716c60 100644 --- a/src/npc_ai.cpp +++ b/src/entity/npc/ai.cpp @@ -1,18 +1,18 @@ -#include "npc_ai.h" -#include "boss_ai.h" -#include "boss_repentance.h" -#include "boss_final.h" -#include "npc_alt.h" -#include "game.h" -#include "manager.h" -#include "npc_fireplace.h" -#include "npc_gehenna.h" -#include "room_grid.h" -#include "room_special.h" -#include "sfx_manager.h" -#include "mines.h" -#include "entity_player_characters.h" -#include "tainted_characters.h" +#include "entity/npc/ai.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/boss/final.h" +#include "entity/npc/alt.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/npc/fireplace.h" +#include "entity/npc/gehenna.h" +#include "level/room_grid.h" +#include "level/room_special.h" +#include "game/sfx_manager.h" +#include "entity/weapon/mines.h" +#include "entity/player/characters.h" +#include "entity/player/tainted_characters.h" // A heart spawned for a Mask, charmed with it. static Entity* mask_heart_spawn(Entity_NPC& npc, Vector position, int subType, uint32_t seed, bool isCharmed) diff --git a/src/npc_ai.h b/src/entity/npc/ai.h similarity index 95% rename from src/npc_ai.h rename to src/entity/npc/ai.h index ce4134f..481904f 100644 --- a/src/npc_ai.h +++ b/src/entity/npc/ai.h @@ -1,10 +1,10 @@ #pragma once -#include "entity_npc.h" -#include "log.h" -#include "lua_engine.h" -#include "seeds.h" -#include "sfx_manager.h" +#include "entity/npc/npc.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "engine/seeds.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/npc_alt.h b/src/entity/npc/alt.h similarity index 98% rename from src/npc_alt.h rename to src/entity/npc/alt.h index cf8d508..0a60fd6 100644 --- a/src/npc_alt.h +++ b/src/entity/npc/alt.h @@ -1,7 +1,7 @@ #pragma once -#include "npc_depths.h" -#include "game.h" +#include "entity/npc/depths.h" +#include "game/game.h" // The splat of the stone and lava enemies: black, lifted a little. constexpr ColorMod ROCK_SPLAT_COLOR = {{0, 0, 0, 1}, {0, 0, 0, 0}, {30 / 255.0f, 30 / 255.0f, 30 / 255.0f}}; diff --git a/src/npc_army_fly.cpp b/src/entity/npc/army_fly.cpp similarity index 98% rename from src/npc_army_fly.cpp rename to src/entity/npc/army_fly.cpp index a238cb3..e53ef93 100644 --- a/src/npc_army_fly.cpp +++ b/src/entity/npc/army_fly.cpp @@ -1,8 +1,8 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "deathmatch_manager.h" -#include "entity_player.h" -#include "room_grid.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "game/deathmatch_manager.h" +#include "entity/player/player.h" +#include "level/room_grid.h" // Army flies line up into marching columns: one joins the back of another within 42 and the column follows its head, 40 // apart at up to 8. The head marches along the grid's axes at 1.6, wobbling, turning before walls and toward its target diff --git a/src/npc_baby_begotten.cpp b/src/entity/npc/baby_begotten.cpp similarity index 98% rename from src/npc_baby_begotten.cpp rename to src/entity/npc/baby_begotten.cpp index 5f97332..5298c78 100644 --- a/src/npc_baby_begotten.cpp +++ b/src/entity/npc/baby_begotten.cpp @@ -1,7 +1,7 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "entity_laser.h" -#include "entity_player.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" // The Baby Begotten floats toward its target, sidestepping out of the way a player aims, and keeps out of other // Begottens' lines of attack. Close to its target it charges along the axis it lies on, then stops, recoils and diff --git a/src/npc_baby_long_legs.cpp b/src/entity/npc/baby_long_legs.cpp similarity index 97% rename from src/npc_baby_long_legs.cpp rename to src/entity/npc/baby_long_legs.cpp index fa03c19..c78a878 100644 --- a/src/npc_baby_long_legs.cpp +++ b/src/entity/npc/baby_long_legs.cpp @@ -1,9 +1,9 @@ -#include "npc_caves.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "game/sfx_manager.h" // Baby Long Legs run from their target and lay spiders (the small ones a Sack and white creep). Crazy Long Legs chase // it and burst into a ring of lobbed shots (the small ones a cross). Bursting Sack calms them. diff --git a/src/npc_ball_and_chain.cpp b/src/entity/npc/ball_and_chain.cpp similarity index 99% rename from src/npc_ball_and_chain.cpp rename to src/entity/npc/ball_and_chain.cpp index 159a14f..41e2584 100644 --- a/src/npc_ball_and_chain.cpp +++ b/src/entity/npc/ball_and_chain.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "grid_entity.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "level/grid/grid_entity.h" #include #include diff --git a/src/npc_basement.h b/src/entity/npc/basement.h similarity index 99% rename from src/npc_basement.h rename to src/entity/npc/basement.h index 7bdec31..6669286 100644 --- a/src/npc_basement.h +++ b/src/entity/npc/basement.h @@ -1,6 +1,6 @@ #pragma once -#include "npc_ai.h" +#include "entity/npc/ai.h" // The Hopper's Trite variant, which several bosses summon. constexpr int HOPPER_TRITE = 1; diff --git a/src/npc_big_bony.cpp b/src/entity/npc/big_bony.cpp similarity index 98% rename from src/npc_big_bony.cpp rename to src/entity/npc/big_bony.cpp index 0ccb5a4..1f15b18 100644 --- a/src/npc_big_bony.cpp +++ b/src/entity/npc/big_bony.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "grid_entity.h" -#include "path_finder.h" +#include "entity/npc/alt.h" +#include "level/grid/grid_entity.h" +#include "level/path_finder.h" // Big Bony and its bouncing bones (variant 10) leave bone colored splats. constexpr int BONY_BONE_VARIANT = 10; diff --git a/src/npc_bishop.cpp b/src/entity/npc/bishop.cpp similarity index 96% rename from src/npc_bishop.cpp rename to src/entity/npc/bishop.cpp index bf737b0..db39430 100644 --- a/src/npc_bishop.cpp +++ b/src/entity/npc/bishop.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "level/room.h" +#include "level/room_grid.h" // The Bishop wakes on its cell and holds there, marking it for the pathfinder (unless it rides a minecart). Hit, it // answers two times in three with a plus of glowing shots. diff --git a/src/npc_black_maw.cpp b/src/entity/npc/black_maw.cpp similarity index 97% rename from src/npc_black_maw.cpp rename to src/entity/npc/black_maw.cpp index e62cb09..4f133ce 100644 --- a/src/npc_black_maw.cpp +++ b/src/entity/npc/black_maw.cpp @@ -1,9 +1,9 @@ -#include "npc_depths.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "game.h" -#include "menu_manager.h" -#include "room.h" +#include "entity/npc/depths.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "ui/menu/manager.h" +#include "level/room.h" // The Black Maw drifts after its target (staying 20 off it, or wandering when confused), and charges off across the // room when level with it, coming back the other way. One frame in 120 it calls up a leech while fewer than eight diff --git a/src/npc_blaster.cpp b/src/entity/npc/blaster.cpp similarity index 98% rename from src/npc_blaster.cpp rename to src/entity/npc/blaster.cpp index 934aedf..34500ff 100644 --- a/src/npc_blaster.cpp +++ b/src/entity/npc/blaster.cpp @@ -1,5 +1,5 @@ -#include "npc_alt.h" -#include "boss_ai.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" // The Blaster takes a quarter of any damage but explosions and crushing. Wandering, it starts its attack one time in // 70 while fewer than 4 fly bombs fly, facing its prey. diff --git a/src/npc_blister.cpp b/src/entity/npc/blister.cpp similarity index 98% rename from src/npc_blister.cpp rename to src/entity/npc/blister.cpp index ffd8b65..188b36a 100644 --- a/src/npc_blister.cpp +++ b/src/entity/npc/blister.cpp @@ -1,6 +1,6 @@ -#include "npc_depths.h" -#include "game.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "game/game.h" +#include "game/sfx_manager.h" // The Blister hops toward its prey (or the ball it spat) along the axis it is farther along, up to 40 a hop, every 0 // to 29 frames. One time in ten, with no ball out, it spits a rolling ball at 4 instead (Little Horn's dark ball). diff --git a/src/npc_bloaty.cpp b/src/entity/npc/bloaty.cpp similarity index 98% rename from src/npc_bloaty.cpp rename to src/entity/npc/bloaty.cpp index ee24bd9..c8ee52b 100644 --- a/src/npc_bloaty.cpp +++ b/src/entity/npc/bloaty.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "entity_effect.h" -#include "entity_projectile.h" -#include "room.h" +#include "entity/npc/alt.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" +#include "level/room.h" #include #include diff --git a/src/npc_blood_puppy.cpp b/src/entity/npc/blood_puppy.cpp similarity index 98% rename from src/npc_blood_puppy.cpp rename to src/entity/npc/blood_puppy.cpp index 6906085..22e4bfc 100644 --- a/src/npc_blood_puppy.cpp +++ b/src/entity/npc/blood_puppy.cpp @@ -1,11 +1,11 @@ -#include "npc_alt.h" -#include "npc_gehenna.h" -#include "entity_player.h" -#include "boss_ai.h" -#include "capsule.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/npc/gehenna.h" +#include "entity/player/player.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "level/room_grid.h" #include // The Blood Puppy (802), the familiar's pet turned enemy (variant 0 small, 1 grown), tied to the familiar it came diff --git a/src/npc_blurb.cpp b/src/entity/npc/blurb.cpp similarity index 98% rename from src/npc_blurb.cpp rename to src/entity/npc/blurb.cpp index 7115885..1afe729 100644 --- a/src/npc_blurb.cpp +++ b/src/entity/npc/blurb.cpp @@ -1,7 +1,7 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "level.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "level/level.h" +#include "game/sfx_manager.h" // The Blurb walks its grid path at 0.3 with its head full, groaning one time in 3 while it sees its prey. Within 100 // of it (or hurt to half health) it bursts after 4 frames: 7 to 9 lobbed shots onto its prey (no farther than 100), diff --git a/src/npc_boil.cpp b/src/entity/npc/boil.cpp similarity index 99% rename from src/npc_boil.cpp rename to src/entity/npc/boil.cpp index dddde32..a3a9d30 100644 --- a/src/npc_boil.cpp +++ b/src/entity/npc/boil.cpp @@ -1,8 +1,8 @@ -#include "npc_caves.h" -#include "game.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "game/game.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // The Boil family: the Boil spits a spray of blood, the Gut a big exploding glob, the Sack a spider. constexpr int BOIL_GUT = 1; diff --git a/src/npc_bomb_gagger.cpp b/src/entity/npc/bomb_gagger.cpp similarity index 96% rename from src/npc_bomb_gagger.cpp rename to src/entity/npc/bomb_gagger.cpp index 34784b8..e8e83e0 100644 --- a/src/npc_bomb_gagger.cpp +++ b/src/entity/npc/bomb_gagger.cpp @@ -1,9 +1,9 @@ -#include "npc_alt.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "path_finder.h" +#include "entity/npc/alt.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "level/path_finder.h" #include // The Bomb Gagger wanders, or runs from the bomb it threw. Without one out, one time in five once ready, it coughs up diff --git a/src/npc_bomb_grimace.cpp b/src/entity/npc/bomb_grimace.cpp similarity index 98% rename from src/npc_bomb_grimace.cpp rename to src/entity/npc/bomb_grimace.cpp index 4989108..4c1727f 100644 --- a/src/npc_bomb_grimace.cpp +++ b/src/entity/npc/bomb_grimace.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_pickup.h" -#include "level.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/pickup/pickup.h" +#include "level/level.h" // The Bomb Grimace: an invincible face in the wall held in its cell (its cell walls the grid path off). It starts // with a bomb before it (but in the mineshaft), and once its bomb is gone it spits another 30 frames later. The diff --git a/src/npc_boom_fly.cpp b/src/entity/npc/boom_fly.cpp similarity index 98% rename from src/npc_boom_fly.cpp rename to src/entity/npc/boom_fly.cpp index f38eb01..a57c588 100644 --- a/src/npc_boom_fly.cpp +++ b/src/entity/npc/boom_fly.cpp @@ -1,12 +1,12 @@ -#include "npc_caves.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "game.h" -#include "player_manager.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/player/manager.h" +#include "level/room.h" +#include "game/sfx_manager.h" // The Boom Fly's variants: the plain and red ones, the drowned one, the Dragon Fly, the Bone Fly, the sick one and // the tainted one. diff --git a/src/entity_npc_boss.cpp b/src/entity/npc/boss.cpp similarity index 97% rename from src/entity_npc_boss.cpp rename to src/entity/npc/boss.cpp index 4c699fb..59a514d 100644 --- a/src/entity_npc_boss.cpp +++ b/src/entity/npc/boss.cpp @@ -1,15 +1,15 @@ -#include "boss_ai.h" -#include "boss_final.h" -#include "entity_effect_combat.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "manager.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "data.h" -#include "room_config.h" -#include "room_descriptor.h" +#include "entity/boss/ai.h" +#include "entity/boss/final.h" +#include "entity/effect/combat.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/manager.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "engine/data.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" #include // Colostomia's landing as it appears: a shake, and in a flooded room water thrown from a 100 by 60 ellipse. diff --git a/src/npc_bouncer.cpp b/src/entity/npc/bouncer.cpp similarity index 98% rename from src/npc_bouncer.cpp rename to src/entity/npc/bouncer.cpp index 0b8ec97..ac0cd67 100644 --- a/src/npc_bouncer.cpp +++ b/src/entity/npc/bouncer.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "entity_effect.h" -#include "entity_projectile.h" +#include "entity/npc/alt.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" // The Bouncer flees its target, whimpering now and then. Once its fuse (v1.x, 6 to 10 seconds, burned faster by // damage) is out, while fleeing, it inflates one frame in 20 and then chases its target, quivering. diff --git a/src/npc_brain.cpp b/src/entity/npc/brain.cpp similarity index 98% rename from src/npc_brain.cpp rename to src/entity/npc/brain.cpp index 64689db..7c0478d 100644 --- a/src/npc_brain.cpp +++ b/src/entity/npc/brain.cpp @@ -1,9 +1,9 @@ -#include "npc_caves.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_tear.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/weapon/tear.h" +#include "game/sfx_manager.h" // The Brain, the Black Globin's head and the Poison Mind each crawl about bleeding and leaving creep, then lunge. constexpr uint64_t FLAG_BRAIN_CALM = FLAG_CONFUSION | FLAG_FEAR | FLAG_SHRINK; diff --git a/src/npc_bubbles.cpp b/src/entity/npc/bubbles.cpp similarity index 97% rename from src/npc_bubbles.cpp rename to src/entity/npc/bubbles.cpp index 1807b5b..e96dc4e 100644 --- a/src/npc_bubbles.cpp +++ b/src/entity/npc/bubbles.cpp @@ -1,10 +1,10 @@ -#include "npc_alt.h" -#include "entity_effect.h" -#include "entity_projectile.h" -#include "grid_entity.h" -#include "menu_manager.h" -#include "npc_basement.h" -#include "path_finder.h" +#include "entity/npc/alt.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" +#include "level/grid/grid_entity.h" +#include "ui/menu/manager.h" +#include "entity/npc/basement.h" +#include "level/path_finder.h" // Bubbles walks toward its target and charges a bubble burst over 100 frames: then, one time in 120 a frame within // 200 of its target, it farts (a 120 wide cloud) and blows 12 bubbles over 12 frames. diff --git a/src/npc_bulb.cpp b/src/entity/npc/bulb.cpp similarity index 97% rename from src/npc_bulb.cpp rename to src/entity/npc/bulb.cpp index 8c60ae4..f9ad895 100644 --- a/src/npc_bulb.cpp +++ b/src/entity/npc/bulb.cpp @@ -1,12 +1,12 @@ -#include "npc_basement.h" -#include "active_items.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "item_config.h" -#include "manager.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/npc/basement.h" +#include "entity/player/active_items.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "level/room.h" +#include "game/sfx_manager.h" // The Bulb, and the Black Bulb that always attacks and bursts into a plus of shots. constexpr int BULB_BLACK = 6; diff --git a/src/npc_butt_slicker.cpp b/src/entity/npc/butt_slicker.cpp similarity index 98% rename from src/npc_butt_slicker.cpp rename to src/entity/npc/butt_slicker.cpp index fa8364e..7aa3923 100644 --- a/src/npc_butt_slicker.cpp +++ b/src/entity/npc/butt_slicker.cpp @@ -1,11 +1,11 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_projectile.h" -#include "grid_entity.h" -#include "path_finder.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "level/grid/grid_entity.h" +#include "level/path_finder.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/npc_candler.cpp b/src/entity/npc/candler.cpp similarity index 98% rename from src/npc_candler.cpp rename to src/entity/npc/candler.cpp index b32a8fe..42b0301 100644 --- a/src/npc_candler.cpp +++ b/src/entity/npc/candler.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "npc_fireplace.h" -#include "boss_ai.h" -#include "room.h" +#include "entity/npc/alt.h" +#include "entity/npc/fireplace.h" +#include "entity/boss/ai.h" +#include "level/room.h" #include // The Candler drifts diagonally, bouncing off walls, fleeing a target within 180 when afraid or shrunk and wandering diff --git a/src/npc_caves.h b/src/entity/npc/caves.h similarity index 98% rename from src/npc_caves.h rename to src/entity/npc/caves.h index 883816e..cd24347 100644 --- a/src/npc_caves.h +++ b/src/entity/npc/caves.h @@ -1,6 +1,6 @@ #pragma once -#include "npc_basement.h" +#include "entity/npc/basement.h" // The Caves, Catacombs and Flooded Caves enemies' AIs the dispatcher (npc_ai_update) runs by type. void npc_boom_fly_update(Entity_NPC& npc); diff --git a/src/entity_npc_champion.cpp b/src/entity/npc/champion.cpp similarity index 99% rename from src/entity_npc_champion.cpp rename to src/entity/npc/champion.cpp index 493d4ca..9bf6851 100644 --- a/src/entity_npc_champion.cpp +++ b/src/entity/npc/champion.cpp @@ -1,14 +1,14 @@ -#include "entity_npc.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_poop.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/npc.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/poop.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/npc_charger_l2.cpp b/src/entity/npc/charger_l2.cpp similarity index 98% rename from src/npc_charger_l2.cpp rename to src/entity/npc/charger_l2.cpp index 85d2233..b56c95b 100644 --- a/src/npc_charger_l2.cpp +++ b/src/entity/npc/charger_l2.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "npc_gehenna.h" -#include "entity_player.h" +#include "entity/npc/alt.h" +#include "entity/npc/gehenna.h" +#include "entity/player/player.h" #include #include diff --git a/src/npc_clickety_clack.cpp b/src/entity/npc/clickety_clack.cpp similarity index 98% rename from src/npc_clickety_clack.cpp rename to src/entity/npc/clickety_clack.cpp index 7c958dd..4e9b32c 100644 --- a/src/npc_clickety_clack.cpp +++ b/src/entity/npc/clickety_clack.cpp @@ -1,14 +1,14 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "boss_repentance.h" -#include "homing_laser.h" -#include "entity_config.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "grid_entity.h" -#include "path_finder.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/weapon/homing_laser.h" +#include "entity/config.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "level/grid/grid_entity.h" +#include "level/path_finder.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include diff --git a/src/npc_clotty.cpp b/src/entity/npc/clotty.cpp similarity index 98% rename from src/npc_clotty.cpp rename to src/entity/npc/clotty.cpp index e207d47..61391bf 100644 --- a/src/npc_clotty.cpp +++ b/src/entity/npc/clotty.cpp @@ -1,9 +1,9 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "npc_ai.h" -#include "room_grid.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "entity/npc/ai.h" +#include "level/room_grid.h" #include // The clotties this AI runs: the Clotty with its Clot, I.Blob and Grilled variants, the Mega Clotty and the Cloggy. diff --git a/src/npc_cod_worm.cpp b/src/entity/npc/cod_worm.cpp similarity index 99% rename from src/npc_cod_worm.cpp rename to src/entity/npc/cod_worm.cpp index 0321868..92a3e33 100644 --- a/src/npc_cod_worm.cpp +++ b/src/entity/npc/cod_worm.cpp @@ -1,5 +1,5 @@ -#include "boss_ai.h" -#include "npc_depths.h" +#include "entity/boss/ai.h" +#include "entity/npc/depths.h" // Its burrow: how near a target keeps it under, and how long it stays out. constexpr float COD_WORM_HIDE_REACH_SQUARED = 22500; diff --git a/src/npc_cohort.cpp b/src/entity/npc/cohort.cpp similarity index 99% rename from src/npc_cohort.cpp rename to src/entity/npc/cohort.cpp index a5b31df..e5a9f3d 100644 --- a/src/npc_cohort.cpp +++ b/src/entity/npc/cohort.cpp @@ -1,5 +1,5 @@ -#include "npc_gehenna.h" -#include "entity_effect.h" +#include "entity/npc/gehenna.h" +#include "entity/effect/effect.h" #include // The Cohort idles for 8 frames, then one time in three (two in three once it has jumped four times) attacks a target diff --git a/src/npc_collision.cpp b/src/entity/npc/collision.cpp similarity index 99% rename from src/npc_collision.cpp rename to src/entity/npc/collision.cpp index ef5b8b7..820fb00 100644 --- a/src/npc_collision.cpp +++ b/src/entity/npc/collision.cpp @@ -1,17 +1,17 @@ -#include "entity_effect.h" -#include "npc_basement.h" -#include "deathmatch_manager.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "grid_entity_door.h" -#include "boss_ai.h" -#include "boss_repentance.h" -#include "game.h" -#include "npc_alt.h" -#include "room.h" +#include "entity/effect/effect.h" +#include "entity/npc/basement.h" +#include "game/deathmatch_manager.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "level/grid/door.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "game/game.h" +#include "entity/npc/alt.h" +#include "level/room.h" #include #include #include diff --git a/src/npc_corn_mine.cpp b/src/entity/npc/corn_mine.cpp similarity index 94% rename from src/npc_corn_mine.cpp rename to src/entity/npc/corn_mine.cpp index 805ae0b..ed94c6c 100644 --- a/src/npc_corn_mine.cpp +++ b/src/entity/npc/corn_mine.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_projectile.h" -#include "npc_caves.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/weapon/projectile.h" +#include "entity/npc/caves.h" // The Corn Mine waits (6 seconds at most), pulses once its target comes within 60, then bursts. constexpr int CORN_MINE_PULSE = NPC_STATE_ATTACK; diff --git a/src/npc_cultist.cpp b/src/entity/npc/cultist.cpp similarity index 99% rename from src/npc_cultist.cpp rename to src/entity/npc/cultist.cpp index f903b24..f26a25b 100644 --- a/src/npc_cultist.cpp +++ b/src/entity/npc/cultist.cpp @@ -1,6 +1,6 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "entity_config.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "entity/config.h" // The Cultist (variant 0) drifts about near the enemies by its target, raising the enemies killed in the room (up to // 100 health of them) at the spot where most fell, and casts a purple ball. The Blood Cultist (variant 1) lunges at a diff --git a/src/npc_danny.cpp b/src/entity/npc/danny.cpp similarity index 98% rename from src/npc_danny.cpp rename to src/entity/npc/danny.cpp index 9dcbbeb..fa9b9f8 100644 --- a/src/npc_danny.cpp +++ b/src/entity/npc/danny.cpp @@ -1,8 +1,8 @@ -#include "npc_alt.h" -#include "entity_effect.h" -#include "npc_fireplace.h" -#include "path_finder.h" -#include "room.h" +#include "entity/npc/alt.h" +#include "entity/effect/effect.h" +#include "entity/npc/fireplace.h" +#include "level/path_finder.h" +#include "level/room.h" #include // Danny (variant 0) throws rocks and rock spiders, Coal Boy (variant 1) coal spiders and coal fires. Their splats are diff --git a/src/npc_dark_esau.cpp b/src/entity/npc/dark_esau.cpp similarity index 98% rename from src/npc_dark_esau.cpp rename to src/entity/npc/dark_esau.cpp index 42b6d45..bb65f55 100644 --- a/src/npc_dark_esau.cpp +++ b/src/entity/npc/dark_esau.cpp @@ -1,16 +1,16 @@ -#include "tainted_characters.h" -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "level.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/player/tainted_characters.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "level/level.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/npc_deaths_head.cpp b/src/entity/npc/deaths_head.cpp similarity index 98% rename from src/npc_deaths_head.cpp rename to src/entity/npc/deaths_head.cpp index b4cd8b8..4a348a1 100644 --- a/src/npc_deaths_head.cpp +++ b/src/entity/npc/deaths_head.cpp @@ -1,9 +1,9 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "camera.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "game/sfx_manager.h" #include // The Death's Heads: the plain one, the Dank one (which can be hurt and outlives the room), the Cursed one with its diff --git a/src/npc_deep_gaper.cpp b/src/entity/npc/deep_gaper.cpp similarity index 98% rename from src/npc_deep_gaper.cpp rename to src/entity/npc/deep_gaper.cpp index ad18eac..530a7d4 100644 --- a/src/npc_deep_gaper.cpp +++ b/src/entity/npc/deep_gaper.cpp @@ -1,7 +1,7 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // One Deep Gaper in 3 without a subtype rolls one of 6 heads, the sixth carrying a leech it throws as it dies. diff --git a/src/npc_depths.h b/src/entity/npc/depths.h similarity index 98% rename from src/npc_depths.h rename to src/entity/npc/depths.h index d04788b..67695dd 100644 --- a/src/npc_depths.h +++ b/src/entity/npc/depths.h @@ -1,6 +1,6 @@ #pragma once -#include "npc_caves.h" +#include "entity/npc/caves.h" // The Depths, Womb and alt path enemies' AIs the dispatcher (npc_ai_update) runs by type. void npc_guts_update(Entity_NPC& npc); diff --git a/src/npc_dip.cpp b/src/entity/npc/dip.cpp similarity index 96% rename from src/npc_dip.cpp rename to src/entity/npc/dip.cpp index d564c3f..e50b787 100644 --- a/src/npc_dip.cpp +++ b/src/entity/npc/dip.cpp @@ -1,11 +1,11 @@ -#include "npc_ai.h" -#include "active_items.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "game.h" -#include "menu_manager.h" -#include "room.h" +#include "entity/npc/ai.h" +#include "entity/player/active_items.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "ui/menu/manager.h" +#include "level/room.h" constexpr int DIP_BIG_CORN = 3; constexpr int FAMILIAR_DIP_CORN = 2; diff --git a/src/npc_dirt.cpp b/src/entity/npc/dirt.cpp similarity index 96% rename from src/npc_dirt.cpp rename to src/entity/npc/dirt.cpp index 88e021d..aa0f8f1 100644 --- a/src/npc_dirt.cpp +++ b/src/entity/npc/dirt.cpp @@ -1,9 +1,9 @@ -#include "npc_basement.h" -#include "fx_layers.h" -#include "gl.h" -#include "kage_graphics.h" -#include "room.h" -#include "room_render.h" +#include "entity/npc/basement.h" +#include "engine/fx_layers.h" +#include "engine/gl.h" +#include "engine/kage_graphics.h" +#include "level/room.h" +#include "level/room_render.h" #include #include diff --git a/src/npc_dople.cpp b/src/entity/npc/dople.cpp similarity index 98% rename from src/npc_dople.cpp rename to src/entity/npc/dople.cpp index 29e8f6d..4a902ef 100644 --- a/src/npc_dople.cpp +++ b/src/entity/npc/dople.cpp @@ -1,10 +1,10 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "npc_gehenna.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/npc/gehenna.h" #include -#include "entity_player.h" -#include "room.h" -#include "weapon.h" +#include "entity/player/player.h" +#include "level/room.h" +#include "entity/weapon/weapon.h" // The Dople (variant 0) and Evil Twin (variant 1) mirror their player through the room's center, facing the other // way (the same way when confused), and shoot back whenever the player shoots. The Dople alternates its shots side to diff --git a/src/entity_npc_drop.cpp b/src/entity/npc/drop.cpp similarity index 97% rename from src/entity_npc_drop.cpp rename to src/entity/npc/drop.cpp index adbd448..17b9fc7 100644 --- a/src/entity_npc_drop.cpp +++ b/src/entity/npc/drop.cpp @@ -1,18 +1,18 @@ -#include "active_items.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "item_overlay.h" -#include "item_pool.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "persistent_game_data.h" -#include "room.h" -#include "room_grid.h" +#include "entity/player/active_items.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/pickup/item_overlay.h" +#include "entity/pickup/item_pool.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "game/persistent_game_data.h" +#include "level/room.h" +#include "level/room_grid.h" #include // The percent chance a champion drops: always, a third on hard unless the kill makes sure, at least half with Purple diff --git a/src/npc_dukie.cpp b/src/entity/npc/dukie.cpp similarity index 98% rename from src/npc_dukie.cpp rename to src/entity/npc/dukie.cpp index a9974b4..824acdf 100644 --- a/src/npc_dukie.cpp +++ b/src/entity/npc/dukie.cpp @@ -1,6 +1,6 @@ -#include "npc_caves.h" -#include "game.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "game/game.h" +#include "game/sfx_manager.h" // Dukie bounces about at 0.3 a frame along each axis it moves on (steered by up to half that by its controller). Its // bar empties over 90 frames, then one time in ten (while the room holds 7 enemies or fewer) it coughs up a dart fly diff --git a/src/npc_dump.cpp b/src/entity/npc/dump.cpp similarity index 98% rename from src/npc_dump.cpp rename to src/entity/npc/dump.cpp index db0dc4c..4420566 100644 --- a/src/npc_dump.cpp +++ b/src/entity/npc/dump.cpp @@ -1,9 +1,9 @@ -#include "npc_alt.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_projectile.h" -#include "grid_entity.h" -#include "path_finder.h" +#include "entity/npc/alt.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" +#include "level/grid/grid_entity.h" +#include "level/path_finder.h" #include #include diff --git a/src/npc_dust.cpp b/src/entity/npc/dust.cpp similarity index 96% rename from src/npc_dust.cpp rename to src/entity/npc/dust.cpp index b3fb105..06ba9bb 100644 --- a/src/npc_dust.cpp +++ b/src/entity/npc/dust.cpp @@ -1,10 +1,10 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "grid_entity.h" -#include "path_finder.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "level/grid/grid_entity.h" +#include "level/path_finder.h" +#include "level/room.h" +#include "level/room_grid.h" #include // The Dust is unseen away from players: fully seen within 80 of the nearest, faded out by 200, and only touchable diff --git a/src/npc_dusty_deaths_head.cpp b/src/entity/npc/dusty_deaths_head.cpp similarity index 98% rename from src/npc_dusty_deaths_head.cpp rename to src/entity/npc/dusty_deaths_head.cpp index ec62369..520f5e9 100644 --- a/src/npc_dusty_deaths_head.cpp +++ b/src/entity/npc/dusty_deaths_head.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "entity_effect.h" -#include "room.h" +#include "entity/npc/alt.h" +#include "entity/effect/effect.h" +#include "level/room.h" #include // A Dusty Death's Head drifts across the room from a room's width off one side (subtype 0 heads left, 1 right) at diff --git a/src/npc_embryo.cpp b/src/entity/npc/embryo.cpp similarity index 97% rename from src/npc_embryo.cpp rename to src/entity/npc/embryo.cpp index 471ecc4..7433cb3 100644 --- a/src/npc_embryo.cpp +++ b/src/entity/npc/embryo.cpp @@ -1,4 +1,4 @@ -#include "npc_basement.h" +#include "entity/npc/basement.h" constexpr float EMBRYO_FRICTION = 0.8f; constexpr float LANDED_FRICTION = 0.7f; diff --git a/src/npc_eternal_fly.cpp b/src/entity/npc/eternal_fly.cpp similarity index 98% rename from src/npc_eternal_fly.cpp rename to src/entity/npc/eternal_fly.cpp index 9616be6..310d457 100644 --- a/src/npc_eternal_fly.cpp +++ b/src/entity/npc/eternal_fly.cpp @@ -1,7 +1,7 @@ -#include "npc_caves.h" -#include "entity_config.h" -#include "game.h" -#include "room.h" +#include "entity/npc/caves.h" +#include "entity/config.h" +#include "game/game.h" +#include "level/room.h" // An eternal fly orbits its spot: 25 by 20 around a parent at 0.04 turns of a half circle a frame, else 60 by 50 at // 0.02. Its orbit widens over 90 frames (30 around a Keeper's Hanger) and it eases halfway there each frame (all the diff --git a/src/npc_evis.cpp b/src/entity/npc/evis.cpp similarity index 99% rename from src/npc_evis.cpp rename to src/entity/npc/evis.cpp index 4a115f1..6fe0d73 100644 --- a/src/npc_evis.cpp +++ b/src/entity/npc/evis.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "capsule.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "level/room_grid.h" #include // Evis walks the grid's axes, marking its cell, and lashes out its cord at a target in line within 30 (or across the diff --git a/src/npc_eye.cpp b/src/entity/npc/eye.cpp similarity index 98% rename from src/npc_eye.cpp rename to src/entity/npc/eye.cpp index ea749a8..39f1a9d 100644 --- a/src/npc_eye.cpp +++ b/src/entity/npc/eye.cpp @@ -1,11 +1,11 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "camera.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "grid_entity.h" -#include "npc_caves.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/caves.h" // The Eye (variant 0) and the Bloodshot Eye turn their pupils toward their target and fire a beam, the Holy Eye calls // down beams of light around its target. diff --git a/src/npc_faceless.cpp b/src/entity/npc/faceless.cpp similarity index 99% rename from src/npc_faceless.cpp rename to src/entity/npc/faceless.cpp index 698f85b..e9e6a4d 100644 --- a/src/npc_faceless.cpp +++ b/src/entity/npc/faceless.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "path_finder.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "level/path_finder.h" +#include "level/room_grid.h" #include // The Faceless' states: asleep then walking, shooting, waking with a burst of blood, and summoning at the Heretic's diff --git a/src/npc_fartigan.cpp b/src/entity/npc/fartigan.cpp similarity index 96% rename from src/npc_fartigan.cpp rename to src/entity/npc/fartigan.cpp index 87ac9bf..5d9a1e5 100644 --- a/src/npc_fartigan.cpp +++ b/src/entity/npc/fartigan.cpp @@ -1,9 +1,9 @@ -#include "npc_alt.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_projectile.h" -#include "grid_entity.h" -#include "path_finder.h" +#include "entity/npc/alt.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" +#include "level/grid/grid_entity.h" +#include "level/path_finder.h" // The Fartigan walks at 1.2 (1 while farting) and blows itself up within 40 of its target, checked every 5 frames. constexpr float FARTIGAN_SPEED = 1.2f; diff --git a/src/npc_fat_bat.cpp b/src/entity/npc/fat_bat.cpp similarity index 98% rename from src/npc_fat_bat.cpp rename to src/entity/npc/fat_bat.cpp index ae391b0..b6682c5 100644 --- a/src/npc_fat_bat.cpp +++ b/src/entity/npc/fat_bat.cpp @@ -1,7 +1,7 @@ -#include "npc_caves.h" -#include "game.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "game/game.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include // The Fat Bat flies 30 up, drifting at 0.45 a frame toward a line through its target along the diagonal it lies most diff --git a/src/npc_fat_sack.cpp b/src/entity/npc/fat_sack.cpp similarity index 98% rename from src/npc_fat_sack.cpp rename to src/entity/npc/fat_sack.cpp index 8eb7479..06555ef 100644 --- a/src/npc_fat_sack.cpp +++ b/src/entity/npc/fat_sack.cpp @@ -1,8 +1,8 @@ -#include "npc_depths.h" -#include "entity_effect.h" -#include "game.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // The Fat Sack walks its grid path at 0.3, groaning one time in 50. One time in 50 it leaps where its prey will be // in 10 frames (or the nearest free spot within 120), gliding there 0.02 of the way more each frame after 10 frames diff --git a/src/npc_fire_worm.cpp b/src/entity/npc/fire_worm.cpp similarity index 98% rename from src/npc_fire_worm.cpp rename to src/entity/npc/fire_worm.cpp index 0382ade..ac6510f 100644 --- a/src/npc_fire_worm.cpp +++ b/src/entity/npc/fire_worm.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "npc_caves.h" -#include "npc_fireplace.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" +#include "entity/npc/fireplace.h" // The Fire Worm lives in the lava pits: it digs out of a free pit, spits a fireball at 14 when it sees its prey, digs // in, and comes out of another pit (half the time, while its prey is off the pits or over 100 away and within 1000). diff --git a/src/npc_fireplace.cpp b/src/entity/npc/fireplace.cpp similarity index 98% rename from src/npc_fireplace.cpp rename to src/entity/npc/fireplace.cpp index e3bb15d..0de0824 100644 --- a/src/npc_fireplace.cpp +++ b/src/entity/npc/fireplace.cpp @@ -1,14 +1,14 @@ -#include "npc_fireplace.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "npc_ai.h" -#include "npc_alt.h" -#include "npc_caves.h" -#include "room.h" +#include "entity/npc/fireplace.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "entity/npc/alt.h" +#include "entity/npc/caves.h" +#include "level/room.h" #include // A fire's dying animation for each of its looks. diff --git a/src/npc_fireplace.h b/src/entity/npc/fireplace.h similarity index 98% rename from src/npc_fireplace.h rename to src/entity/npc/fireplace.h index 3943fd6..bc28238 100644 --- a/src/npc_fireplace.h +++ b/src/entity/npc/fireplace.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_npc.h" +#include "entity/npc/npc.h" // A fireplace's variants (entities2.xml's 33): the fires, the moveable ones and Coal. enum FireplaceVariant : int diff --git a/src/npc_fissure.cpp b/src/entity/npc/fissure.cpp similarity index 98% rename from src/npc_fissure.cpp rename to src/entity/npc/fissure.cpp index 6088818..84ae585 100644 --- a/src/npc_fissure.cpp +++ b/src/entity/npc/fissure.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "grid_entity.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "level/grid/grid_entity.h" #include #include diff --git a/src/npc_fistuloid.cpp b/src/entity/npc/fistuloid.cpp similarity index 97% rename from src/npc_fistuloid.cpp rename to src/entity/npc/fistuloid.cpp index 7b78393..62ebfa8 100644 --- a/src/npc_fistuloid.cpp +++ b/src/entity/npc/fistuloid.cpp @@ -1,10 +1,10 @@ -#include "npc_alt.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_projectile.h" -#include "manager.h" -#include "menu_manager.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "level/room_grid.h" #include // The Fistuloid weaves after its target (or circles the Matriarch, its parent, unless it is her held one), and near diff --git a/src/npc_flesh_maiden.cpp b/src/entity/npc/flesh_maiden.cpp similarity index 99% rename from src/npc_flesh_maiden.cpp rename to src/entity/npc/flesh_maiden.cpp index 4027a2a..38e3ab5 100644 --- a/src/npc_flesh_maiden.cpp +++ b/src/entity/npc/flesh_maiden.cpp @@ -1,5 +1,5 @@ -#include "npc_alt.h" -#include "entity_laser.h" +#include "entity/npc/alt.h" +#include "entity/weapon/laser.h" #include // The Flesh Maiden swings along arcs at its target (where it is heading, or anywhere while confused): 110 to 130 diff --git a/src/npc_fly.cpp b/src/entity/npc/fly.cpp similarity index 99% rename from src/npc_fly.cpp rename to src/entity/npc/fly.cpp index dbc40c5..b29178c 100644 --- a/src/npc_fly.cpp +++ b/src/entity/npc/fly.cpp @@ -1,14 +1,14 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_player.h" -#include "game.h" -#include "manager.h" -#include "grid_entity.h" -#include "npc_alt.h" -#include "room.h" -#include "score_sheet.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "game/manager.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/alt.h" +#include "level/room.h" +#include "ui/score_sheet.h" #include // The fly kin this AI runs: the fly, Pooter, attack fly, the Sucker's family, Moter, the level 2 fly, the full fly and diff --git a/src/npc_fly_trap.cpp b/src/entity/npc/fly_trap.cpp similarity index 97% rename from src/npc_fly_trap.cpp rename to src/entity/npc/fly_trap.cpp index f2b9add..1d0b212 100644 --- a/src/npc_fly_trap.cpp +++ b/src/entity/npc/fly_trap.cpp @@ -1,11 +1,11 @@ -#include "npc_alt.h" -#include "active_items.h" -#include "boss_ai.h" -#include "deathmatch_manager.h" -#include "entity_effect.h" -#include "menu_manager.h" -#include "npc_basement.h" -#include "path_finder.h" +#include "entity/npc/alt.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "game/deathmatch_manager.h" +#include "entity/effect/effect.h" +#include "ui/menu/manager.h" +#include "entity/npc/basement.h" +#include "level/path_finder.h" #include // The Fly Trap walks at 0.25 with three attack flies about it, 20 out and 120 degrees apart. diff --git a/src/npc_fred.cpp b/src/entity/npc/fred.cpp similarity index 98% rename from src/npc_fred.cpp rename to src/entity/npc/fred.cpp index ae69a82..7e8e9c5 100644 --- a/src/npc_fred.cpp +++ b/src/entity/npc/fred.cpp @@ -1,9 +1,9 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_player.h" -#include "npc_caves.h" -#include "room_grid.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/player/player.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" // Fred burrows about the Womb: it surfaces where it lands, now and then spits a heavy shot, and hops a little nearer // its target, or anywhere well away from the players once under control. diff --git a/src/npc_gaper.cpp b/src/entity/npc/gaper.cpp similarity index 98% rename from src/npc_gaper.cpp rename to src/entity/npc/gaper.cpp index 0308c56..a966a2f 100644 --- a/src/npc_gaper.cpp +++ b/src/entity/npc/gaper.cpp @@ -1,16 +1,16 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "deathmatch_manager.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "manager.h" -#include "npc_alt.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "game/deathmatch_manager.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/npc/alt.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" constexpr int GAPER_FROWNING = 1; constexpr int GAPER_FLAMING = 2; diff --git a/src/npc_gaper_l2.cpp b/src/entity/npc/gaper_l2.cpp similarity index 99% rename from src/npc_gaper_l2.cpp rename to src/entity/npc/gaper_l2.cpp index 4192835..5814086 100644 --- a/src/npc_gaper_l2.cpp +++ b/src/entity/npc/gaper_l2.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_effect.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" // The level 2 Gaper (variant 0) loses its head (variant 1, the level 2 Horf) on dying and runs on headless (variant // 2, the level 2 Gusher). diff --git a/src/npc_gasbag.cpp b/src/entity/npc/gasbag.cpp similarity index 96% rename from src/npc_gasbag.cpp rename to src/entity/npc/gasbag.cpp index ccd6146..e6dc199 100644 --- a/src/npc_gasbag.cpp +++ b/src/entity/npc/gasbag.cpp @@ -1,8 +1,8 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "npc_gehenna.h" -#include "room_grid.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/npc/gehenna.h" +#include "level/room_grid.h" // The Gasbag sits wrapped in eight smoke clouds and, while fewer than eight Army Flies are about, lets out a column of // them toward its target, each following the one before. diff --git a/src/npc_gehenna.h b/src/entity/npc/gehenna.h similarity index 92% rename from src/npc_gehenna.h rename to src/entity/npc/gehenna.h index ffa7383..f053b30 100644 --- a/src/npc_gehenna.h +++ b/src/entity/npc/gehenna.h @@ -1,10 +1,10 @@ #pragma once -#include "npc_caves.h" -#include "entity_player.h" -#include "game.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/caves.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/room.h" +#include "level/room_grid.h" // The axis direction a vector leans along most: left, up, right or down (vertical on a tie). inline int axis_direction_get(Vector v) diff --git a/src/npc_generic_prop.cpp b/src/entity/npc/generic_prop.cpp similarity index 94% rename from src/npc_generic_prop.cpp rename to src/entity/npc/generic_prop.cpp index f832fff..dbcdeb3 100644 --- a/src/npc_generic_prop.cpp +++ b/src/entity/npc/generic_prop.cpp @@ -1,12 +1,12 @@ -#include "boss_final.h" -#include "boss_repentance.h" -#include "game.h" -#include "log.h" -#include "entity_player.h" -#include "grid_entity_door.h" -#include "manager.h" -#include "music_manager.h" -#include "room.h" +#include "entity/boss/final.h" +#include "entity/boss/repentance.h" +#include "game/game.h" +#include "engine/log.h" +#include "entity/player/player.h" +#include "level/grid/door.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "level/room.h" // A generic prop: held where it stands playing its default animation, untouchable and untargeted, faded in the // Death Certificate's dimension. Home's TV (variant 4, and the lamp, 3) idle on their second animation by night. diff --git a/src/npc_globin.cpp b/src/entity/npc/globin.cpp similarity index 98% rename from src/npc_globin.cpp rename to src/entity/npc/globin.cpp index 9bb669d..9dca204 100644 --- a/src/npc_globin.cpp +++ b/src/entity/npc/globin.cpp @@ -1,9 +1,9 @@ -#include "npc_caves.h" -#include "sfx_manager.h" -#include "entity_effect.h" -#include "game.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "level/room.h" +#include "level/room_grid.h" // The Globin's variants (the Black Globin is its own type), and the subtype a Globin that rises from a poof has. enum GlobinVariant : int diff --git a/src/npc_goat.cpp b/src/entity/npc/goat.cpp similarity index 98% rename from src/npc_goat.cpp rename to src/entity/npc/goat.cpp index 3cc9f2e..b66ce92 100644 --- a/src/npc_goat.cpp +++ b/src/entity/npc/goat.cpp @@ -1,9 +1,9 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "game.h" -#include "room.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/room.h" #include // The Goats run as a herd led by one of them (entityRef). Every 300 frames the leader ranks its herd by how close diff --git a/src/npc_grudge.cpp b/src/entity/npc/grudge.cpp similarity index 98% rename from src/npc_grudge.cpp rename to src/entity/npc/grudge.cpp index 634b3c4..5b73b37 100644 --- a/src/npc_grudge.cpp +++ b/src/entity/npc/grudge.cpp @@ -1,12 +1,12 @@ -#include "npc_gehenna.h" +#include "entity/npc/gehenna.h" #include -#include "boss_ai.h" -#include "capsule.h" -#include "entity_bomb.h" -#include "entity_combat.h" -#include "entity_config.h" -#include "manager.h" -#include "npc_fireplace.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/weapon/bomb.h" +#include "entity/combat.h" +#include "entity/config.h" +#include "game/manager.h" +#include "entity/npc/fireplace.h" // The Grudge is an invulnerable spiked block that sits in its cell, its eye following its target. A player lined up // with it in a clear row or column sets it charging that way, faster and faster up to 4, until it slams into a wall or diff --git a/src/npc_gurgle.cpp b/src/entity/npc/gurgle.cpp similarity index 98% rename from src/npc_gurgle.cpp rename to src/entity/npc/gurgle.cpp index 087cdf3..a09760f 100644 --- a/src/npc_gurgle.cpp +++ b/src/entity/npc/gurgle.cpp @@ -1,8 +1,8 @@ -#include "npc_caves.h" -#include "boss_ai.h" -#include "entity_projectile.h" -#include "manager.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "game/manager.h" +#include "game/sfx_manager.h" // The Gurgle's variants: the plain one, which may rise again as a Splasher, and the Crackle. constexpr int GURGLE_CRACKLE = 1; diff --git a/src/npc_gush.cpp b/src/entity/npc/gush.cpp similarity index 98% rename from src/npc_gush.cpp rename to src/entity/npc/gush.cpp index 3dccbbf..0345367 100644 --- a/src/npc_gush.cpp +++ b/src/entity/npc/gush.cpp @@ -1,5 +1,5 @@ -#include "boss_ai.h" -#include "npc_caves.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" #include // The Gush spews black creep: a puddle under it, then now and then another near one of its own puddles. diff --git a/src/npc_gusher.cpp b/src/entity/npc/gusher.cpp similarity index 98% rename from src/npc_gusher.cpp rename to src/entity/npc/gusher.cpp index fe5be6d..ebb10a7 100644 --- a/src/npc_gusher.cpp +++ b/src/entity/npc/gusher.cpp @@ -1,8 +1,8 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "level.h" -#include "sfx_manager.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "level/level.h" +#include "game/sfx_manager.h" constexpr float GUSHER_DEADZONE = 0.1f; diff --git a/src/npc_guts.cpp b/src/entity/npc/guts.cpp similarity index 99% rename from src/npc_guts.cpp rename to src/entity/npc/guts.cpp index 5809b75..4cfb11f 100644 --- a/src/npc_guts.cpp +++ b/src/entity/npc/guts.cpp @@ -1,9 +1,9 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "manager.h" -#include "room_descriptor.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "game/manager.h" +#include "level/room_descriptor.h" +#include "game/sfx_manager.h" #include // The crawlers' variants: Guts and the Scarred Guts and the charging Slog. The Wall Hugger and the shooting Cyst diff --git a/src/npc_gutted_fatty.cpp b/src/entity/npc/gutted_fatty.cpp similarity index 99% rename from src/npc_gutted_fatty.cpp rename to src/entity/npc/gutted_fatty.cpp index ae4eca7..8803be4 100644 --- a/src/npc_gutted_fatty.cpp +++ b/src/entity/npc/gutted_fatty.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_projectile.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" #include // The Gutted Fatty (variant 0) drops an eye (variant 10) at each third of its health lost and spits out Festering diff --git a/src/npc_gyro.cpp b/src/entity/npc/gyro.cpp similarity index 99% rename from src/npc_gyro.cpp rename to src/entity/npc/gyro.cpp index 53054ad..7efaeaa 100644 --- a/src/npc_gyro.cpp +++ b/src/entity/npc/gyro.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "npc_fireplace.h" -#include "room.h" -#include "entity_effect.h" +#include "entity/npc/alt.h" +#include "entity/npc/fireplace.h" +#include "level/room.h" +#include "entity/effect/effect.h" #include #include #include diff --git a/src/npc_hanger.cpp b/src/entity/npc/hanger.cpp similarity index 98% rename from src/npc_hanger.cpp rename to src/entity/npc/hanger.cpp index bb5a9f8..6aa9cda 100644 --- a/src/npc_hanger.cpp +++ b/src/entity/npc/hanger.cpp @@ -1,5 +1,5 @@ -#include "boss_ai.h" -#include "npc_depths.h" +#include "entity/boss/ai.h" +#include "entity/npc/depths.h" // The Keeper's four faces, its spit's reach, pause and spread, and how it hangs. constexpr uint32_t HANGER_FACES = 4; diff --git a/src/npc_hardy.cpp b/src/entity/npc/hardy.cpp similarity index 98% rename from src/npc_hardy.cpp rename to src/entity/npc/hardy.cpp index f9253bf..6a66d41 100644 --- a/src/npc_hardy.cpp +++ b/src/entity/npc/hardy.cpp @@ -1,8 +1,8 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "npc_fireplace.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/npc/fireplace.h" +#include "level/room_grid.h" // The Hardy, its armor (subtype) breaking in steps: it rests (60 frames after a crash) until, one time in 5 every 5th // frame, it winds up and slides at 20 toward its prey (a frightened or shrunk one away, a confused one anywhere). diff --git a/src/npc_heart.cpp b/src/entity/npc/heart.cpp similarity index 99% rename from src/npc_heart.cpp rename to src/entity/npc/heart.cpp index 3dadeba..6ddecca 100644 --- a/src/npc_heart.cpp +++ b/src/entity/npc/heart.cpp @@ -1,6 +1,6 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "active_items.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "entity/player/active_items.h" #include // The Heart (92) and the Heart of Infamy (98) beat away from their target and burst into shots when close. A linked diff --git a/src/npc_henry.cpp b/src/entity/npc/henry.cpp similarity index 95% rename from src/npc_henry.cpp rename to src/entity/npc/henry.cpp index 0541d68..72c177f 100644 --- a/src/npc_henry.cpp +++ b/src/entity/npc/henry.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "entity_effect.h" -#include "room.h" +#include "entity/npc/alt.h" +#include "entity/effect/effect.h" +#include "level/room.h" // Henry peeks out of the nearest pit for 30 frames, claiming it, then flushes away, rippling every 4 frames. constexpr int HENRY_PIT_CLAIM = 5; diff --git a/src/npc_hive.cpp b/src/entity/npc/hive.cpp similarity index 98% rename from src/npc_hive.cpp rename to src/entity/npc/hive.cpp index fdfd040..c455933 100644 --- a/src/npc_hive.cpp +++ b/src/entity/npc/hive.cpp @@ -1,9 +1,9 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "game.h" -#include "menu_manager.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "game/game.h" +#include "ui/menu/manager.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/npc_homunculus.cpp b/src/entity/npc/homunculus.cpp similarity index 98% rename from src/npc_homunculus.cpp rename to src/entity/npc/homunculus.cpp index 188d588..85dae75 100644 --- a/src/npc_homunculus.cpp +++ b/src/entity/npc/homunculus.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "menu_manager.h" -#include "grid_entity.h" -#include "level.h" -#include "npc_basement.h" -#include "npc_caves.h" -#include "room_descriptor.h" +#include "entity/boss/ai.h" +#include "ui/menu/manager.h" +#include "level/grid/grid_entity.h" +#include "level/level.h" +#include "entity/npc/basement.h" +#include "entity/npc/caves.h" +#include "level/room_descriptor.h" // The Homunculus (228) and the Begotten (251) are leashed to a wall or a block by their cord (variant 10), until they // struggle free. The Cage's Begotten (from 265.1) starts free. diff --git a/src/npc_hopper.cpp b/src/entity/npc/hopper.cpp similarity index 99% rename from src/npc_hopper.cpp rename to src/entity/npc/hopper.cpp index 2360b5c..3aff501 100644 --- a/src/npc_hopper.cpp +++ b/src/entity/npc/hopper.cpp @@ -1,11 +1,11 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "npc_caves.h" -#include "game.h" -#include "room.h" -#include "room_grid.h" -#include "loot_list.h" -#include "menu_manager.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" +#include "game/game.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "entity/pickup/loot_list.h" +#include "ui/menu/manager.h" // The hoppers this AI runs: the Hopper (with the Trite, Eggy and the tainted hopper as its variants), the Leaper, // the flaming hopper, the Keeper, Rag Man's Ragling, Ministro and Pon. diff --git a/src/npc_horf.cpp b/src/entity/npc/horf.cpp similarity index 97% rename from src/npc_horf.cpp rename to src/entity/npc/horf.cpp index e572d05..c9a2422 100644 --- a/src/npc_horf.cpp +++ b/src/entity/npc/horf.cpp @@ -1,6 +1,6 @@ -#include "npc_ai.h" -#include "entity_effect.h" -#include "game.h" +#include "entity/npc/ai.h" +#include "entity/effect/effect.h" +#include "game/game.h" constexpr int BLOOD_EXPLOSION_SPIT = 5; constexpr float HORF_FRICTION = 0.7f; diff --git a/src/npc_host.cpp b/src/entity/npc/host.cpp similarity index 98% rename from src/npc_host.cpp rename to src/entity/npc/host.cpp index c2ca0d8..7bee19e 100644 --- a/src/npc_host.cpp +++ b/src/entity/npc/host.cpp @@ -1,10 +1,10 @@ -#include "npc_caves.h" -#include "boss_ai.h" -#include "entity_effect_combat.h" -#include "entity_player.h" -#include "game.h" -#include "player_manager.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/boss/ai.h" +#include "entity/effect/combat.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/player/manager.h" +#include "game/sfx_manager.h" // The Host's variants: the plain one, the red one (with no shell, firing five), and the hard one whose shell slam // cracks the floor. A subtype of 99 takes its shell off too. The floating Host drifts like a Boom Fly. diff --git a/src/npc_hush.cpp b/src/entity/npc/hush.cpp similarity index 99% rename from src/npc_hush.cpp rename to src/entity/npc/hush.cpp index a47adb3..225018d 100644 --- a/src/npc_hush.cpp +++ b/src/entity/npc/hush.cpp @@ -1,6 +1,6 @@ -#include "boss_ai.h" -#include "npc_caves.h" -#include "platform.h" +#include "entity/boss/ai.h" +#include "entity/npc/caves.h" +#include "engine/platform.h" #include #include #include diff --git a/src/npc_hush_gaper.cpp b/src/entity/npc/hush_gaper.cpp similarity index 98% rename from src/npc_hush_gaper.cpp rename to src/entity/npc/hush_gaper.cpp index dcf8b0c..82cabdd 100644 --- a/src/npc_hush_gaper.cpp +++ b/src/entity/npc/hush_gaper.cpp @@ -1,5 +1,5 @@ -#include "boss_ai.h" -#include "npc_depths.h" +#include "entity/boss/ai.h" +#include "entity/npc/depths.h" // The Blue and Greed Gapers' walk, and the groan it lets out now and then while it sees its target. constexpr float HUSH_GAPER_WALK_SPEED = 0.1f; diff --git a/src/npc_knight.cpp b/src/entity/npc/knight.cpp similarity index 98% rename from src/npc_knight.cpp rename to src/entity/npc/knight.cpp index 69b512b..e8b761e 100644 --- a/src/npc_knight.cpp +++ b/src/entity/npc/knight.cpp @@ -1,10 +1,10 @@ -#include "boss_ai.h" -#include "active_items.h" -#include "entity_player.h" -#include "menu_manager.h" -#include "npc_basement.h" -#include "npc_caves.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/player/active_items.h" +#include "entity/player/player.h" +#include "ui/menu/manager.h" +#include "entity/npc/basement.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" // The knights this AI runs: the Knight (41) with the Selfless, Loose, Empty and Black Knight as its variants, the // Floating Knight (254) and the Bone Knight (283). The Loose Knight's Pon (840) carries the Empty Knight. diff --git a/src/npc_leper.cpp b/src/entity/npc/leper.cpp similarity index 99% rename from src/npc_leper.cpp rename to src/entity/npc/leper.cpp index ac02f9b..ce00cb3 100644 --- a/src/npc_leper.cpp +++ b/src/entity/npc/leper.cpp @@ -1,7 +1,7 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "menu_manager.h" -#include "npc_caves.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "ui/menu/manager.h" +#include "entity/npc/caves.h" #include #include diff --git a/src/npc_lump.cpp b/src/entity/npc/lump.cpp similarity index 98% rename from src/npc_lump.cpp rename to src/entity/npc/lump.cpp index 2b529ed..28defcd 100644 --- a/src/npc_lump.cpp +++ b/src/entity/npc/lump.cpp @@ -1,9 +1,9 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "entity_combat.h" -#include "entity_player.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/combat.h" +#include "entity/player/player.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // The Lump shakes in place, spits 3 shots at 7 at a prey within 260 (63 frames apart), and after 36 frames out hides // one time in 50, popping up again one time in 20 in a free cell 200 to 400 from the nearest player. It marks the cell diff --git a/src/npc_maggot.cpp b/src/entity/npc/maggot.cpp similarity index 99% rename from src/npc_maggot.cpp rename to src/entity/npc/maggot.cpp index fffeb02..d0fa445 100644 --- a/src/npc_maggot.cpp +++ b/src/entity/npc/maggot.cpp @@ -1,11 +1,11 @@ -#include "npc_caves.h" -#include "sfx_manager.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "room_grid.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "level/room_grid.h" #include #include diff --git a/src/npc_mama_fly.cpp b/src/entity/npc/mama_fly.cpp similarity index 98% rename from src/npc_mama_fly.cpp rename to src/entity/npc/mama_fly.cpp index 07ace79..75fcfed 100644 --- a/src/npc_mama_fly.cpp +++ b/src/entity/npc/mama_fly.cpp @@ -1,7 +1,7 @@ -#include "npc_caves.h" -#include "boss_ai.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/boss/ai.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // The Mama Fly flies to spots 80 to 200 away, as far from its target as it finds in 10 tries, and lays a Pustule on // each (up to 10 in the room). It picks a new spot after 90 frames one time in ten. Dying, it spills three maggots. diff --git a/src/npc_maw.cpp b/src/entity/npc/maw.cpp similarity index 97% rename from src/npc_maw.cpp rename to src/entity/npc/maw.cpp index 4c3baad..9279274 100644 --- a/src/npc_maw.cpp +++ b/src/entity/npc/maw.cpp @@ -1,8 +1,8 @@ -#include "npc_caves.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "game.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "game/sfx_manager.h" // The Maw's variants: the plain one, the red one that bursts into shots and the psychic one with its eternal fly. enum MawVariant : int diff --git a/src/npc_maze_roamer.cpp b/src/entity/npc/maze_roamer.cpp similarity index 98% rename from src/npc_maze_roamer.cpp rename to src/entity/npc/maze_roamer.cpp index 7db2929..50fb2b3 100644 --- a/src/npc_maze_roamer.cpp +++ b/src/entity/npc/maze_roamer.cpp @@ -1,7 +1,7 @@ -#include "npc_gehenna.h" -#include "entity_player.h" -#include "game.h" -#include "room.h" +#include "entity/npc/gehenna.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/room.h" #include // The Maze Roamer walks the room's grid axis aligned with a twin spawned mirrored through the room's center, which diff --git a/src/npc_meatball.cpp b/src/entity/npc/meatball.cpp similarity index 98% rename from src/npc_meatball.cpp rename to src/entity/npc/meatball.cpp index 7fb452c..3d3263b 100644 --- a/src/npc_meatball.cpp +++ b/src/entity/npc/meatball.cpp @@ -1,8 +1,8 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "npc_caves.h" -#include "room_config.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/npc/caves.h" +#include "level/room_config.h" // The Meatball wanders, charges up and either spits a stream of shots or sprays a line of blood creep, and dies into // a Host. diff --git a/src/npc_membrain.cpp b/src/entity/npc/membrain.cpp similarity index 98% rename from src/npc_membrain.cpp rename to src/entity/npc/membrain.cpp index 617ed6a..67ab3d5 100644 --- a/src/npc_membrain.cpp +++ b/src/entity/npc/membrain.cpp @@ -1,7 +1,7 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "npc_ai.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/npc/ai.h" +#include "game/sfx_manager.h" // The Membrain, Mama Guts and Dead Meat (which splits into Cysts), and the Dinga, which splits into Squirts. constexpr int MEMBRAIN_DEAD_MEAT = 2; diff --git a/src/npc_mobile_host.cpp b/src/entity/npc/mobile_host.cpp similarity index 99% rename from src/npc_mobile_host.cpp rename to src/entity/npc/mobile_host.cpp index 6a3474e..688f7c3 100644 --- a/src/npc_mobile_host.cpp +++ b/src/entity/npc/mobile_host.cpp @@ -1,5 +1,5 @@ -#include "boss_ai.h" -#include "npc_depths.h" +#include "entity/boss/ai.h" +#include "entity/npc/depths.h" // Its shell: how hits shake it shut, the blast that knocks its skull loose, and the charge a controlled one builds. constexpr float MOBILE_HOST_SHAKE_LOSS = 0.05f; diff --git a/src/npc_mockulus.cpp b/src/entity/npc/mockulus.cpp similarity index 97% rename from src/npc_mockulus.cpp rename to src/entity/npc/mockulus.cpp index 8ce40fa..6944f1e 100644 --- a/src/npc_mockulus.cpp +++ b/src/entity/npc/mockulus.cpp @@ -1,6 +1,6 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "entity_player.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" // The Mockulus is an invulnerable eye that keeps shut while no player shoots. Once one does it opens and slides // diagonally, bouncing off the walls, until the shooting stops and it shuts again. Its pupil (layer 2) watches the diff --git a/src/npc_mole.cpp b/src/entity/npc/mole.cpp similarity index 98% rename from src/npc_mole.cpp rename to src/entity/npc/mole.cpp index e3a86db..ea1305f 100644 --- a/src/npc_mole.cpp +++ b/src/entity/npc/mole.cpp @@ -1,12 +1,12 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "grid_entity.h" -#include "room_descriptor.h" -#include "room_grid.h" -#include "seeds.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "level/grid/grid_entity.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" +#include "engine/seeds.h" #include #include diff --git a/src/npc_moms_hand.cpp b/src/entity/npc/moms_hand.cpp similarity index 98% rename from src/npc_moms_hand.cpp rename to src/entity/npc/moms_hand.cpp index 1b7b9ad..c1df47d 100644 --- a/src/npc_moms_hand.cpp +++ b/src/entity/npc/moms_hand.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "npc_depths.h" -#include "room_grid.h" -#include "room_transition.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/npc/depths.h" +#include "level/room_grid.h" +#include "level/room_transition.h" // Its fall: the frames it hovers (a random wait first) and the size its shadow grows to. constexpr uint32_t HAND_WAIT_SPREAD = 150; diff --git a/src/npc_morningstar.cpp b/src/entity/npc/morningstar.cpp similarity index 97% rename from src/npc_morningstar.cpp rename to src/entity/npc/morningstar.cpp index 749262e..6b6702f 100644 --- a/src/npc_morningstar.cpp +++ b/src/entity/npc/morningstar.cpp @@ -1,6 +1,6 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "entity_player.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" // The Morningstar sleeps while no player walks. Woken by one moving, it creeps toward its target and, once its swing // gets going, speeds up to 2 by 0.01 a frame, groaning now and then when it has a straight line at its target. diff --git a/src/npc_movable_tnt.cpp b/src/entity/npc/movable_tnt.cpp similarity index 95% rename from src/npc_movable_tnt.cpp rename to src/entity/npc/movable_tnt.cpp index d7b4ff8..e449bc8 100644 --- a/src/npc_movable_tnt.cpp +++ b/src/entity/npc/movable_tnt.cpp @@ -1,11 +1,11 @@ -#include "npc_basement.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "item_pool.h" +#include "entity/npc/basement.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/pickup/item_pool.h" // A pushable TNT barrel: each hit takes 1 (2 one time in three, 4 from an explosion) down to its last point, then it // blows up for 100 within 75, leaving a crater and wood chips. It stays as a husk unless it rides a minecart. diff --git a/src/npc_mr_maw.cpp b/src/entity/npc/mr_maw.cpp similarity index 99% rename from src/npc_mr_maw.cpp rename to src/entity/npc/mr_maw.cpp index b188601..9a53024 100644 --- a/src/npc_mr_maw.cpp +++ b/src/entity/npc/mr_maw.cpp @@ -1,5 +1,5 @@ -#include "boss_ai.h" -#include "npc_depths.h" +#include "entity/boss/ai.h" +#include "entity/npc/depths.h" #include // Mr. Maw's parts by variant: the body, its head, the red body and head, and the neck's segments. diff --git a/src/npc_mr_mine.cpp b/src/entity/npc/mr_mine.cpp similarity index 98% rename from src/npc_mr_mine.cpp rename to src/entity/npc/mr_mine.cpp index 0efc4f6..5913a3a 100644 --- a/src/npc_mr_mine.cpp +++ b/src/entity/npc/mr_mine.cpp @@ -1,9 +1,9 @@ -#include "npc_depths.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "game.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/depths.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "level/room.h" +#include "level/room_grid.h" #include // Mr. Mine (variant 0) lives in the pits: it rises out of one, now and then lunges at its target, and digs back into diff --git a/src/npc_mulligan.cpp b/src/entity/npc/mulligan.cpp similarity index 97% rename from src/npc_mulligan.cpp rename to src/entity/npc/mulligan.cpp index d1402c9..481a78f 100644 --- a/src/npc_mulligan.cpp +++ b/src/entity/npc/mulligan.cpp @@ -1,9 +1,9 @@ -#include "entity_effect.h" -#include "npc_basement.h" -#include "active_items.h" -#include "entity_bomb.h" -#include "game.h" -#include "menu_manager.h" +#include "entity/effect/effect.h" +#include "entity/npc/basement.h" +#include "entity/player/active_items.h" +#include "entity/weapon/bomb.h" +#include "game/game.h" +#include "ui/menu/manager.h" #include constexpr int MULLIGOON = 1; diff --git a/src/npc_mushroom.cpp b/src/entity/npc/mushroom.cpp similarity index 98% rename from src/npc_mushroom.cpp rename to src/entity/npc/mushroom.cpp index 5c811e1..3a0cd6e 100644 --- a/src/npc_mushroom.cpp +++ b/src/entity/npc/mushroom.cpp @@ -1,6 +1,6 @@ -#include "npc_caves.h" -#include "sfx_manager.h" -#include "game.h" +#include "entity/npc/caves.h" +#include "game/sfx_manager.h" +#include "game/game.h" // The Mushroom hides under its cap (taking a quarter of any hit) for 30 to 150 frames, then pops out to spit a plus or // a cross of shots, stays out 30 to 90 frames and hides again. It stays rooted to its spot. diff --git a/src/npc_necro.cpp b/src/entity/npc/necro.cpp similarity index 96% rename from src/npc_necro.cpp rename to src/entity/npc/necro.cpp index 554f96d..8185de4 100644 --- a/src/npc_necro.cpp +++ b/src/entity/npc/necro.cpp @@ -1,10 +1,10 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_projectile.h" -#include "kage_graphics.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" +#include "engine/kage_graphics.h" +#include "level/room.h" +#include "level/room_grid.h" // The Necro shakes in place, raising a bone every 0 to 29 frames (at once when steered) somewhere 60 to 180 away // from it, opposite its target within 135 degrees, in the room, off the grid's blocks, more than 150 from any player diff --git a/src/npc_needle.cpp b/src/entity/npc/needle.cpp similarity index 97% rename from src/npc_needle.cpp rename to src/entity/npc/needle.cpp index 04c1b0c..b52eded 100644 --- a/src/npc_needle.cpp +++ b/src/entity/npc/needle.cpp @@ -1,11 +1,11 @@ -#include "npc_depths.h" -#include "entity_effect_combat.h" -#include "entity_player.h" -#include "entity_config.h" -#include "game.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/effect/combat.h" +#include "entity/player/player.h" +#include "entity/config.h" +#include "game/game.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // The Needle and the Pasty, which leaves no blood and throws a cross of shots as it leaps. constexpr int NEEDLE_PASTY = 1; diff --git a/src/npc_nerve_ending.cpp b/src/entity/npc/nerve_ending.cpp similarity index 97% rename from src/npc_nerve_ending.cpp rename to src/entity/npc/nerve_ending.cpp index 4222a46..095320a 100644 --- a/src/npc_nerve_ending.cpp +++ b/src/entity/npc/nerve_ending.cpp @@ -1,8 +1,8 @@ -#include "npc_depths.h" -#include "entity_tear.h" -#include "game.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // The Nerve Ending stays rooted to its spot. Its second variant lashes at a prey (or its controller's aim) within 80 // across and 20 up or down while idle, hurting everything in an 80 by 40 box 40 out to that side for 15 (players diff --git a/src/entity_npc.cpp b/src/entity/npc/npc.cpp similarity index 99% rename from src/entity_npc.cpp rename to src/entity/npc/npc.cpp index 8f86bd1..67d2794 100644 --- a/src/entity_npc.cpp +++ b/src/entity/npc/npc.cpp @@ -1,38 +1,38 @@ -#include "entity_npc.h" -#include "boss_repentance.h" -#include "active_items.h" -#include "boss_ai.h" -#include "boss_death.h" -#include "boss_final.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_text.h" -#include "data.h" -#include "game.h" -#include "grid_entity.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "persistent_game_data.h" -#include "platform.h" -#include "room.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "room_grid.h" -#include "room_render.h" -#include "sfx_manager.h" -#include "menu_manager.h" -#include "mines.h" -#include "npc_alt.h" +#include "entity/npc/npc.h" +#include "entity/boss/repentance.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/boss/death.h" +#include "entity/boss/final.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/text.h" +#include "engine/data.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "game/persistent_game_data.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" +#include "level/room_render.h" +#include "game/sfx_manager.h" +#include "ui/menu/manager.h" +#include "entity/weapon/mines.h" +#include "entity/npc/alt.h" #include #include #include diff --git a/src/entity_npc.h b/src/entity/npc/npc.h similarity index 99% rename from src/entity_npc.h rename to src/entity/npc/npc.h index 713a5dc..7d7e4bd 100644 --- a/src/entity_npc.h +++ b/src/entity/npc/npc.h @@ -1,10 +1,10 @@ #pragma once -#include "entity.h" -#include "anm2.h" -#include "entity_projectile.h" -#include "loot_list.h" -#include "path_finder.h" +#include "entity/entity.h" +#include "engine/anm2.h" +#include "entity/weapon/projectile.h" +#include "entity/pickup/loot_list.h" +#include "level/path_finder.h" #include #include diff --git a/src/npc_one_tooth.cpp b/src/entity/npc/one_tooth.cpp similarity index 98% rename from src/npc_one_tooth.cpp rename to src/entity/npc/one_tooth.cpp index 855c2f9..7f1130d 100644 --- a/src/npc_one_tooth.cpp +++ b/src/entity/npc/one_tooth.cpp @@ -1,7 +1,7 @@ -#include "npc_caves.h" -#include "game.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "game/game.h" +#include "level/room.h" +#include "game/sfx_manager.h" // One Tooth flies 20 up, circling its target at 0.85 of its distance (aimed 20 frames ahead) on a heading it turns // every 20 frames, eased in at a tenth a frame (0.3 when controlled) toward 3 a frame. diff --git a/src/npc_oob.cpp b/src/entity/npc/oob.cpp similarity index 98% rename from src/npc_oob.cpp rename to src/entity/npc/oob.cpp index 4aea1a2..89a9e71 100644 --- a/src/npc_oob.cpp +++ b/src/entity/npc/oob.cpp @@ -1,6 +1,6 @@ -#include "boss_ai.h" -#include "menu_manager.h" -#include "npc_caves.h" +#include "entity/boss/ai.h" +#include "ui/menu/manager.h" +#include "entity/npc/caves.h" // The Oob's states: crawling, the charge across the room (wrapping past its walls) and laying a Brain. constexpr int OOB_CHARGE = NPC_STATE_ATTACK; diff --git a/src/npc_para_bite.cpp b/src/entity/npc/para_bite.cpp similarity index 98% rename from src/npc_para_bite.cpp rename to src/entity/npc/para_bite.cpp index 7c78e33..9a0b690 100644 --- a/src/npc_para_bite.cpp +++ b/src/entity/npc/para_bite.cpp @@ -1,7 +1,7 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "game/sfx_manager.h" // The Scarred Para-Bite, which spits as it walks. constexpr int SCARRED_PARA_BITE = 1; diff --git a/src/npc_peeper_fatty.cpp b/src/entity/npc/peeper_fatty.cpp similarity index 99% rename from src/npc_peeper_fatty.cpp rename to src/entity/npc/peeper_fatty.cpp index 6a4bfdb..c401f5f 100644 --- a/src/npc_peeper_fatty.cpp +++ b/src/entity/npc/peeper_fatty.cpp @@ -1,8 +1,8 @@ -#include "npc_alt.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "npc_basement.h" -#include "room.h" +#include "entity/npc/alt.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/npc/basement.h" +#include "level/room.h" #include #include diff --git a/src/npc_pitfall.cpp b/src/entity/npc/pitfall.cpp similarity index 98% rename from src/npc_pitfall.cpp rename to src/entity/npc/pitfall.cpp index 3b2f036..c3519c3 100644 --- a/src/npc_pitfall.cpp +++ b/src/entity/npc/pitfall.cpp @@ -1,9 +1,9 @@ -#include "npc_caves.h" -#include "entity_config.h" -#include "entity_player.h" -#include "game.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/caves.h" +#include "entity/config.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/room.h" +#include "level/room_grid.h" // The Pitfall's variants: the plain one, the one sucking things in, the one dropping a player elsewhere in the room, // and Hush's, which brings a Hush Gaper and sucks more gently. diff --git a/src/npc_poky.cpp b/src/entity/npc/poky.cpp similarity index 97% rename from src/npc_poky.cpp rename to src/entity/npc/poky.cpp index 9b784d5..f9624f4 100644 --- a/src/npc_poky.cpp +++ b/src/entity/npc/poky.cpp @@ -1,9 +1,9 @@ -#include "boss_ai.h" -#include "entity_player.h" -#include "game.h" -#include "npc_depths.h" -#include "room.h" -#include "room_descriptor.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/npc/depths.h" +#include "level/room.h" +#include "level/room_descriptor.h" // The Poky, and the Slide, which keeps to its spot and dashes faster. constexpr int POKY = 0; diff --git a/src/npc_polty.cpp b/src/entity/npc/polty.cpp similarity index 99% rename from src/npc_polty.cpp rename to src/entity/npc/polty.cpp index 14d398b..bca0134 100644 --- a/src/npc_polty.cpp +++ b/src/entity/npc/polty.cpp @@ -1,11 +1,11 @@ -#include "boss_ai.h" -#include "boss_repentance.h" -#include "entity_config.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "grid_entity.h" -#include "npc_basement.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/config.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/basement.h" +#include "level/room_grid.h" #include // The Polty's states: waiting unseen to appear (Kineti), looking for something to lift, holding it, lifting a pickup diff --git a/src/npc_poofer.cpp b/src/entity/npc/poofer.cpp similarity index 99% rename from src/npc_poofer.cpp rename to src/entity/npc/poofer.cpp index 6ba4c00..be19c8d 100644 --- a/src/npc_poofer.cpp +++ b/src/entity/npc/poofer.cpp @@ -1,8 +1,8 @@ -#include "npc_gehenna.h" +#include "entity/npc/gehenna.h" #include -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" // The Poofer drifts after the spot its target aims at. Hits barely hurt it but swell it through five sizes, each // bigger, and every so often (sooner the more swollen) it puffs a ring of shots. Killed, it bursts: a fart, rays of diff --git a/src/npc_poop.cpp b/src/entity/npc/poop.cpp similarity index 98% rename from src/npc_poop.cpp rename to src/entity/npc/poop.cpp index 379723a..f1fd2a2 100644 --- a/src/npc_poop.cpp +++ b/src/entity/npc/poop.cpp @@ -1,12 +1,12 @@ -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_poop.h" -#include "npc_ai.h" -#include "player_manager.h" -#include "room.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/poop.h" +#include "entity/npc/ai.h" +#include "entity/player/manager.h" +#include "level/room.h" #include #include #include diff --git a/src/npc_poot_mine.cpp b/src/entity/npc/poot_mine.cpp similarity index 97% rename from src/npc_poot_mine.cpp rename to src/entity/npc/poot_mine.cpp index 4ca041d..6dd2b1d 100644 --- a/src/npc_poot_mine.cpp +++ b/src/entity/npc/poot_mine.cpp @@ -1,9 +1,9 @@ -#include "npc_alt.h" -#include "active_items.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "menu_manager.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/player/active_items.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "ui/menu/manager.h" +#include "level/room_grid.h" // The Poot Mine sits until hit, then farts itself away from the hit (its controller's way when steered) at 4, // slowing by 0.8 a frame. The fart leaves a gas cloud behind, blows away what is 40 behind it within 60 at 10 and diff --git a/src/npc_portal.cpp b/src/entity/npc/portal.cpp similarity index 98% rename from src/npc_portal.cpp rename to src/entity/npc/portal.cpp index 25ee892..da591cf 100644 --- a/src/npc_portal.cpp +++ b/src/entity/npc/portal.cpp @@ -1,11 +1,11 @@ -#include "npc_basement.h" -#include "deathmatch_manager.h" -#include "entity_config.h" -#include "game.h" -#include "grid_entity_trap_door.h" -#include "level.h" -#include "manager.h" -#include "room.h" +#include "entity/npc/basement.h" +#include "game/deathmatch_manager.h" +#include "entity/config.h" +#include "game/game.h" +#include "level/grid/trap_door.h" +#include "level/level.h" +#include "game/manager.h" +#include "level/room.h" // The Portal hangs 30 up and summons a stage's enemy every 90 to 149 frames while fewer than three of its own live // (rechecking every 60 to 89), 1 to 5 times before it closes. Outside the chapters (the Blue Womb, the Dark Room and diff --git a/src/npc_pustule.cpp b/src/entity/npc/pustule.cpp similarity index 98% rename from src/npc_pustule.cpp rename to src/entity/npc/pustule.cpp index 8ba8bbc..1a3bc71 100644 --- a/src/npc_pustule.cpp +++ b/src/entity/npc/pustule.cpp @@ -1,6 +1,6 @@ -#include "npc_caves.h" -#include "boss_ai.h" -#include "room_grid.h" +#include "entity/npc/caves.h" +#include "entity/boss/ai.h" +#include "level/room_grid.h" #include // A Pustule swells through five stages, each a transition and then the next idle, once its counter passes 35 (one a diff --git a/src/npc_quake_grimace.cpp b/src/entity/npc/quake_grimace.cpp similarity index 98% rename from src/npc_quake_grimace.cpp rename to src/entity/npc/quake_grimace.cpp index d692771..acc4771 100644 --- a/src/npc_quake_grimace.cpp +++ b/src/entity/npc/quake_grimace.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "level.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "level/level.h" // The Quake Grimace: an invincible wall face held in its cell (walling the grid path off) that slams every 10 frames, // sending a crackwave along the way it faces (its subtype: left, up, right, down). It closes its eyes once the room's diff --git a/src/npc_quakey.cpp b/src/entity/npc/quakey.cpp similarity index 98% rename from src/npc_quakey.cpp rename to src/entity/npc/quakey.cpp index cd0c7a6..21a9ed9 100644 --- a/src/npc_quakey.cpp +++ b/src/entity/npc/quakey.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "grid_entity_trap_door.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "level/grid/trap_door.h" // The Quakey walks its grid path at 0.3, rumbling one time in 3 while it sees its prey. Once its 120 frame cooldown // is out it leaps at 12 toward its prey: one time in 15 within 120 of it, else one time in 120. Hornfel's Quakeys diff --git a/src/entity_npc_render.cpp b/src/entity/npc/render.cpp similarity index 98% rename from src/entity_npc_render.cpp rename to src/entity/npc/render.cpp index 7faf9ad..161542c 100644 --- a/src/entity_npc_render.cpp +++ b/src/entity/npc/render.cpp @@ -1,16 +1,16 @@ -#include "entity_npc.h" -#include "boss_final.h" -#include "boss_repentance.h" -#include "beam_renderer.h" -#include "entity_config.h" -#include "entity_player.h" -#include "game.h" -#include "lua_engine.h" -#include "manager.h" -#include "mines.h" -#include "npc_ai.h" -#include "npc_depths.h" -#include "room.h" +#include "entity/npc/npc.h" +#include "entity/boss/final.h" +#include "entity/boss/repentance.h" +#include "engine/beam_renderer.h" +#include "entity/config.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/weapon/mines.h" +#include "entity/npc/ai.h" +#include "entity/npc/depths.h" +#include "level/room.h" #include #include #include diff --git a/src/npc_render_parts.cpp b/src/entity/npc/render_parts.cpp similarity index 98% rename from src/npc_render_parts.cpp rename to src/entity/npc/render_parts.cpp index a76e8c6..961e20f 100644 --- a/src/npc_render_parts.cpp +++ b/src/entity/npc/render_parts.cpp @@ -1,7 +1,7 @@ -#include "boss_repentance.h" -#include "npc_depths.h" -#include "beam_renderer.h" -#include "game.h" +#include "entity/boss/repentance.h" +#include "entity/npc/depths.h" +#include "engine/beam_renderer.h" +#include "game/game.h" // Evis' cord layer and the Chimera's body, as their renders know them. constexpr int EVIS_CORD_LAYER = 1; diff --git a/src/npc_revenant.cpp b/src/entity/npc/revenant.cpp similarity index 99% rename from src/npc_revenant.cpp rename to src/entity/npc/revenant.cpp index b2a782b..5d911a1 100644 --- a/src/npc_revenant.cpp +++ b/src/entity/npc/revenant.cpp @@ -1,7 +1,7 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "game.h" -#include "level.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "game/game.h" +#include "level/level.h" // The Revenant (and its four headed variant 1) wanders the grid axis aligned. Seeing its target ahead within 256 it // stops and breathes a stream of fire at it for 60 frames, turning after it (variant 1 spins, breathing four ways). diff --git a/src/entity_npc_rewards.cpp b/src/entity/npc/rewards.cpp similarity index 98% rename from src/entity_npc_rewards.cpp rename to src/entity/npc/rewards.cpp index 796a4fc..a45c64c 100644 --- a/src/entity_npc_rewards.cpp +++ b/src/entity/npc/rewards.cpp @@ -1,14 +1,14 @@ -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_tear.h" -#include "entity_player.h" -#include "item_config.h" -#include "item_pool.h" -#include "manager.h" -#include "room_descriptor.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/tear.h" +#include "entity/player/player.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_pool.h" +#include "game/manager.h" +#include "level/room_descriptor.h" #include #include diff --git a/src/npc_ring_fly.cpp b/src/entity/npc/ring_fly.cpp similarity index 97% rename from src/npc_ring_fly.cpp rename to src/entity/npc/ring_fly.cpp index fce4837..dc7110a 100644 --- a/src/npc_ring_fly.cpp +++ b/src/entity/npc/ring_fly.cpp @@ -1,7 +1,7 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "score_sheet.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "ui/score_sheet.h" // A ring of flies circles its leader's spot 40 to 70 out, breathing by 0.5 a frame, turning with the ring's speed. The // leader's spot drifts at 2 toward its target (2.5 along its controller's input). diff --git a/src/npc_rock_spider.cpp b/src/entity/npc/rock_spider.cpp similarity index 98% rename from src/npc_rock_spider.cpp rename to src/entity/npc/rock_spider.cpp index f9f3f46..398bdcf 100644 --- a/src/npc_rock_spider.cpp +++ b/src/entity/npc/rock_spider.cpp @@ -1,11 +1,11 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "manager.h" -#include "npc_caves.h" -#include "npc_fireplace.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/manager.h" +#include "entity/npc/caves.h" +#include "entity/npc/fireplace.h" +#include "level/room_grid.h" #include #include diff --git a/src/entity_npc_room.cpp b/src/entity/npc/room.cpp similarity index 94% rename from src/entity_npc_room.cpp rename to src/entity/npc/room.cpp index d747af1..da39b98 100644 --- a/src/entity_npc_room.cpp +++ b/src/entity/npc/room.cpp @@ -1,10 +1,10 @@ -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "level_generator.h" -#include "npc_ai.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/generator.h" +#include "entity/npc/ai.h" constexpr int DARK_ESAU_SECOND = 1; constexpr ColorMod DARK_ESAU_POOF_COLOR = {{0.1f, 0.1f, 0.1f, 1}, {0, 0, 0, 0}, {0, 0, 0}}; diff --git a/src/npc_rotten_gaper.cpp b/src/entity/npc/rotten_gaper.cpp similarity index 97% rename from src/npc_rotten_gaper.cpp rename to src/entity/npc/rotten_gaper.cpp index a68c555..57a0b08 100644 --- a/src/npc_rotten_gaper.cpp +++ b/src/entity/npc/rotten_gaper.cpp @@ -1,11 +1,11 @@ -#include "npc_alt.h" -#include "active_items.h" -#include "entity_effect.h" -#include "entity_projectile.h" -#include "game.h" -#include "menu_manager.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/player/active_items.h" +#include "entity/effect/effect.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "ui/menu/manager.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include diff --git a/src/npc_round_worm.cpp b/src/entity/npc/round_worm.cpp similarity index 99% rename from src/npc_round_worm.cpp rename to src/entity/npc/round_worm.cpp index 7b3b1fd..25d4628 100644 --- a/src/npc_round_worm.cpp +++ b/src/entity/npc/round_worm.cpp @@ -1,8 +1,8 @@ -#include "npc_caves.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" // The worm kin this AI runs (Round worms, Tube worms and their tainted forms, Night crawler, Roundy, Ulcer), the // tainted Round worm's head and its body segments. diff --git a/src/npc_shady.cpp b/src/entity/npc/shady.cpp similarity index 98% rename from src/npc_shady.cpp rename to src/entity/npc/shady.cpp index df6dc0e..42d9d71 100644 --- a/src/npc_shady.cpp +++ b/src/entity/npc/shady.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "grid_entity_trap_door.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "level/grid/trap_door.h" // Shady walks its grid path at 0.3 (fleeing when afraid or shrunk), growling in plain sight. Off its 120 frame // cooldown it leaps at its target (one frame in 10 within 120, one in 40 anywhere) and slams down in four crackwaves. diff --git a/src/npc_sins.cpp b/src/entity/npc/sins.cpp similarity index 99% rename from src/npc_sins.cpp rename to src/entity/npc/sins.cpp index 030e20a..44d8b53 100644 --- a/src/npc_sins.cpp +++ b/src/entity/npc/sins.cpp @@ -1,11 +1,11 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_laser.h" -#include "entity_slot.h" -#include "npc_caves.h" -#include "room_grid.h" -#include "entity_player.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/slot.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" +#include "entity/player/player.h" #include #include diff --git a/src/npc_skinny.cpp b/src/entity/npc/skinny.cpp similarity index 98% rename from src/npc_skinny.cpp rename to src/entity/npc/skinny.cpp index d60e802..d87a5d5 100644 --- a/src/npc_skinny.cpp +++ b/src/entity/npc/skinny.cpp @@ -1,9 +1,9 @@ -#include "npc_caves.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "room.h" +#include "entity/npc/caves.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/room.h" #include // The Skinny family's variants (the Rotty and the Crispy) and the Bony family (the Holy Bony and the Black Bony). diff --git a/src/npc_small_leech.cpp b/src/entity/npc/small_leech.cpp similarity index 99% rename from src/npc_small_leech.cpp rename to src/entity/npc/small_leech.cpp index 785fbd7..415b840 100644 --- a/src/npc_small_leech.cpp +++ b/src/entity/npc/small_leech.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "manager.h" -#include "room.h" +#include "entity/npc/alt.h" +#include "game/manager.h" +#include "level/room.h" #include // The big leech Wormwood throws (subtype 1) swims at three quarters of the speed. diff --git a/src/npc_small_maggot.cpp b/src/entity/npc/small_maggot.cpp similarity index 98% rename from src/npc_small_maggot.cpp rename to src/entity/npc/small_maggot.cpp index 2ced3e6..7d742f8 100644 --- a/src/npc_small_maggot.cpp +++ b/src/entity/npc/small_maggot.cpp @@ -1,8 +1,8 @@ -#include "npc_alt.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "level/room.h" +#include "level/room_grid.h" // The Small Maggot's cluster variant, which bursts into its subtype's count of maggots. constexpr int MAGGOT_CLUSTER = 10; diff --git a/src/npc_spider.cpp b/src/entity/npc/spider.cpp similarity index 98% rename from src/npc_spider.cpp rename to src/entity/npc/spider.cpp index 096d0e1..c5d534e 100644 --- a/src/npc_spider.cpp +++ b/src/entity/npc/spider.cpp @@ -1,14 +1,14 @@ -#include "entity_effect.h" -#include "npc_basement.h" -#include "entity_bomb.h" -#include "entity_player.h" -#include "game.h" -#include "room.h" -#include "boss_ai.h" -#include "data.h" -#include "entity_config.h" -#include "manager.h" -#include "menu_manager.h" +#include "entity/effect/effect.h" +#include "entity/npc/basement.h" +#include "entity/weapon/bomb.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/room.h" +#include "entity/boss/ai.h" +#include "engine/data.h" +#include "entity/config.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include // A spider rests 14 frames, then runs at its target (leading it) when near and in sight, else somewhere at random diff --git a/src/npc_spikeball.cpp b/src/entity/npc/spikeball.cpp similarity index 95% rename from src/npc_spikeball.cpp rename to src/entity/npc/spikeball.cpp index 9bf8cbf..7bb333d 100644 --- a/src/npc_spikeball.cpp +++ b/src/entity/npc/spikeball.cpp @@ -1,8 +1,8 @@ -#include "boss_repentance.h" -#include "entity_effect.h" -#include "npc_basement.h" -#include "npc_gehenna.h" -#include "player_manager.h" +#include "entity/boss/repentance.h" +#include "entity/effect/effect.h" +#include "entity/npc/basement.h" +#include "entity/npc/gehenna.h" +#include "entity/player/manager.h" // The Spikeball rolls back and forth along a row or column (its subtype's direction, kept to its cell's line), turning // at blocks and at other Spikeballs ahead. It cannot be hurt and is gone once the room is won. diff --git a/src/npc_squirt.cpp b/src/entity/npc/squirt.cpp similarity index 98% rename from src/npc_squirt.cpp rename to src/entity/npc/squirt.cpp index 81b5370..00c82fb 100644 --- a/src/npc_squirt.cpp +++ b/src/entity/npc/squirt.cpp @@ -1,8 +1,8 @@ -#include "npc_caves.h" -#include "entity_effect.h" -#include "game.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "level/room.h" +#include "game/sfx_manager.h" // The Squirt's variants: the brown one that splits into dips, and the dank one that splits into clots, leaving black // creep as it slides. diff --git a/src/npc_stone_eye.cpp b/src/entity/npc/stone_eye.cpp similarity index 97% rename from src/npc_stone_eye.cpp rename to src/entity/npc/stone_eye.cpp index 0dd7927..0eda44e 100644 --- a/src/npc_stone_eye.cpp +++ b/src/entity/npc/stone_eye.cpp @@ -1,8 +1,8 @@ -#include "npc_caves.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "game.h" -#include "room.h" +#include "entity/npc/caves.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "game/game.h" +#include "level/room.h" #include // The Stone Eye turns 2 degrees a tick on its cell (or toward its controller's aim), keeping a thin laser out along diff --git a/src/npc_stone_shooter.cpp b/src/entity/npc/stone_shooter.cpp similarity index 98% rename from src/npc_stone_shooter.cpp rename to src/entity/npc/stone_shooter.cpp index 687328e..d808c14 100644 --- a/src/npc_stone_shooter.cpp +++ b/src/entity/npc/stone_shooter.cpp @@ -1,8 +1,8 @@ -#include "npc_caves.h" -#include "room_descriptor.h" -#include "game.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "level/room_descriptor.h" +#include "game/game.h" +#include "level/room.h" +#include "game/sfx_manager.h" // The stone shooters: the one firing a stone along its facing (its subtype: left, up, right or down), and the cross // ones turning between a plus and a cross of shots (their subtype the next), one shutting once the room's enemies are diff --git a/src/npc_stonehead.cpp b/src/entity/npc/stonehead.cpp similarity index 98% rename from src/npc_stonehead.cpp rename to src/entity/npc/stonehead.cpp index aaeef4d..28ea475 100644 --- a/src/npc_stonehead.cpp +++ b/src/entity/npc/stonehead.cpp @@ -1,11 +1,11 @@ -#include "boss_ai.h" -#include "entity_projectile.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "menu_manager.h" -#include "npc_caves.h" -#include "room_descriptor.h" -#include "sfx_manager.h" +#include "entity/boss/ai.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "ui/menu/manager.h" +#include "entity/npc/caves.h" +#include "level/room_descriptor.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/npc_strider.cpp b/src/entity/npc/strider.cpp similarity index 98% rename from src/npc_strider.cpp rename to src/entity/npc/strider.cpp index a28fefa..a1ac049 100644 --- a/src/npc_strider.cpp +++ b/src/entity/npc/strider.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_familiar.h" -#include "npc_caves.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/caves.h" #include // The Strider skates over the water: idle, then every 4th frame on average it picks a way (toward its prey half the diff --git a/src/npc_sub_horf.cpp b/src/entity/npc/sub_horf.cpp similarity index 97% rename from src/npc_sub_horf.cpp rename to src/entity/npc/sub_horf.cpp index 9a91a25..953154a 100644 --- a/src/npc_sub_horf.cpp +++ b/src/entity/npc/sub_horf.cpp @@ -1,9 +1,9 @@ -#include "npc_caves.h" -#include "backdrop.h" -#include "game.h" -#include "level.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/npc/caves.h" +#include "level/backdrop.h" +#include "game/game.h" +#include "level/level.h" +#include "level/room.h" +#include "game/sfx_manager.h" #include // The Sub Horf spins in place as it drifts, spitting along its facing. Its tainted variant chases its target instead, diff --git a/src/npc_swarm.cpp b/src/entity/npc/swarm.cpp similarity index 97% rename from src/npc_swarm.cpp rename to src/entity/npc/swarm.cpp index 7cbae22..228081f 100644 --- a/src/npc_swarm.cpp +++ b/src/entity/npc/swarm.cpp @@ -1,7 +1,7 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "room_grid.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "level/room_grid.h" // A Swarm is a leader and four flies spawned 10 around it, circling the leader's spot as it drifts toward the target at // 5 a frame (6 along its player's input). They push each other apart within 50, and leaders' spots within 100. diff --git a/src/npc_swarm_spider.cpp b/src/entity/npc/swarm_spider.cpp similarity index 98% rename from src/npc_swarm_spider.cpp rename to src/entity/npc/swarm_spider.cpp index ff34357..cb09969 100644 --- a/src/npc_swarm_spider.cpp +++ b/src/entity/npc/swarm_spider.cpp @@ -1,6 +1,6 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "loot_list.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "entity/pickup/loot_list.h" // The Swarm Spider comes in clutches (its subtype counts the extra ones, scattered within 20) and hops about its // target: short, plain or long hops, mostly away or sideways once within 100, and rarely so from afar. Bursting Sack diff --git a/src/npc_swarmer.cpp b/src/entity/npc/swarmer.cpp similarity index 98% rename from src/npc_swarmer.cpp rename to src/entity/npc/swarmer.cpp index b1e231e..8050bd2 100644 --- a/src/npc_swarmer.cpp +++ b/src/entity/npc/swarmer.cpp @@ -1,12 +1,12 @@ -#include "boss_ai.h" -#include "menu_manager.h" -#include "entity_config.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "npc_basement.h" -#include "npc_caves.h" -#include "player_manager.h" +#include "entity/boss/ai.h" +#include "ui/menu/manager.h" +#include "entity/config.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/npc/basement.h" +#include "entity/npc/caves.h" +#include "entity/player/manager.h" #include #include diff --git a/src/npc_swinger.cpp b/src/entity/npc/swinger.cpp similarity index 99% rename from src/npc_swinger.cpp rename to src/entity/npc/swinger.cpp index 1ad6d7b..076f5ce 100644 --- a/src/npc_swinger.cpp +++ b/src/entity/npc/swinger.cpp @@ -1,5 +1,5 @@ -#include "npc_depths.h" -#include "game.h" +#include "entity/npc/depths.h" +#include "game/game.h" // The Swinger's parts: its body, the head it swings on a cord, and the cord's links. constexpr int SWINGER_HEAD = 1; diff --git a/src/npc_tarboy.cpp b/src/entity/npc/tarboy.cpp similarity index 98% rename from src/npc_tarboy.cpp rename to src/entity/npc/tarboy.cpp index 3af36e5..4f48ce7 100644 --- a/src/npc_tarboy.cpp +++ b/src/entity/npc/tarboy.cpp @@ -1,11 +1,11 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "game.h" -#include "menu_manager.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "ui/menu/manager.h" +#include "level/room.h" +#include "level/room_grid.h" // The Tar Boy (subtype 0) blocks its cell, sinks into its black creep and rises from another puddle toward its target, // spits goo at where its target heads, and sends its mouth (subtype 1) up out of a puddle there to bite. It leaves diff --git a/src/npc_twitchy.cpp b/src/entity/npc/twitchy.cpp similarity index 98% rename from src/npc_twitchy.cpp rename to src/entity/npc/twitchy.cpp index 36f3ae6..449b456 100644 --- a/src/npc_twitchy.cpp +++ b/src/entity/npc/twitchy.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "entity_knife.h" -#include "room.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/weapon/knife.h" +#include "level/room.h" +#include "level/room_grid.h" // It walks the grid path to its target (fleeing when afraid or shrunk), groaning now and then in plain sight, and // twitches its head one frame in 70. diff --git a/src/npc_ultra_coin.cpp b/src/entity/npc/ultra_coin.cpp similarity index 98% rename from src/npc_ultra_coin.cpp rename to src/entity/npc/ultra_coin.cpp index 68e7d31..640e171 100644 --- a/src/npc_ultra_coin.cpp +++ b/src/entity/npc/ultra_coin.cpp @@ -1,12 +1,12 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_pickup.h" -#include "game.h" -#include "manager.h" -#include "persistent_game_data.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/pickup/pickup.h" +#include "game/game.h" +#include "game/manager.h" +#include "game/persistent_game_data.h" #include #include diff --git a/src/npc_ultra_door.cpp b/src/entity/npc/ultra_door.cpp similarity index 98% rename from src/npc_ultra_door.cpp rename to src/entity/npc/ultra_door.cpp index d2fd323..0df5d2a 100644 --- a/src/npc_ultra_door.cpp +++ b/src/entity/npc/ultra_door.cpp @@ -1,9 +1,9 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "entity_laser.h" -#include "room.h" -#include "room_config.h" -#include "room_grid.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_grid.h" #include // Ultra Greed's doors sit in the room's door slots, an invulnerable background sprite pushed 23 into the wall. A key diff --git a/src/npc_ultra_greed.cpp b/src/entity/npc/ultra_greed.cpp similarity index 99% rename from src/npc_ultra_greed.cpp rename to src/entity/npc/ultra_greed.cpp index b3325fb..85b8334 100644 --- a/src/npc_ultra_greed.cpp +++ b/src/entity/npc/ultra_greed.cpp @@ -1,24 +1,24 @@ -#include "npc_depths.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "grid_entity_trap_door.h" -#include "loot_list.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "path_finder.h" -#include "persistent_game_data.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/npc/depths.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "level/grid/trap_door.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "level/path_finder.h" +#include "game/persistent_game_data.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/npc_unborn.cpp b/src/entity/npc/unborn.cpp similarity index 99% rename from src/npc_unborn.cpp rename to src/entity/npc/unborn.cpp index 66de49f..2d0f538 100644 --- a/src/npc_unborn.cpp +++ b/src/entity/npc/unborn.cpp @@ -1,6 +1,6 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_config.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/config.h" #include // The Unborn drifts after its target, rolling with its speed and bouncing off walls, and swerves around the tear most diff --git a/src/npc_vis.cpp b/src/entity/npc/vis.cpp similarity index 98% rename from src/npc_vis.cpp rename to src/entity/npc/vis.cpp index f51dbe8..1004b68 100644 --- a/src/npc_vis.cpp +++ b/src/entity/npc/vis.cpp @@ -1,14 +1,14 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "camera.h" -#include "entity_config.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_tear.h" -#include "grid_entity.h" -#include "manager.h" -#include "npc_caves.h" -#include "texture_cache.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "entity/config.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/weapon/tear.h" +#include "level/grid/grid_entity.h" +#include "game/manager.h" +#include "entity/npc/caves.h" +#include "engine/texture_cache.h" #include // The Vis family (39: Vis, Double Vis, the Chubber and its worms, the Scarred Double Vis), the Gluttonies (49) and diff --git a/src/npc_vis_fatty.cpp b/src/entity/npc/vis_fatty.cpp similarity index 99% rename from src/npc_vis_fatty.cpp rename to src/entity/npc/vis_fatty.cpp index 4e4c056..1492264 100644 --- a/src/npc_vis_fatty.cpp +++ b/src/entity/npc/vis_fatty.cpp @@ -1,8 +1,8 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_laser.h" -#include "npc_basement.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/weapon/laser.h" +#include "entity/npc/basement.h" #include #include diff --git a/src/npc_wall_creep.cpp b/src/entity/npc/wall_creep.cpp similarity index 98% rename from src/npc_wall_creep.cpp rename to src/entity/npc/wall_creep.cpp index 89e63d2..f43addf 100644 --- a/src/npc_wall_creep.cpp +++ b/src/entity/npc/wall_creep.cpp @@ -1,12 +1,12 @@ -#include "npc_depths.h" -#include "boss_ai.h" -#include "camera.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "manager.h" -#include "npc_caves.h" -#include "room_grid.h" +#include "entity/npc/depths.h" +#include "entity/boss/ai.h" +#include "level/camera.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "game/manager.h" +#include "entity/npc/caves.h" +#include "level/room_grid.h" // The creeps crawl along a wall, keeping level with their target, and shoot out from it: the Wall Creep (240, its // Soy, Rag and Tainted Soy variants), the Rage Creep (241, which fires brimstone, and its split variant), the Blind diff --git a/src/npc_whipper.cpp b/src/entity/npc/whipper.cpp similarity index 98% rename from src/npc_whipper.cpp rename to src/entity/npc/whipper.cpp index 56641dc..40ddaf3 100644 --- a/src/npc_whipper.cpp +++ b/src/entity/npc/whipper.cpp @@ -1,9 +1,9 @@ -#include "npc_gehenna.h" -#include "boss_ai.h" -#include "capsule.h" -#include "entity_config.h" -#include "entity_familiar.h" -#include "npc_fireplace.h" +#include "entity/npc/gehenna.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/config.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/fireplace.h" #include // The Whipper (variant 0), the Snapper (1) and the Flagellant (2) walk the grid axis aligned, lunge along their facing diff --git a/src/npc_willo_l2.cpp b/src/entity/npc/willo_l2.cpp similarity index 98% rename from src/npc_willo_l2.cpp rename to src/entity/npc/willo_l2.cpp index 55548a5..5c8f00b 100644 --- a/src/npc_willo_l2.cpp +++ b/src/entity/npc/willo_l2.cpp @@ -1,7 +1,7 @@ -#include "npc_alt.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "room_grid.h" +#include "entity/npc/alt.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "level/room_grid.h" #include // The level 2 Willo latches onto the nearest enemy of its own side and circles it, riding along with it, spacing diff --git a/src/npc_wizoob.cpp b/src/entity/npc/wizoob.cpp similarity index 98% rename from src/npc_wizoob.cpp rename to src/entity/npc/wizoob.cpp index b05fcdb..adf5559 100644 --- a/src/npc_wizoob.cpp +++ b/src/entity/npc/wizoob.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "entity_laser.h" -#include "entity_familiar.h" -#include "npc_depths.h" -#include "room_grid.h" +#include "entity/boss/ai.h" +#include "entity/weapon/laser.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/depths.h" +#include "level/room_grid.h" // The ghost's four facings (left, up, right, down) and their animations. constexpr const char* WIZOOB_APPEAR[] = {"AppearLeft", "AppearUp", "AppearRight", "AppearDown"}; diff --git a/src/npc_wrinkly_baby.cpp b/src/entity/npc/wrinkly_baby.cpp similarity index 98% rename from src/npc_wrinkly_baby.cpp rename to src/entity/npc/wrinkly_baby.cpp index f4103b4..552efa9 100644 --- a/src/npc_wrinkly_baby.cpp +++ b/src/entity/npc/wrinkly_baby.cpp @@ -1,8 +1,8 @@ -#include "boss_ai.h" -#include "active_items.h" -#include "entity_player.h" -#include "menu_manager.h" -#include "npc_basement.h" +#include "entity/boss/ai.h" +#include "entity/player/active_items.h" +#include "entity/player/player.h" +#include "ui/menu/manager.h" +#include "entity/npc/basement.h" // The Wrinkly Baby's states: drifting, the dash along a line at its target, and the triple shot. constexpr int WRINKLY_DASH = NPC_STATE_STOMP; diff --git a/src/entity_pickup_chest.cpp b/src/entity/pickup/chest.cpp similarity index 98% rename from src/entity_pickup_chest.cpp rename to src/entity/pickup/chest.cpp index 32be888..63bcafe 100644 --- a/src/entity_pickup_chest.cpp +++ b/src/entity/pickup/chest.cpp @@ -1,18 +1,18 @@ -#include "entity_pickup.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "item_pool.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "room_transition.h" -#include "sfx_manager.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/pickup/item_pool.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_transition.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/item_config.cpp b/src/entity/pickup/item_config.cpp similarity index 99% rename from src/item_config.cpp rename to src/entity/pickup/item_config.cpp index 7a6d4ba..67c7ce6 100644 --- a/src/item_config.cpp +++ b/src/entity/pickup/item_config.cpp @@ -1,10 +1,10 @@ -#include "item_config.h" -#include "data.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "mod_manager.h" +#include "entity/pickup/item_config.h" +#include "engine/data.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "game/mod_manager.h" #include #include #include diff --git a/src/item_config.h b/src/entity/pickup/item_config.h similarity index 99% rename from src/item_config.h rename to src/entity/pickup/item_config.h index ee7e449..e778d88 100644 --- a/src/item_config.h +++ b/src/entity/pickup/item_config.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include "classes.h" #include #include diff --git a/src/item_overlay.cpp b/src/entity/pickup/item_overlay.cpp similarity index 97% rename from src/item_overlay.cpp rename to src/entity/pickup/item_overlay.cpp index 1811c53..95048a6 100644 --- a/src/item_overlay.cpp +++ b/src/entity/pickup/item_overlay.cpp @@ -1,12 +1,12 @@ -#include "item_overlay.h" -#include "entity_player.h" -#include "game.h" -#include "kage_graphics.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "render_passes.h" -#include "room.h" +#include "entity/pickup/item_overlay.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/kage_graphics.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/render_passes.h" +#include "level/room.h" #include constexpr int SLEEP_SOUL_HEARTS = 6; diff --git a/src/item_overlay.h b/src/entity/pickup/item_overlay.h similarity index 97% rename from src/item_overlay.h rename to src/entity/pickup/item_overlay.h index 606133c..65affdb 100644 --- a/src/item_overlay.h +++ b/src/entity/pickup/item_overlay.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "entity.h" +#include "engine/anm2.h" +#include "entity/entity.h" // REPENTOGON's eItemOverlayState: hidden, waiting out its delay, or playing. enum ItemOverlayState : int diff --git a/src/item_pickup.cpp b/src/entity/pickup/item_pickup.cpp similarity index 97% rename from src/item_pickup.cpp rename to src/entity/pickup/item_pickup.cpp index 7bf2d23..3629dd6 100644 --- a/src/item_pickup.cpp +++ b/src/entity/pickup/item_pickup.cpp @@ -1,28 +1,28 @@ -#include "item_pickup.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "hud.h" -#include "entity_pickup.h" -#include "active_items.h" -#include "entity_player.h" -#include "entity_player_tainted.h" -#include "fx_layers.h" -#include "game.h" -#include "menu_special_seeds.h" -#include "menu_options.h" -#include "font.h" -#include "grid_entity.h" -#include "item_pool.h" -#include "level.h" -#include "procedural_item_manager.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "room_special.h" -#include "room_state.h" -#include "seeds.h" +#include "entity/pickup/item_pickup.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "ui/hud.h" +#include "entity/pickup/pickup.h" +#include "entity/player/active_items.h" +#include "entity/player/player.h" +#include "entity/player/tainted.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "ui/menu/special_seeds.h" +#include "ui/menu/options.h" +#include "engine/font.h" +#include "level/grid/grid_entity.h" +#include "entity/pickup/item_pool.h" +#include "level/level.h" +#include "entity/pickup/procedural_item_manager.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_special.h" +#include "level/room_state.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/item_pickup.h b/src/entity/pickup/item_pickup.h similarity index 100% rename from src/item_pickup.h rename to src/entity/pickup/item_pickup.h diff --git a/src/item_pool.cpp b/src/entity/pickup/item_pool.cpp similarity index 99% rename from src/item_pool.cpp rename to src/entity/pickup/item_pool.cpp index 56dd132..a9c46c0 100644 --- a/src/item_pool.cpp +++ b/src/entity/pickup/item_pool.cpp @@ -1,16 +1,16 @@ -#include "item_pool.h" -#include "boss_pool.h" -#include "data.h" -#include "entity_config.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "loot_list.h" -#include "lua_engine.h" -#include "manager.h" -#include "platform.h" -#include "room.h" -#include "room_config.h" +#include "entity/pickup/item_pool.h" +#include "entity/boss/pool.h" +#include "engine/data.h" +#include "entity/config.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/pickup/loot_list.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_config.h" #include #include #include diff --git a/src/item_pool.h b/src/entity/pickup/item_pool.h similarity index 99% rename from src/item_pool.h rename to src/entity/pickup/item_pool.h index 7523d0a..034f64e 100644 --- a/src/item_pool.h +++ b/src/entity/pickup/item_pool.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "item_config.h" +#include "entity/pickup/item_config.h" #include #include #include diff --git a/src/loot_list.h b/src/entity/pickup/loot_list.h similarity index 100% rename from src/loot_list.h rename to src/entity/pickup/loot_list.h diff --git a/src/entity_pickup_morph.cpp b/src/entity/pickup/morph.cpp similarity index 97% rename from src/entity_pickup_morph.cpp rename to src/entity/pickup/morph.cpp index 03471f7..e7e6b87 100644 --- a/src/entity_pickup_morph.cpp +++ b/src/entity/pickup/morph.cpp @@ -1,9 +1,9 @@ -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "room_special.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room_special.h" #include #include #include diff --git a/src/entity_pickup.cpp b/src/entity/pickup/pickup.cpp similarity index 99% rename from src/entity_pickup.cpp rename to src/entity/pickup/pickup.cpp index 2837557..857c4b1 100644 --- a/src/entity_pickup.cpp +++ b/src/entity/pickup/pickup.cpp @@ -1,30 +1,30 @@ -#include "entity_pickup.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_player_trinkets.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_door.h" -#include "level.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "item_pool.h" -#include "menu_options.h" -#include "npc_ai.h" -#include "npc_depths.h" -#include "persistent_game_data.h" -#include "platform.h" -#include "room.h" -#include "room_grid.h" -#include "room_render.h" -#include "seeds.h" +#include "entity/pickup/pickup.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/player/trinkets.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/door.h" +#include "level/level.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/pickup/item_pool.h" +#include "ui/menu/options.h" +#include "entity/npc/ai.h" +#include "entity/npc/depths.h" +#include "game/persistent_game_data.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_render.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/entity_pickup.h b/src/entity/pickup/pickup.h similarity index 99% rename from src/entity_pickup.h rename to src/entity/pickup/pickup.h index a4ff341..1e975d6 100644 --- a/src/entity_pickup.h +++ b/src/entity/pickup/pickup.h @@ -1,8 +1,8 @@ #pragma once -#include "entity.h" -#include "anm2.h" -#include "loot_list.h" +#include "entity/entity.h" +#include "engine/anm2.h" +#include "entity/pickup/loot_list.h" #include #include diff --git a/src/procedural_item_manager.cpp b/src/entity/pickup/procedural_item_manager.cpp similarity index 99% rename from src/procedural_item_manager.cpp rename to src/entity/pickup/procedural_item_manager.cpp index 2852556..dc25192 100644 --- a/src/procedural_item_manager.cpp +++ b/src/entity/pickup/procedural_item_manager.cpp @@ -1,16 +1,16 @@ -#include "procedural_item_manager.h" -#include "boss_ai.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "fx_layers.h" -#include "game.h" -#include "manager.h" -#include "platform.h" -#include "render_passes.h" -#include "room_grid.h" +#include "entity/pickup/procedural_item_manager.h" +#include "entity/boss/ai.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "game/manager.h" +#include "engine/platform.h" +#include "engine/render_passes.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/procedural_item_manager.h b/src/entity/pickup/procedural_item_manager.h similarity index 98% rename from src/procedural_item_manager.h rename to src/entity/pickup/procedural_item_manager.h index e7e8fe3..354a461 100644 --- a/src/procedural_item_manager.h +++ b/src/entity/pickup/procedural_item_manager.h @@ -1,7 +1,7 @@ #pragma once -#include "item_config.h" -#include "kage_graphics.h" +#include "entity/pickup/item_config.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/entity_pickup_shop.cpp b/src/entity/pickup/shop.cpp similarity index 97% rename from src/entity_pickup_shop.cpp rename to src/entity/pickup/shop.cpp index dfb5b3a..3fd6b51 100644 --- a/src/entity_pickup_shop.cpp +++ b/src/entity/pickup/shop.cpp @@ -1,16 +1,16 @@ -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_spikes.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_special.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/spikes.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_special.h" #include #include diff --git a/src/entity_slot.cpp b/src/entity/pickup/slot.cpp similarity index 99% rename from src/entity_slot.cpp rename to src/entity/pickup/slot.cpp index ad13836..add99ae 100644 --- a/src/entity_slot.cpp +++ b/src/entity/pickup/slot.cpp @@ -1,25 +1,25 @@ -#include "entity_slot.h" -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_bomb.h" -#include "entity_combat.h" -#include "entity_effect_combat.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "hud.h" -#include "log.h" -#include "manager.h" -#include "npc_basement.h" -#include "npc_caves.h" -#include "persistent_game_data.h" -#include "player_stats.h" -#include "room.h" -#include "room_config.h" -#include "room_grid.h" -#include "room_render.h" -#include "room_special.h" +#include "entity/pickup/slot.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/weapon/bomb.h" +#include "entity/combat.h" +#include "entity/effect/combat.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "ui/hud.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/basement.h" +#include "entity/npc/caves.h" +#include "game/persistent_game_data.h" +#include "entity/player/stats.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_grid.h" +#include "level/room_render.h" +#include "level/room_special.h" #include #include diff --git a/src/entity_slot.h b/src/entity/pickup/slot.h similarity index 99% rename from src/entity_slot.h rename to src/entity/pickup/slot.h index daf4847..68367a2 100644 --- a/src/entity_slot.h +++ b/src/entity/pickup/slot.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" // Lua's SlotVariant: the machines and beggars. enum SlotVariant : int diff --git a/src/active_items.h b/src/entity/player/active_items.h similarity index 99% rename from src/active_items.h rename to src/entity/player/active_items.h index 2331b21..773c1e1 100644 --- a/src/active_items.h +++ b/src/entity/player/active_items.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "item_config.h" +#include "entity/pickup/item_config.h" #include struct Entity_Pickup; diff --git a/src/entity_player_actives.cpp b/src/entity/player/actives.cpp similarity index 99% rename from src/entity_player_actives.cpp rename to src/entity/player/actives.cpp index e41a794..f26ae6c 100644 --- a/src/entity_player_actives.cpp +++ b/src/entity/player/actives.cpp @@ -1,42 +1,42 @@ -#include "entity_player.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_player_characters.h" -#include "entity_player_crafting.h" -#include "entity_player_trinkets.h" -#include "console.h" -#include "entity_familiar.h" -#include "npc_ai.h" -#include "room_grid.h" -#include "active_items.h" -#include "boss_ai.h" -#include "capsule.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "entity_tear.h" -#include "entity_effect_combat.h" -#include "item_pool.h" -#include "player_manager.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_poop.h" -#include "grid_entity_trap_door.h" -#include "hud.h" -#include "kage_input.h" -#include "key_configs.h" -#include "log.h" -#include "loot_list.h" -#include "lua_callbacks.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_basement.h" -#include "npc_fireplace.h" -#include "room.h" -#include "room_state.h" -#include "room_special.h" -#include "tainted_characters.h" +#include "entity/player/player.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/player/characters.h" +#include "entity/player/crafting.h" +#include "entity/player/trinkets.h" +#include "ui/console.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/ai.h" +#include "level/room_grid.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/tear.h" +#include "entity/effect/combat.h" +#include "entity/pickup/item_pool.h" +#include "entity/player/manager.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/poop.h" +#include "level/grid/trap_door.h" +#include "ui/hud.h" +#include "engine/kage_input.h" +#include "game/key_configs.h" +#include "engine/log.h" +#include "entity/pickup/loot_list.h" +#include "lua/callbacks.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/basement.h" +#include "entity/npc/fireplace.h" +#include "level/room.h" +#include "level/room_state.h" +#include "level/room_special.h" +#include "entity/player/tainted_characters.h" #include #include #include diff --git a/src/entity_player_actives_afterbirth.cpp b/src/entity/player/actives_afterbirth.cpp similarity index 98% rename from src/entity_player_actives_afterbirth.cpp rename to src/entity/player/actives_afterbirth.cpp index 77cc326..15773bf 100644 --- a/src/entity_player_actives_afterbirth.cpp +++ b/src/entity/player/actives_afterbirth.cpp @@ -1,25 +1,25 @@ -#include "entity_player.h" -#include "active_items.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_tear.h" -#include "item_pool.h" -#include "room.h" -#include "room_grid.h" -#include "room_state.h" -#include "boss_ai.h" -#include "game.h" -#include "grid_entity_spikes.h" -#include "hud.h" -#include "item_overlay.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "entity_effect_combat.h" -#include "entity_npc.h" -#include "player_manager.h" +#include "entity/player/player.h" +#include "entity/player/active_items.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/tear.h" +#include "entity/pickup/item_pool.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_state.h" +#include "entity/boss/ai.h" +#include "game/game.h" +#include "level/grid/spikes.h" +#include "ui/hud.h" +#include "entity/pickup/item_overlay.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/effect/combat.h" +#include "entity/npc/npc.h" +#include "entity/player/manager.h" #include #include #include diff --git a/src/entity_player_actives_grid.cpp b/src/entity/player/actives_grid.cpp similarity index 96% rename from src/entity_player_actives_grid.cpp rename to src/entity/player/actives_grid.cpp index f0ab441..da6eecb 100644 --- a/src/entity_player_actives_grid.cpp +++ b/src/entity/player/actives_grid.cpp @@ -1,26 +1,26 @@ -#include "entity_player.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "level.h" -#include "npc_basement.h" -#include "room_grid.h" -#include "game.h" -#include "log.h" -#include "loot_list.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "pocket_items.h" -#include "room.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "room_path.h" -#include "grid_entity_door.h" +#include "entity/player/player.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "level/level.h" +#include "entity/npc/basement.h" +#include "level/room_grid.h" +#include "game/game.h" +#include "engine/log.h" +#include "entity/pickup/loot_list.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "level/room_path.h" +#include "level/grid/door.h" #include #include #include diff --git a/src/entity_player_actives_rebirth.cpp b/src/entity/player/actives_rebirth.cpp similarity index 99% rename from src/entity_player_actives_rebirth.cpp rename to src/entity/player/actives_rebirth.cpp index 11f6222..8ebc2dd 100644 --- a/src/entity_player_actives_rebirth.cpp +++ b/src/entity/player/actives_rebirth.cpp @@ -1,28 +1,28 @@ -#include "entity_player.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity_door.h" -#include "hud.h" -#include "item_pool.h" -#include "level.h" -#include "log.h" -#include "loot_list.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "pocket_items.h" -#include "room.h" -#include "room_grid.h" -#include "room_special.h" -#include "sfx_manager.h" +#include "entity/player/player.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "ui/hud.h" +#include "entity/pickup/item_pool.h" +#include "level/level.h" +#include "engine/log.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_special.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_player_actives_repentance.cpp b/src/entity/player/actives_repentance.cpp similarity index 99% rename from src/entity_player_actives_repentance.cpp rename to src/entity/player/actives_repentance.cpp index 0cd601c..e85e117 100644 --- a/src/entity_player_actives_repentance.cpp +++ b/src/entity/player/actives_repentance.cpp @@ -1,32 +1,32 @@ -#include "entity_player.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_config.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "hud.h" -#include "item_overlay.h" -#include "loot_list.h" -#include "persistent_game_data.h" -#include "player_manager.h" -#include "room_descriptor.h" -#include "grid_entity_door.h" -#include "entity_bomb.h" -#include "entity_effect_combat.h" -#include "npc_basement.h" -#include "pocket_items.h" -#include "procedural_item_manager.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_config.h" -#include "room_grid.h" +#include "entity/player/player.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/config.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "ui/hud.h" +#include "entity/pickup/item_overlay.h" +#include "entity/pickup/loot_list.h" +#include "game/persistent_game_data.h" +#include "entity/player/manager.h" +#include "level/room_descriptor.h" +#include "level/grid/door.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/combat.h" +#include "entity/npc/basement.h" +#include "entity/player/pocket_items.h" +#include "entity/pickup/procedural_item_manager.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_grid.h" #include #include diff --git a/src/entity_player_bombs.cpp b/src/entity/player/bombs.cpp similarity index 98% rename from src/entity_player_bombs.cpp rename to src/entity/player/bombs.cpp index 029869f..12280a1 100644 --- a/src/entity_player_bombs.cpp +++ b/src/entity/player/bombs.cpp @@ -1,15 +1,15 @@ -#include "entity_player.h" -#include "entity_player_characters.h" -#include "active_items.h" -#include "entity_bomb.h" -#include "entity_laser.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "sfx_manager.h" +#include "entity/player/player.h" +#include "entity/player/characters.h" +#include "entity/player/active_items.h" +#include "entity/weapon/bomb.h" +#include "entity/weapon/laser.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_player_cards.cpp b/src/entity/player/cards.cpp similarity index 99% rename from src/entity_player_cards.cpp rename to src/entity/player/cards.cpp index 62ea874..3d24a30 100644 --- a/src/entity_player_cards.cpp +++ b/src/entity/player/cards.cpp @@ -1,28 +1,28 @@ -#include "entity_player.h" -#include "active_items.h" -#include "boss_pool.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_slot.h" -#include "entity_tear.h" -#include "entity_familiar.h" -#include "game.h" -#include "game_state_player.h" -#include "hud.h" -#include "level_generator.h" -#include "loot_list.h" -#include "item_overlay.h" -#include "manager.h" -#include "npc_ai.h" -#include "pocket_items.h" -#include "room.h" -#include "room_grid.h" -#include "room_special.h" -#include "boss_ai.h" -#include "deathmatch_manager.h" -#include "grid_entity_door.h" -#include "room_render.h" +#include "entity/player/player.h" +#include "entity/player/active_items.h" +#include "entity/boss/pool.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/pickup/slot.h" +#include "entity/weapon/tear.h" +#include "entity/familiar/familiar.h" +#include "game/game.h" +#include "game/state_player.h" +#include "ui/hud.h" +#include "level/generator.h" +#include "entity/pickup/loot_list.h" +#include "entity/pickup/item_overlay.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_special.h" +#include "entity/boss/ai.h" +#include "game/deathmatch_manager.h" +#include "level/grid/door.h" +#include "level/room_render.h" #include #include #include diff --git a/src/entity_player_characters.cpp b/src/entity/player/characters.cpp similarity index 99% rename from src/entity_player_characters.cpp rename to src/entity/player/characters.cpp index 88a37f6..750c572 100644 --- a/src/entity_player_characters.cpp +++ b/src/entity/player/characters.cpp @@ -1,23 +1,23 @@ -#include "entity_player_characters.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_pickup.h" -#include "entity_player_tainted.h" -#include "entity_player_trinkets.h" -#include "game.h" -#include "hud.h" -#include "item_overlay.h" -#include "item_pool.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "player_manager.h" -#include "room.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "room_grid.h" +#include "entity/player/characters.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/pickup/pickup.h" +#include "entity/player/tainted.h" +#include "entity/player/trinkets.h" +#include "game/game.h" +#include "ui/hud.h" +#include "entity/pickup/item_overlay.h" +#include "entity/pickup/item_pool.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "entity/player/manager.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_player_characters.h b/src/entity/player/characters.h similarity index 99% rename from src/entity_player_characters.h rename to src/entity/player/characters.h index 6dfab18..a33afa9 100644 --- a/src/entity_player_characters.h +++ b/src/entity/player/characters.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_player.h" +#include "entity/player/player.h" #include constexpr int GIANTBOOK_WHORE_OF_BABYLON = 3; diff --git a/src/entity_player_collectibles.cpp b/src/entity/player/collectibles.cpp similarity index 98% rename from src/entity_player_collectibles.cpp rename to src/entity/player/collectibles.cpp index b72210b..0e7d8c9 100644 --- a/src/entity_player_collectibles.cpp +++ b/src/entity/player/collectibles.cpp @@ -1,20 +1,20 @@ -#include "entity_player.h" -#include "entity_player_passives.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_combat.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "game.h" -#include "hud.h" -#include "log.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/player/player.h" +#include "entity/player/passives.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/combat.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "game/game.h" +#include "ui/hud.h" +#include "engine/log.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include diff --git a/src/entity_player_coop.cpp b/src/entity/player/coop.cpp similarity index 97% rename from src/entity_player_coop.cpp rename to src/entity/player/coop.cpp index 51ed5ef..8790322 100644 --- a/src/entity_player_coop.cpp +++ b/src/entity/player/coop.cpp @@ -1,24 +1,24 @@ -#include "entity_player.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "game.h" -#include "item_config.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "persistent_game_data.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "temporary_effects.h" +#include "entity/player/player.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "game/persistent_game_data.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "entity/player/temporary_effects.h" #include #include diff --git a/src/entity_player_costumes.cpp b/src/entity/player/costumes.cpp similarity index 98% rename from src/entity_player_costumes.cpp rename to src/entity/player/costumes.cpp index 8982a00..30fded0 100644 --- a/src/entity_player_costumes.cpp +++ b/src/entity/player/costumes.cpp @@ -1,13 +1,13 @@ -#include "entity_player.h" -#include "item_config.h" -#include "seeds.h" -#include "npc_ai.h" -#include "entity_bomb.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "room_render.h" -#include "weapon_umbilical_whip.h" +#include "entity/player/player.h" +#include "entity/pickup/item_config.h" +#include "engine/seeds.h" +#include "entity/npc/ai.h" +#include "entity/weapon/bomb.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room_render.h" +#include "entity/weapon/umbilical_whip.h" #include #include #include diff --git a/src/entity_player_crafting.cpp b/src/entity/player/crafting.cpp similarity index 98% rename from src/entity_player_crafting.cpp rename to src/entity/player/crafting.cpp index c412e88..0ee64c6 100644 --- a/src/entity_player_crafting.cpp +++ b/src/entity/player/crafting.cpp @@ -1,18 +1,18 @@ -#include "entity_player_crafting.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_pickup.h" -#include "game.h" -#include "game_state.h" -#include "game_state_player.h" -#include "hud.h" -#include "item_pool.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "seeds.h" +#include "entity/player/crafting.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/pickup/pickup.h" +#include "game/game.h" +#include "game/state.h" +#include "game/state_player.h" +#include "ui/hud.h" +#include "entity/pickup/item_pool.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "engine/seeds.h" #include #include diff --git a/src/entity_player_crafting.h b/src/entity/player/crafting.h similarity index 94% rename from src/entity_player_crafting.h rename to src/entity/player/crafting.h index b0adc82..68d4e8a 100644 --- a/src/entity_player_crafting.h +++ b/src/entity/player/crafting.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_player.h" +#include "entity/player/player.h" // Tainted Cain's Bag of Crafting outside Entity_Player's own methods: the bag used from a slot (part of 005b39d0), // which names the animation the player holds it up with (none for a co-op baby), and the bag held up long enough to diff --git a/src/entity_player_damage.cpp b/src/entity/player/damage.cpp similarity index 99% rename from src/entity_player_damage.cpp rename to src/entity/player/damage.cpp index 4a169f2..726d20b 100644 --- a/src/entity_player_damage.cpp +++ b/src/entity/player/damage.cpp @@ -1,28 +1,28 @@ -#include "boss_repentance.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_combat.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_player_characters.h" -#include "entity_player_passives.h" -#include "entity_player_trinkets.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity_trap_door.h" -#include "level.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "persistent_game_data.h" -#include "room.h" -#include "room_grid.h" +#include "entity/boss/repentance.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/combat.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/player/characters.h" +#include "entity/player/passives.h" +#include "entity/player/trinkets.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/trap_door.h" +#include "level/level.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "game/persistent_game_data.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_player_dashes.cpp b/src/entity/player/dashes.cpp similarity index 98% rename from src/entity_player_dashes.cpp rename to src/entity/player/dashes.cpp index b3a4c18..e184782 100644 --- a/src/entity_player_dashes.cpp +++ b/src/entity/player/dashes.cpp @@ -1,19 +1,19 @@ -#include "entity_player_effects.h" -#include "boss_ai.h" -#include "capsule.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "temporary_effects.h" +#include "entity/player/effects.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "entity/player/temporary_effects.h" #include // Salvation's halo and Dark Arts' aura, a halo above the player, and Dark Arts' darkened sprite. diff --git a/src/entity_player_death.cpp b/src/entity/player/death.cpp similarity index 98% rename from src/entity_player_death.cpp rename to src/entity/player/death.cpp index b1870ef..1f5b1c3 100644 --- a/src/entity_player_death.cpp +++ b/src/entity/player/death.cpp @@ -1,32 +1,32 @@ -#include "game_over.h" -#include "boss_ai.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "active_items.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "entity_tear.h" -#include "entity_pickup.h" -#include "entity_config.h" -#include "entity_bomb.h" -#include "entity_player_characters.h" -#include "game.h" -#include "item_config.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "persistent_game_data.h" -#include "platform.h" -#include "player_manager.h" -#include "room.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "sfx_manager.h" +#include "game/over.h" +#include "entity/boss/ai.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "entity/player/active_items.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/weapon/tear.h" +#include "entity/pickup/pickup.h" +#include "entity/config.h" +#include "entity/weapon/bomb.h" +#include "entity/player/characters.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "game/persistent_game_data.h" +#include "engine/platform.h" +#include "entity/player/manager.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_player_effects.cpp b/src/entity/player/effects.cpp similarity index 98% rename from src/entity_player_effects.cpp rename to src/entity/player/effects.cpp index 6d8b773..ed15849 100644 --- a/src/entity_player_effects.cpp +++ b/src/entity/player/effects.cpp @@ -1,38 +1,38 @@ -#include "entity_player_effects.h" -#include "boss_ai.h" -#include "boss_pool.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_laser.h" -#include "entity_player_characters.h" -#include "entity_player_passives.h" -#include "entity_player_trinkets.h" -#include "entity_knife.h" -#include "active_items.h" -#include "netplay_manager.h" -#include "platform.h" -#include "tainted_characters.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "entity_slot.h" -#include "game.h" -#include "manager.h" -#include "lua_engine.h" -#include "grid_entity_pit.h" -#include "grid_entity_poop.h" -#include "npc_basement.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "temporary_effects.h" -#include "sfx_manager.h" -#include "hud.h" -#include "loot_list.h" -#include "persistent_game_data.h" +#include "entity/player/effects.h" +#include "entity/boss/ai.h" +#include "entity/boss/pool.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/laser.h" +#include "entity/player/characters.h" +#include "entity/player/passives.h" +#include "entity/player/trinkets.h" +#include "entity/weapon/knife.h" +#include "entity/player/active_items.h" +#include "online/netplay_manager.h" +#include "engine/platform.h" +#include "entity/player/tainted_characters.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "entity/pickup/slot.h" +#include "game/game.h" +#include "game/manager.h" +#include "lua/engine.h" +#include "level/grid/pit.h" +#include "level/grid/poop.h" +#include "entity/npc/basement.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "entity/player/temporary_effects.h" +#include "game/sfx_manager.h" +#include "ui/hud.h" +#include "entity/pickup/loot_list.h" +#include "game/persistent_game_data.h" #include #include diff --git a/src/entity_player_effects.h b/src/entity/player/effects.h similarity index 100% rename from src/entity_player_effects.h rename to src/entity/player/effects.h diff --git a/src/entity_player_evaluate.cpp b/src/entity/player/evaluate.cpp similarity index 99% rename from src/entity_player_evaluate.cpp rename to src/entity/player/evaluate.cpp index 83e17ef..61d5cd2 100644 --- a/src/entity_player_evaluate.cpp +++ b/src/entity/player/evaluate.cpp @@ -1,15 +1,15 @@ -#include "entity_player.h" -#include "active_items.h" -#include "entity_familiar.h" -#include "entity_player_characters.h" -#include "entity_player_passives.h" -#include "entity_tear.h" -#include "game.h" -#include "lua_engine.h" -#include "room.h" -#include "room_path.h" -#include "log.h" -#include "manager.h" +#include "entity/player/player.h" +#include "entity/player/active_items.h" +#include "entity/familiar/familiar.h" +#include "entity/player/characters.h" +#include "entity/player/passives.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "lua/engine.h" +#include "level/room.h" +#include "level/room_path.h" +#include "engine/log.h" +#include "game/manager.h" #include #include #include diff --git a/src/entity_player_familiars.cpp b/src/entity/player/familiars.cpp similarity index 96% rename from src/entity_player_familiars.cpp rename to src/entity/player/familiars.cpp index aec0017..54369ae 100644 --- a/src/entity_player_familiars.cpp +++ b/src/entity/player/familiars.cpp @@ -1,12 +1,12 @@ -#include "entity_player.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "game.h" -#include "item_config.h" -#include "manager.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/player/player.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "level/room.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_player_footprints.cpp b/src/entity/player/footprints.cpp similarity index 96% rename from src/entity_player_footprints.cpp rename to src/entity/player/footprints.cpp index 59a4704..0e21241 100644 --- a/src/entity_player_footprints.cpp +++ b/src/entity/player/footprints.cpp @@ -1,12 +1,12 @@ -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "item_config.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_render.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_render.h" // Without a costume that steps, a player steps every 6 frames, with the left foot every 12. constexpr int FOOTSTEP_PERIOD = 6; diff --git a/src/entity_player_forgotten.cpp b/src/entity/player/forgotten.cpp similarity index 98% rename from src/entity_player_forgotten.cpp rename to src/entity/player/forgotten.cpp index 5b93475..87bf740 100644 --- a/src/entity_player_forgotten.cpp +++ b/src/entity/player/forgotten.cpp @@ -1,18 +1,18 @@ -#include "entity_player_forgotten.h" -#include "tainted_characters.h" -#include "familiar_gello.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_projectile.h" -#include "game.h" -#include "hud.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_descriptor.h" -#include "room_grid.h" -#include "room_transition.h" +#include "entity/player/forgotten.h" +#include "entity/player/tainted_characters.h" +#include "entity/familiar/gello.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "ui/hud.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" +#include "level/room_transition.h" #include #include diff --git a/src/entity_player_forgotten.h b/src/entity/player/forgotten.h similarity index 87% rename from src/entity_player_forgotten.h rename to src/entity/player/forgotten.h index 9231f59..254143c 100644 --- a/src/entity_player_forgotten.h +++ b/src/entity/player/forgotten.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_effect.h" -#include "entity_player.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" #include struct Entity_Familiar; diff --git a/src/entity_player_forms.cpp b/src/entity/player/forms.cpp similarity index 95% rename from src/entity_player_forms.cpp rename to src/entity/player/forms.cpp index 14b4d40..7392c65 100644 --- a/src/entity_player_forms.cpp +++ b/src/entity/player/forms.cpp @@ -1,14 +1,14 @@ -#include "entity_effect.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "hud.h" -#include "item_overlay.h" -#include "manager.h" -#include "menu_options.h" -#include "player_stats.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "ui/hud.h" +#include "entity/pickup/item_overlay.h" +#include "game/manager.h" +#include "ui/menu/options.h" +#include "entity/player/stats.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/entity_player_frame.cpp b/src/entity/player/frame.cpp similarity index 99% rename from src/entity_player_frame.cpp rename to src/entity/player/frame.cpp index 2657b01..ae7e0d4 100644 --- a/src/entity_player_frame.cpp +++ b/src/entity/player/frame.cpp @@ -1,36 +1,36 @@ -#include "entity_player.h" -#include "entity_config.h" -#include "entity_player_trinkets.h" -#include "entity_player_characters.h" -#include "entity_player_crafting.h" -#include "entity_player_passives.h" -#include "tainted_characters.h" -#include "boss_ai.h" -#include "color_stack.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "sfx_manager.h" -#include "pocket_items.h" -#include "entity_familiar.h" -#include "entity_tear.h" -#include "entity_laser.h" -#include "entity_knife.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_manager.h" -#include "fx_layers.h" -#include "entity_effect_combat.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "npc_depths.h" -#include "active_items.h" -#include "platform.h" -#include "player_hud.h" -#include "hud.h" -#include "room.h" -#include "weapon_lasers.h" +#include "entity/player/player.h" +#include "entity/config.h" +#include "entity/player/trinkets.h" +#include "entity/player/characters.h" +#include "entity/player/crafting.h" +#include "entity/player/passives.h" +#include "entity/player/tainted_characters.h" +#include "entity/boss/ai.h" +#include "engine/color_stack.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "game/sfx_manager.h" +#include "entity/player/pocket_items.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/tear.h" +#include "entity/weapon/laser.h" +#include "entity/weapon/knife.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/fx_layers.h" +#include "entity/effect/combat.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/npc/depths.h" +#include "entity/player/active_items.h" +#include "engine/platform.h" +#include "entity/player/hud.h" +#include "ui/hud.h" +#include "level/room.h" +#include "entity/weapon/lasers.h" #include #include #include diff --git a/src/entity_player_health.cpp b/src/entity/player/health.cpp similarity index 99% rename from src/entity_player_health.cpp rename to src/entity/player/health.cpp index 1f84ff5..bf1dcb5 100644 --- a/src/entity_player_health.cpp +++ b/src/entity/player/health.cpp @@ -1,15 +1,15 @@ -#include "entity_player.h" -#include "entity_player_trinkets.h" -#include "game.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_pickup.h" -#include "entity_player_characters.h" -#include "item_overlay.h" -#include "manager.h" -#include "room_grid.h" -#include "seeds.h" -#include "sfx_manager.h" +#include "entity/player/player.h" +#include "entity/player/trinkets.h" +#include "game/game.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/pickup/pickup.h" +#include "entity/player/characters.h" +#include "entity/pickup/item_overlay.h" +#include "game/manager.h" +#include "level/room_grid.h" +#include "engine/seeds.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/entity_player_hits.cpp b/src/entity/player/hits.cpp similarity index 97% rename from src/entity_player_hits.cpp rename to src/entity/player/hits.cpp index f55d390..d44235d 100644 --- a/src/entity_player_hits.cpp +++ b/src/entity/player/hits.cpp @@ -1,25 +1,25 @@ -#include "entity_player_trinkets.h" -#include "active_items.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_player_characters.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_poop.h" -#include "item_overlay.h" -#include "log.h" -#include "loot_list.h" -#include "manager.h" -#include "npc_ai.h" -#include "pocket_items.h" -#include "room.h" -#include "room_grid.h" -#include "room_special.h" -#include "sfx_manager.h" +#include "entity/player/trinkets.h" +#include "entity/player/active_items.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/player/characters.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/poop.h" +#include "entity/pickup/item_overlay.h" +#include "engine/log.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_special.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/entity_player_hold.cpp b/src/entity/player/hold.cpp similarity index 98% rename from src/entity_player_hold.cpp rename to src/entity/player/hold.cpp index a960a95..fa244e1 100644 --- a/src/entity_player_hold.cpp +++ b/src/entity/player/hold.cpp @@ -1,13 +1,13 @@ -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "grid_entity_poop.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "level/grid/poop.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" #include #include diff --git a/src/player_hud.cpp b/src/entity/player/hud.cpp similarity index 99% rename from src/player_hud.cpp rename to src/entity/player/hud.cpp index 71f00e7..3a6514c 100644 --- a/src/player_hud.cpp +++ b/src/entity/player/hud.cpp @@ -1,19 +1,19 @@ -#include "player_hud.h" -#include "active_items.h" -#include "entity_config.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "hud.h" -#include "item_config.h" -#include "item_pool.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "menu_special_seeds.h" -#include "render_passes.h" -#include "seeds.h" -#include "data.h" +#include "entity/player/hud.h" +#include "entity/player/active_items.h" +#include "entity/config.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "ui/hud.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_pool.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "ui/menu/special_seeds.h" +#include "engine/render_passes.h" +#include "engine/seeds.h" +#include "engine/data.h" #include "stb_image.h" #include #include diff --git a/src/player_hud.h b/src/entity/player/hud.h similarity index 98% rename from src/player_hud.h rename to src/entity/player/hud.h index 9818227..532dc49 100644 --- a/src/player_hud.h +++ b/src/entity/player/hud.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/entity_player_items.cpp b/src/entity/player/items.cpp similarity index 99% rename from src/entity_player_items.cpp rename to src/entity/player/items.cpp index e1d782b..4574aec 100644 --- a/src/entity_player_items.cpp +++ b/src/entity/player/items.cpp @@ -1,20 +1,20 @@ -#include "entity_player.h" -#include "entity_player_trinkets.h" -#include "active_items.h" -#include "entity_familiar.h" -#include "entity_player_characters.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "stage_transition.h" -#include "entity_player_passives.h" -#include "game.h" -#include "item_pool.h" -#include "lua_engine.h" -#include "room.h" -#include "room_grid.h" -#include "log.h" -#include "manager.h" -#include "platform.h" +#include "entity/player/player.h" +#include "entity/player/trinkets.h" +#include "entity/player/active_items.h" +#include "entity/familiar/familiar.h" +#include "entity/player/characters.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "level/stage_transition.h" +#include "entity/player/passives.h" +#include "game/game.h" +#include "entity/pickup/item_pool.h" +#include "lua/engine.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/entity_player_kills.cpp b/src/entity/player/kills.cpp similarity index 97% rename from src/entity_player_kills.cpp rename to src/entity/player/kills.cpp index fcba2e2..7328fb8 100644 --- a/src/entity_player_kills.cpp +++ b/src/entity/player/kills.cpp @@ -1,13 +1,13 @@ -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "item_config.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include diff --git a/src/player_manager.cpp b/src/entity/player/manager.cpp similarity index 98% rename from src/player_manager.cpp rename to src/entity/player/manager.cpp index 5cb95e6..7b0ddd4 100644 --- a/src/player_manager.cpp +++ b/src/entity/player/manager.cpp @@ -1,26 +1,26 @@ -#include "player_manager.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "familiar_variants.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "boss_ai.h" -#include "game.h" -#include "game_state_player.h" -#include "hud.h" -#include "item_config.h" -#include "kage_input.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "persistent_game_data.h" -#include "platform.h" -#include "popups.h" -#include "preload_manager.h" -#include "room.h" -#include "room_grid.h" -#include "seeds.h" -#include "texture_cache.h" +#include "entity/player/manager.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/familiar/variants.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/boss/ai.h" +#include "game/game.h" +#include "game/state_player.h" +#include "ui/hud.h" +#include "entity/pickup/item_config.h" +#include "engine/kage_input.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/persistent_game_data.h" +#include "engine/platform.h" +#include "ui/popups.h" +#include "game/preload_manager.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "engine/seeds.h" +#include "engine/texture_cache.h" #include #include diff --git a/src/player_manager.h b/src/entity/player/manager.h similarity index 99% rename from src/player_manager.h rename to src/entity/player/manager.h index ac35fd2..95b0531 100644 --- a/src/player_manager.h +++ b/src/entity/player/manager.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "seeds.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/entity_player_mist.cpp b/src/entity/player/mist.cpp similarity index 97% rename from src/entity_player_mist.cpp rename to src/entity/player/mist.cpp index 440a601..abebeb7 100644 --- a/src/entity_player_mist.cpp +++ b/src/entity/player/mist.cpp @@ -1,8 +1,8 @@ -#include "entity_player.h" -#include "boss_ai.h" -#include "entity_familiar.h" -#include "game.h" -#include "player_manager.h" +#include "entity/player/player.h" +#include "entity/boss/ai.h" +#include "entity/familiar/familiar.h" +#include "game/game.h" +#include "entity/player/manager.h" #include #include diff --git a/src/entity_player_passives.cpp b/src/entity/player/passives.cpp similarity index 98% rename from src/entity_player_passives.cpp rename to src/entity/player/passives.cpp index 19d1b00..7d786ce 100644 --- a/src/entity_player_passives.cpp +++ b/src/entity/player/passives.cpp @@ -1,25 +1,25 @@ -#include "entity_player_passives.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_player_trinkets.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_rock.h" -#include "item_overlay.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "room_special.h" -#include "temporary_effects.h" -#include "weapon.h" +#include "entity/player/passives.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/player/trinkets.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/rock.h" +#include "entity/pickup/item_overlay.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_special.h" +#include "entity/player/temporary_effects.h" +#include "entity/weapon/weapon.h" #include // Cracked Orb reveals a room with its box and icon, and its flash on a wisp sits above it. diff --git a/src/entity_player_passives.h b/src/entity/player/passives.h similarity index 100% rename from src/entity_player_passives.h rename to src/entity/player/passives.h diff --git a/src/entity_player_pills.cpp b/src/entity/player/pills.cpp similarity index 98% rename from src/entity_player_pills.cpp rename to src/entity/player/pills.cpp index 2981b48..becf214 100644 --- a/src/entity_player_pills.cpp +++ b/src/entity/player/pills.cpp @@ -1,21 +1,21 @@ -#include "entity_player.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity.h" -#include "hud.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "pocket_items.h" -#include "room.h" -#include "room_grid.h" -#include "room_special.h" +#include "entity/player/player.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "ui/hud.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_special.h" #include #include #include diff --git a/src/entity_player_pitfall.cpp b/src/entity/player/pitfall.cpp similarity index 94% rename from src/entity_player_pitfall.cpp rename to src/entity/player/pitfall.cpp index c0529cf..2e28d25 100644 --- a/src/entity_player_pitfall.cpp +++ b/src/entity/player/pitfall.cpp @@ -1,11 +1,11 @@ -#include "active_items.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "menu_manager.h" -#include "room.h" -#include "room_grid.h" +#include "entity/player/active_items.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "ui/menu/manager.h" +#include "level/room.h" +#include "level/room_grid.h" // A fall costs half a heart, and the player climbs out after 40 frames once it moves, or on its own after 120, safe // from harm for 120 frames. diff --git a/src/entity_player.cpp b/src/entity/player/player.cpp similarity index 99% rename from src/entity_player.cpp rename to src/entity/player/player.cpp index e99b3e9..ab9a47a 100644 --- a/src/entity_player.cpp +++ b/src/entity/player/player.cpp @@ -1,25 +1,25 @@ -#include "entity_player.h" -#include "entity_pickup.h" -#include "entity_player_characters.h" -#include "data.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_slot.h" -#include "active_items.h" -#include "hud.h" -#include "pocket_items.h" -#include "seeds.h" -#include "sfx_manager.h" -#include "game.h" -#include "game_state_player.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "platform.h" -#include "room.h" -#include "room_grid.h" +#include "entity/player/player.h" +#include "entity/pickup/pickup.h" +#include "entity/player/characters.h" +#include "engine/data.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/slot.h" +#include "entity/player/active_items.h" +#include "ui/hud.h" +#include "entity/player/pocket_items.h" +#include "engine/seeds.h" +#include "game/sfx_manager.h" +#include "game/game.h" +#include "game/state_player.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_player.h b/src/entity/player/player.h similarity index 99% rename from src/entity_player.h rename to src/entity/player/player.h index 2aa5802..5c2f015 100644 --- a/src/entity_player.h +++ b/src/entity/player/player.h @@ -1,12 +1,12 @@ #pragma once -#include "active_items.h" -#include "entity.h" -#include "item_config.h" -#include "kage_graphics.h" -#include "online_emotes.h" -#include "temporary_effects.h" -#include "weapon.h" +#include "entity/player/active_items.h" +#include "entity/entity.h" +#include "entity/pickup/item_config.h" +#include "engine/kage_graphics.h" +#include "online/emotes.h" +#include "entity/player/temporary_effects.h" +#include "entity/weapon/weapon.h" #include #include #include diff --git a/src/pocket_items.h b/src/entity/player/pocket_items.h similarity index 100% rename from src/pocket_items.h rename to src/entity/player/pocket_items.h diff --git a/src/entity_player_pockets.cpp b/src/entity/player/pockets.cpp similarity index 97% rename from src/entity_player_pockets.cpp rename to src/entity/player/pockets.cpp index 8c7c9bd..0bd8753 100644 --- a/src/entity_player_pockets.cpp +++ b/src/entity/player/pockets.cpp @@ -1,22 +1,22 @@ -#include "entity_player.h" -#include "entity_player_characters.h" -#include "active_items.h" -#include "entity_config.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "game.h" -#include "hud.h" -#include "key_configs.h" -#include "log.h" -#include "lua_callbacks.h" -#include "lua_engine.h" -#include "menu_manager.h" -#include "manager.h" -#include "room.h" -#include "pocket_items.h" -#include "menu_special_seeds.h" -#include "player_stats.h" -#include "room_grid.h" +#include "entity/player/player.h" +#include "entity/player/characters.h" +#include "entity/player/active_items.h" +#include "entity/config.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "game/game.h" +#include "ui/hud.h" +#include "game/key_configs.h" +#include "engine/log.h" +#include "lua/callbacks.h" +#include "lua/engine.h" +#include "ui/menu/manager.h" +#include "game/manager.h" +#include "level/room.h" +#include "entity/player/pocket_items.h" +#include "ui/menu/special_seeds.h" +#include "entity/player/stats.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_player_poop_spells.cpp b/src/entity/player/poop_spells.cpp similarity index 96% rename from src/entity_player_poop_spells.cpp rename to src/entity/player/poop_spells.cpp index 7dda747..4918e68 100644 --- a/src/entity_player_poop_spells.cpp +++ b/src/entity/player/poop_spells.cpp @@ -1,16 +1,16 @@ -#include "entity_player_characters.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "game.h" -#include "hud.h" -#include "loot_list.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "player_hud.h" +#include "entity/player/characters.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "game/game.h" +#include "ui/hud.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/player/hud.h" #include #include diff --git a/src/entity_player_reroll.cpp b/src/entity/player/reroll.cpp similarity index 98% rename from src/entity_player_reroll.cpp rename to src/entity/player/reroll.cpp index 66e3acc..60202ca 100644 --- a/src/entity_player_reroll.cpp +++ b/src/entity/player/reroll.cpp @@ -1,10 +1,10 @@ -#include "entity_player_characters.h" -#include "challenge_params.h" -#include "game.h" -#include "hud.h" -#include "item_pool.h" -#include "manager.h" -#include "player_manager.h" +#include "entity/player/characters.h" +#include "game/challenge_params.h" +#include "game/game.h" +#include "ui/hud.h" +#include "entity/pickup/item_pool.h" +#include "game/manager.h" +#include "entity/player/manager.h" #include #include #include diff --git a/src/entity_player_room.cpp b/src/entity/player/room.cpp similarity index 98% rename from src/entity_player_room.cpp rename to src/entity/player/room.cpp index b5f23ce..a840fdc 100644 --- a/src/entity_player_room.cpp +++ b/src/entity/player/room.cpp @@ -1,16 +1,16 @@ -#include "entity_player.h" -#include "entity_player_passives.h" -#include "boss_ai.h" -#include "entity_familiar.h" -#include "grid_entity_poop.h" -#include "grid_entity_rock.h" -#include "room_grid.h" -#include "game.h" -#include "grid_entity_door.h" -#include "log.h" -#include "manager.h" -#include "npc_basement.h" -#include "room.h" +#include "entity/player/player.h" +#include "entity/player/passives.h" +#include "entity/boss/ai.h" +#include "entity/familiar/familiar.h" +#include "level/grid/poop.h" +#include "level/grid/rock.h" +#include "level/room_grid.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/basement.h" +#include "level/room.h" #include constexpr int COLLECTIBLE_BROKEN_WATCH = 337; diff --git a/src/player_stats.cpp b/src/entity/player/stats.cpp similarity index 91% rename from src/player_stats.cpp rename to src/entity/player/stats.cpp index c216801..1e1674c 100644 --- a/src/player_stats.cpp +++ b/src/entity/player/stats.cpp @@ -1,8 +1,8 @@ -#include "player_stats.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" +#include "entity/player/stats.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" #include // The record of a user, or none. diff --git a/src/player_stats.h b/src/entity/player/stats.h similarity index 100% rename from src/player_stats.h rename to src/entity/player/stats.h diff --git a/src/entity_player_tainted.cpp b/src/entity/player/tainted.cpp similarity index 96% rename from src/entity_player_tainted.cpp rename to src/entity/player/tainted.cpp index 9319796..ef14fe3 100644 --- a/src/entity_player_tainted.cpp +++ b/src/entity/player/tainted.cpp @@ -1,11 +1,11 @@ -#include "entity_player_tainted.h" -#include "game.h" -#include "grid_entity_door.h" -#include "hud.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/player/tainted.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "ui/hud.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include constexpr int INVENTORY_SLOTS = 8; diff --git a/src/entity_player_tainted.h b/src/entity/player/tainted.h similarity index 85% rename from src/entity_player_tainted.h rename to src/entity/player/tainted.h index be42610..6ff71fc 100644 --- a/src/entity_player_tainted.h +++ b/src/entity/player/tainted.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_pickup.h" -#include "entity_player.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" // Tainted Isaac's inventory: the pedestal swap of a full inventory (006e8ae0), and the passives a new Tainted Isaac // keeps (007cf610) with the inventory rebuilt from the history (00721eb0). diff --git a/src/tainted_characters.cpp b/src/entity/player/tainted_characters.cpp similarity index 97% rename from src/tainted_characters.cpp rename to src/entity/player/tainted_characters.cpp index 3ac6c5b..f80fb3b 100644 --- a/src/tainted_characters.cpp +++ b/src/entity/player/tainted_characters.cpp @@ -1,22 +1,22 @@ -#include "tainted_characters.h" -#include "boss_ai.h" -#include "entity_slot.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "npc_caves.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "hud.h" -#include "item_pool.h" -#include "log.h" -#include "loot_list.h" -#include "manager.h" -#include "npc_ai.h" -#include "player_manager.h" -#include "room.h" -#include "sfx_manager.h" +#include "entity/player/tainted_characters.h" +#include "entity/boss/ai.h" +#include "entity/pickup/slot.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/npc/caves.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "ui/hud.h" +#include "entity/pickup/item_pool.h" +#include "engine/log.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/player/manager.h" +#include "level/room.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/tainted_characters.h b/src/entity/player/tainted_characters.h similarity index 91% rename from src/tainted_characters.h rename to src/entity/player/tainted_characters.h index fde0045..717bdc3 100644 --- a/src/tainted_characters.h +++ b/src/entity/player/tainted_characters.h @@ -1,7 +1,7 @@ #pragma once -#include "active_items.h" -#include "entity_effect.h" +#include "entity/player/active_items.h" +#include "entity/effect/effect.h" struct Entity_NPC; diff --git a/src/entity_player_tears.cpp b/src/entity/player/tears.cpp similarity index 99% rename from src/entity_player_tears.cpp rename to src/entity/player/tears.cpp index d38d807..e7425ba 100644 --- a/src/entity_player_tears.cpp +++ b/src/entity/player/tears.cpp @@ -1,11 +1,11 @@ -#include "entity_familiar.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room_render.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room_render.h" #include #include #include diff --git a/src/temporary_effects.cpp b/src/entity/player/temporary_effects.cpp similarity index 97% rename from src/temporary_effects.cpp rename to src/entity/player/temporary_effects.cpp index 2e8983c..4149324 100644 --- a/src/temporary_effects.cpp +++ b/src/entity/player/temporary_effects.cpp @@ -1,9 +1,9 @@ -#include "temporary_effects.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "room.h" -#include "manager.h" +#include "entity/player/temporary_effects.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "level/room.h" +#include "game/manager.h" #include constexpr int BOOK_OF_SHADOWS_SOUND_END = 1027; diff --git a/src/temporary_effects.h b/src/entity/player/temporary_effects.h similarity index 100% rename from src/temporary_effects.h rename to src/entity/player/temporary_effects.h diff --git a/src/entity_player_trinkets.cpp b/src/entity/player/trinkets.cpp similarity index 98% rename from src/entity_player_trinkets.cpp rename to src/entity/player/trinkets.cpp index 9c863d0..6368717 100644 --- a/src/entity_player_trinkets.cpp +++ b/src/entity/player/trinkets.cpp @@ -1,27 +1,27 @@ -#include "entity_player_trinkets.h" -#include "active_items.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_poop.h" -#include "hud.h" -#include "item_config.h" -#include "item_pickup.h" -#include "item_pool.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_config.h" -#include "room_grid.h" -#include "room_transition.h" -#include "sfx_manager.h" +#include "entity/player/trinkets.h" +#include "entity/player/active_items.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/poop.h" +#include "ui/hud.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_pickup.h" +#include "entity/pickup/item_pool.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_grid.h" +#include "level/room_transition.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_player_trinkets.h b/src/entity/player/trinkets.h similarity index 98% rename from src/entity_player_trinkets.h rename to src/entity/player/trinkets.h index 6ff1200..5805320 100644 --- a/src/entity_player_trinkets.h +++ b/src/entity/player/trinkets.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "entity.h" +#include "entity/entity.h" struct Entity_Pickup; struct Entity_Player; diff --git a/src/entity_player_update.cpp b/src/entity/player/update.cpp similarity index 98% rename from src/entity_player_update.cpp rename to src/entity/player/update.cpp index da9363b..a9b7c34 100644 --- a/src/entity_player_update.cpp +++ b/src/entity/player/update.cpp @@ -1,40 +1,40 @@ -#include "entity_player.h" -#include "entity_player_characters.h" -#include "entity_player_effects.h" -#include "entity_player_passives.h" -#include "entity_player_trinkets.h" -#include "tainted_characters.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity_poop.h" -#include "music_manager.h" -#include "seeds.h" -#include "kage_input.h" -#include "key_configs.h" -#include "log.h" -#include "lua_engine.h" -#include "player_hud.h" -#include "player_manager.h" -#include "platform.h" -#include "game_state_player.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "npc_depths.h" -#include "entity_combat.h" -#include "active_items.h" -#include "room.h" -#include "room_grid.h" -#include "entity_pickup.h" -#include "entity_laser.h" -#include "entity_projectile.h" -#include "sfx_manager.h" -#include "temporary_effects.h" -#include "weapon_lasers.h" +#include "entity/player/player.h" +#include "entity/player/characters.h" +#include "entity/player/effects.h" +#include "entity/player/passives.h" +#include "entity/player/trinkets.h" +#include "entity/player/tainted_characters.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/poop.h" +#include "game/music_manager.h" +#include "engine/seeds.h" +#include "engine/kage_input.h" +#include "game/key_configs.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "entity/player/hud.h" +#include "entity/player/manager.h" +#include "engine/platform.h" +#include "game/state_player.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/npc/depths.h" +#include "entity/combat.h" +#include "entity/player/active_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "entity/pickup/pickup.h" +#include "entity/weapon/laser.h" +#include "entity/weapon/projectile.h" +#include "game/sfx_manager.h" +#include "entity/player/temporary_effects.h" +#include "entity/weapon/lasers.h" #include #include diff --git a/src/entity_player_weapons.cpp b/src/entity/player/weapons.cpp similarity index 98% rename from src/entity_player_weapons.cpp rename to src/entity/player/weapons.cpp index fd89dec..8bda152 100644 --- a/src/entity_player_weapons.cpp +++ b/src/entity/player/weapons.cpp @@ -1,18 +1,18 @@ -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "seeds.h" -#include "weapon_knives.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "boss_ai.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_manager.h" -#include "room.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "engine/seeds.h" +#include "entity/weapon/knives.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/boss/ai.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "level/room.h" #include #include diff --git a/src/entity_rock_drop.cpp b/src/entity/rock_drop.cpp similarity index 95% rename from src/entity_rock_drop.cpp rename to src/entity/rock_drop.cpp index 132a036..9cd67d4 100644 --- a/src/entity_rock_drop.cpp +++ b/src/entity/rock_drop.cpp @@ -1,10 +1,10 @@ -#include "entity_bomb.h" -#include "entity_effect.h" -#include "game.h" -#include "grid_entity_poop.h" -#include "grid_entity_rock.h" -#include "grid_entity_tnt.h" -#include "npc_ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "level/grid/poop.h" +#include "level/grid/rock.h" +#include "level/grid/tnt.h" +#include "entity/npc/ai.h" #include // What a thrown grid entity leaves when it lands: a bomb rock's or barrel's blast of 60, a rock's four bits of rubble diff --git a/src/entity_save_state.h b/src/entity/save_state.h similarity index 100% rename from src/entity_save_state.h rename to src/entity/save_state.h diff --git a/src/entity_status.cpp b/src/entity/status.cpp similarity index 98% rename from src/entity_status.cpp rename to src/entity/status.cpp index 34e5108..ba1168b 100644 --- a/src/entity_status.cpp +++ b/src/entity/status.cpp @@ -1,15 +1,15 @@ -#include "entity.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" +#include "entity/entity.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" #include #include diff --git a/src/entity_text.cpp b/src/entity/text.cpp similarity index 97% rename from src/entity_text.cpp rename to src/entity/text.cpp index 75bd8a3..2f1ec9b 100644 --- a/src/entity_text.cpp +++ b/src/entity/text.cpp @@ -1,7 +1,7 @@ -#include "entity_text.h" -#include "fx_layers.h" -#include "game.h" -#include "manager.h" +#include "entity/text.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "game/manager.h" #include #include diff --git a/src/entity_text.h b/src/entity/text.h similarity index 96% rename from src/entity_text.h rename to src/entity/text.h index b9ce71a..f9773f2 100644 --- a/src/entity_text.h +++ b/src/entity/text.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" #include diff --git a/src/entity_water.cpp b/src/entity/water.cpp similarity index 95% rename from src/entity_water.cpp rename to src/entity/water.cpp index c840aca..d1cc4b5 100644 --- a/src/entity_water.cpp +++ b/src/entity/water.cpp @@ -1,11 +1,11 @@ -#include "entity.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity.h" -#include "manager.h" -#include "room.h" +#include "entity/entity.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "game/manager.h" +#include "level/room.h" #include #include diff --git a/src/entity_bomb.cpp b/src/entity/weapon/bomb.cpp similarity index 98% rename from src/entity_bomb.cpp rename to src/entity/weapon/bomb.cpp index 7752d47..04464ef 100644 --- a/src/entity_bomb.cpp +++ b/src/entity/weapon/bomb.cpp @@ -1,26 +1,26 @@ -#include "entity_bomb.h" -#include "data.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity_rock.h" -#include "item_config.h" -#include "log.h" -#include "lua_callbacks.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "entity_npc.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/weapon/bomb.h" +#include "engine/data.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/rock.h" +#include "entity/pickup/item_config.h" +#include "engine/log.h" +#include "lua/callbacks.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "entity/npc/npc.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_bomb.h b/src/entity/weapon/bomb.h similarity index 97% rename from src/entity_bomb.h rename to src/entity/weapon/bomb.h index dde1b8a..81df69e 100644 --- a/src/entity_bomb.h +++ b/src/entity/weapon/bomb.h @@ -1,8 +1,8 @@ #pragma once -#include "entity.h" -#include "anm2.h" -#include "entity_tear.h" +#include "entity/entity.h" +#include "engine/anm2.h" +#include "entity/weapon/tear.h" #include #include diff --git a/src/bomb_explosion.cpp b/src/entity/weapon/bomb_explosion.cpp similarity index 98% rename from src/bomb_explosion.cpp rename to src/entity/weapon/bomb_explosion.cpp index 2b75603..409ff64 100644 --- a/src/bomb_explosion.cpp +++ b/src/entity/weapon/bomb_explosion.cpp @@ -1,27 +1,27 @@ -#include "entity_bomb.h" -#include "boss_ai.h" -#include "deathmatch_manager.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_save_state.h" -#include "entity_tear.h" -#include "fx_layers.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_lock.h" -#include "log.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "npc_fireplace.h" -#include "room.h" -#include "room_descriptor.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/weapon/bomb.h" +#include "entity/boss/ai.h" +#include "game/deathmatch_manager.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/save_state.h" +#include "entity/weapon/tear.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/lock.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/npc/fireplace.h" +#include "level/room.h" +#include "level/room_descriptor.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/weapon_bombs.cpp b/src/entity/weapon/bombs.cpp similarity index 95% rename from src/weapon_bombs.cpp rename to src/entity/weapon/bombs.cpp index 7e17107..db644f5 100644 --- a/src/weapon_bombs.cpp +++ b/src/entity/weapon/bombs.cpp @@ -1,11 +1,11 @@ -#include "weapon_bombs.h" -#include "entity_bomb.h" -#include "entity_player.h" -#include "boss_ai.h" -#include "game.h" -#include "manager.h" -#include "npc_ai.h" -#include "sfx_manager.h" +#include "entity/weapon/bombs.h" +#include "entity/weapon/bomb.h" +#include "entity/player/player.h" +#include "entity/boss/ai.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "game/sfx_manager.h" #include // Dr. Fetus' throw: its speed, the slowest a bomb leaves at, Ludovico's push, and the blink. diff --git a/src/weapon_bombs.h b/src/entity/weapon/bombs.h similarity index 95% rename from src/weapon_bombs.h rename to src/entity/weapon/bombs.h index c488bb0..18aee26 100644 --- a/src/weapon_bombs.h +++ b/src/entity/weapon/bombs.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" // Destruction (009f9880) is the default. // Dr. Fetus' weapon: each shot throws a bomb (with the volley's extra, backward, sideways and random ones), or under diff --git a/src/weapon_deathmatch.cpp b/src/entity/weapon/deathmatch.cpp similarity index 95% rename from src/weapon_deathmatch.cpp rename to src/entity/weapon/deathmatch.cpp index 326b482..9ed45dd 100644 --- a/src/weapon_deathmatch.cpp +++ b/src/entity/weapon/deathmatch.cpp @@ -1,9 +1,9 @@ -#include "weapon_deathmatch.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "npc_ai.h" +#include "entity/weapon/deathmatch.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "entity/npc/ai.h" #include #include diff --git a/src/weapon_deathmatch.h b/src/entity/weapon/deathmatch.h similarity index 93% rename from src/weapon_deathmatch.h rename to src/entity/weapon/deathmatch.h index d223b41..f587051 100644 --- a/src/weapon_deathmatch.h +++ b/src/entity/weapon/deathmatch.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" // Destruction (009f3260) is the base's. // The versus mode's bomb barf (in Monstro's Lung's costume): held, it charges over one fire delay (fixed at 20), and diff --git a/src/weapon_fetus.cpp b/src/entity/weapon/fetus.cpp similarity index 97% rename from src/weapon_fetus.cpp rename to src/entity/weapon/fetus.cpp index 062675c..6836271 100644 --- a/src/weapon_fetus.cpp +++ b/src/entity/weapon/fetus.cpp @@ -1,15 +1,15 @@ -#include "weapon_fetus.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_tear.h" -#include "game.h" -#include "item_config.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" +#include "entity/weapon/fetus.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" #include #include diff --git a/src/weapon_fetus.h b/src/entity/weapon/fetus.h similarity index 97% rename from src/weapon_fetus.h rename to src/entity/weapon/fetus.h index b20b3e1..10aaa54 100644 --- a/src/weapon_fetus.h +++ b/src/entity/weapon/fetus.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" // A fetus to fire (fire_fetus_tear's arguments): from a position at a velocity, the shooter, the FireTear flags and // the damage multiplier. diff --git a/src/homing_laser.cpp b/src/entity/weapon/homing_laser.cpp similarity index 99% rename from src/homing_laser.cpp rename to src/entity/weapon/homing_laser.cpp index c8c91fd..5cd3c50 100644 --- a/src/homing_laser.cpp +++ b/src/entity/weapon/homing_laser.cpp @@ -1,12 +1,12 @@ -#include "homing_laser.h" -#include "boss_ai.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "log.h" -#include "player_manager.h" +#include "entity/weapon/homing_laser.h" +#include "entity/boss/ai.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "engine/log.h" +#include "entity/player/manager.h" #include #include diff --git a/src/homing_laser.h b/src/entity/weapon/homing_laser.h similarity index 99% rename from src/homing_laser.h rename to src/entity/weapon/homing_laser.h index 70dc4d1..97bff89 100644 --- a/src/homing_laser.h +++ b/src/entity/weapon/homing_laser.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" #include // The samples a laser path takes along its curves, and the length one straight laser's are spaced for. diff --git a/src/entity_knife.cpp b/src/entity/weapon/knife.cpp similarity index 99% rename from src/entity_knife.cpp rename to src/entity/weapon/knife.cpp index 2e30963..65fb0d2 100644 --- a/src/entity_knife.cpp +++ b/src/entity/weapon/knife.cpp @@ -1,23 +1,23 @@ -#include "entity_knife.h" -#include "anm2.h" -#include "boss_ai.h" -#include "entity_combat.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "weapon.h" +#include "entity/weapon/knife.h" +#include "engine/anm2.h" +#include "entity/boss/ai.h" +#include "entity/combat.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "entity/weapon/weapon.h" #include #include #include diff --git a/src/entity_knife.h b/src/entity/weapon/knife.h similarity index 98% rename from src/entity_knife.h rename to src/entity/weapon/knife.h index 64d9843..0149892 100644 --- a/src/entity_knife.h +++ b/src/entity/weapon/knife.h @@ -1,7 +1,7 @@ #pragma once -#include "entity.h" -#include "homing_laser.h" +#include "entity/entity.h" +#include "entity/weapon/homing_laser.h" #include // The distances a knife has no use for yet: where it splits off its parent and where it shows up. diff --git a/src/entity_knife_hits.cpp b/src/entity/weapon/knife_hits.cpp similarity index 98% rename from src/entity_knife_hits.cpp rename to src/entity/weapon/knife_hits.cpp index 2d64791..df9ff2d 100644 --- a/src/entity_knife_hits.cpp +++ b/src/entity/weapon/knife_hits.cpp @@ -1,21 +1,21 @@ -#include "boss_ai.h" -#include "boss_final.h" -#include "capsule.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "log.h" -#include "manager.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "weapon.h" +#include "entity/boss/ai.h" +#include "entity/boss/final.h" +#include "engine/capsule.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "entity/weapon/weapon.h" #include #include diff --git a/src/weapon_knives.cpp b/src/entity/weapon/knives.cpp similarity index 99% rename from src/weapon_knives.cpp rename to src/entity/weapon/knives.cpp index 565af9f..94214fc 100644 --- a/src/weapon_knives.cpp +++ b/src/entity/weapon/knives.cpp @@ -1,20 +1,20 @@ -#include "weapon_knives.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "temporary_effects.h" -#include "weapon_fetus.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" +#include "entity/weapon/knives.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "entity/player/temporary_effects.h" +#include "entity/weapon/fetus.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" #include #include diff --git a/src/weapon_knives.h b/src/entity/weapon/knives.h similarity index 98% rename from src/weapon_knives.h rename to src/entity/weapon/knives.h index 1cbfdb7..20e9194 100644 --- a/src/weapon_knives.h +++ b/src/entity/weapon/knives.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_knife.h" -#include "weapon.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/weapon.h" #include constexpr int KNIFE_SLOT_COUNT = 4; diff --git a/src/entity_laser.cpp b/src/entity/weapon/laser.cpp similarity index 99% rename from src/entity_laser.cpp rename to src/entity/weapon/laser.cpp index 822ca07..ff3d1b4 100644 --- a/src/entity_laser.cpp +++ b/src/entity/weapon/laser.cpp @@ -1,22 +1,22 @@ -#include "entity_laser.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "fx_layers.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_config.h" -#include "room_render.h" -#include "sfx_manager.h" +#include "entity/weapon/laser.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_render.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/entity_laser.h b/src/entity/weapon/laser.h similarity index 99% rename from src/entity_laser.h rename to src/entity/weapon/laser.h index 5a2aa63..b2843ed 100644 --- a/src/entity_laser.h +++ b/src/entity/weapon/laser.h @@ -1,7 +1,7 @@ #pragma once -#include "entity.h" -#include "homing_laser.h" +#include "entity/entity.h" +#include "entity/weapon/homing_laser.h" #include #include #include diff --git a/src/entity_laser_hits.cpp b/src/entity/weapon/laser_hits.cpp similarity index 98% rename from src/entity_laser_hits.cpp rename to src/entity/weapon/laser_hits.cpp index 5bc8c5f..4e78afb 100644 --- a/src/entity_laser_hits.cpp +++ b/src/entity/weapon/laser_hits.cpp @@ -1,23 +1,23 @@ -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "weapon.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "entity/weapon/weapon.h" #include #include #include diff --git a/src/entity_laser_render.cpp b/src/entity/weapon/laser_render.cpp similarity index 98% rename from src/entity_laser_render.cpp rename to src/entity/weapon/laser_render.cpp index 548f9ab..89085fc 100644 --- a/src/entity_laser_render.cpp +++ b/src/entity/weapon/laser_render.cpp @@ -1,13 +1,13 @@ -#include "entity_laser.h" -#include "entity_tear.h" -#include "fx_layers.h" -#include "game.h" -#include "kage_graphics.h" -#include "log.h" -#include "lua_engine.h" -#include "npc_ai.h" -#include "render_passes.h" -#include "room.h" +#include "entity/weapon/laser.h" +#include "entity/weapon/tear.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/kage_graphics.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "entity/npc/ai.h" +#include "engine/render_passes.h" +#include "level/room.h" #include #include diff --git a/src/weapon_lasers.cpp b/src/entity/weapon/lasers.cpp similarity index 99% rename from src/weapon_lasers.cpp rename to src/entity/weapon/lasers.cpp index 02d7f7d..09a7cdf 100644 --- a/src/weapon_lasers.cpp +++ b/src/entity/weapon/lasers.cpp @@ -1,24 +1,24 @@ -#include "weapon_lasers.h" -#include "boss_ai.h" -#include "capsule.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "npc_fireplace.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "weapon_fetus.h" +#include "entity/weapon/lasers.h" +#include "entity/boss/ai.h" +#include "engine/capsule.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "entity/npc/fireplace.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "entity/weapon/fetus.h" #include constexpr float LASER_INHERIT_SCALE = 0.4f; diff --git a/src/weapon_lasers.h b/src/entity/weapon/lasers.h similarity index 99% rename from src/weapon_lasers.h rename to src/entity/weapon/lasers.h index 6e06af4..1eb943c 100644 --- a/src/weapon_lasers.h +++ b/src/entity/weapon/lasers.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" #include // A volley of lasers Weapon_Laser::fire_lasers fires: from a position along a direction, from an offset, at a diff --git a/src/weapon_lua.cpp b/src/entity/weapon/lua.cpp similarity index 96% rename from src/weapon_lua.cpp rename to src/entity/weapon/lua.cpp index 29c2aee..38b2f4f 100644 --- a/src/weapon_lua.cpp +++ b/src/entity/weapon/lua.cpp @@ -1,8 +1,8 @@ -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "lua_api.h" -#include "weapon.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "lua/api.h" +#include "entity/weapon/weapon.h" // Adds Lua's EntityLaser functions that fire and turn beams to the class begun last. The original registers no // RotateToAngle. diff --git a/src/weapon_ludovico.cpp b/src/entity/weapon/ludovico.cpp similarity index 97% rename from src/weapon_ludovico.cpp rename to src/entity/weapon/ludovico.cpp index 04ed149..2cf2c90 100644 --- a/src/weapon_ludovico.cpp +++ b/src/entity/weapon/ludovico.cpp @@ -1,10 +1,10 @@ -#include "weapon_ludovico.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/weapon/ludovico.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/weapon_ludovico.h b/src/entity/weapon/ludovico.h similarity index 96% rename from src/weapon_ludovico.h rename to src/entity/weapon/ludovico.h index 738b428..f67bfdb 100644 --- a/src/weapon_ludovico.h +++ b/src/entity/weapon/ludovico.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" // Destruction (009f9880) is the default. // The Ludovico Technique: one big tear that hovers in front of the owner and is steered by the shots, with the diff --git a/src/mines.cpp b/src/entity/weapon/mines.cpp similarity index 98% rename from src/mines.cpp rename to src/entity/weapon/mines.cpp index b037b66..d6a341d 100644 --- a/src/mines.cpp +++ b/src/entity/weapon/mines.cpp @@ -1,12 +1,12 @@ -#include "mines.h" -#include "entity_effect_combat.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "manager.h" -#include "npc_ai.h" -#include "rail_manager.h" -#include "room.h" +#include "entity/weapon/mines.h" +#include "entity/effect/combat.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/rail_manager.h" +#include "level/room.h" #include #include #include diff --git a/src/mines.h b/src/entity/weapon/mines.h similarity index 87% rename from src/mines.h rename to src/entity/weapon/mines.h index b6c7ff7..504243f 100644 --- a/src/mines.h +++ b/src/entity/weapon/mines.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_effect.h" -#include "entity_npc.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" #include // The minecart's variants: the one an enemy rides, and the entrance's that carries the players out of the room. diff --git a/src/weapon_monstros_lung.cpp b/src/entity/weapon/monstros_lung.cpp similarity index 97% rename from src/weapon_monstros_lung.cpp rename to src/entity/weapon/monstros_lung.cpp index 8d129fc..1385718 100644 --- a/src/weapon_monstros_lung.cpp +++ b/src/entity/weapon/monstros_lung.cpp @@ -1,13 +1,13 @@ -#include "weapon_monstros_lung.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "npc_ai.h" -#include "sfx_manager.h" +#include "entity/weapon/monstros_lung.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "entity/npc/ai.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/weapon_monstros_lung.h b/src/entity/weapon/monstros_lung.h similarity index 95% rename from src/weapon_monstros_lung.h rename to src/entity/weapon/monstros_lung.h index 12e6cb8..df6edbe 100644 --- a/src/weapon_monstros_lung.h +++ b/src/entity/weapon/monstros_lung.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" // Destruction (009f3260) is the base's. // Monstro's Lung's weapon: the shots charge the head over the fire delay (Chocolate Milk's two and a half), and a diff --git a/src/entity_projectile.cpp b/src/entity/weapon/projectile.cpp similarity index 99% rename from src/entity_projectile.cpp rename to src/entity/weapon/projectile.cpp index d1dd98c..38a35d3 100644 --- a/src/entity_projectile.cpp +++ b/src/entity/weapon/projectile.cpp @@ -1,25 +1,25 @@ -#include "entity_projectile.h" -#include "boss_ai.h" -#include "boss_repentance.h" -#include "entity_bomb.h" -#include "entity_combat.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity.h" -#include "lua_callbacks.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" +#include "entity/weapon/projectile.h" +#include "entity/boss/ai.h" +#include "entity/boss/repentance.h" +#include "entity/weapon/bomb.h" +#include "entity/combat.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "lua/callbacks.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/entity_projectile.h b/src/entity/weapon/projectile.h similarity index 99% rename from src/entity_projectile.h rename to src/entity/weapon/projectile.h index 667bbe7..dc46ba2 100644 --- a/src/entity_projectile.h +++ b/src/entity/weapon/projectile.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" // Lua's ProjectileVariant: the look of a shot, which also picks its splash. enum ProjectileVariant : int diff --git a/src/weapon_rockets.cpp b/src/entity/weapon/rockets.cpp similarity index 97% rename from src/weapon_rockets.cpp rename to src/entity/weapon/rockets.cpp index b1c2a64..7ffa9fd 100644 --- a/src/weapon_rockets.cpp +++ b/src/entity/weapon/rockets.cpp @@ -1,17 +1,17 @@ -#include "weapon_rockets.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "grid_entity.h" -#include "log.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "entity/weapon/rockets.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include // Epic Fetus' aim and blink, the targets' fuse (five frames a rocket plus twenty, doubled), a familiar's smaller diff --git a/src/weapon_rockets.h b/src/entity/weapon/rockets.h similarity index 96% rename from src/weapon_rockets.h rename to src/entity/weapon/rockets.h index 26a57ca..7c840c7 100644 --- a/src/weapon_rockets.h +++ b/src/entity/weapon/rockets.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" #include struct EffectBehaviour; diff --git a/src/weapon_spirit_sword.cpp b/src/entity/weapon/spirit_sword.cpp similarity index 96% rename from src/weapon_spirit_sword.cpp rename to src/entity/weapon/spirit_sword.cpp index 97be311..ad8881f 100644 --- a/src/weapon_spirit_sword.cpp +++ b/src/entity/weapon/spirit_sword.cpp @@ -1,16 +1,16 @@ -#include "weapon_spirit_sword.h" -#include "boss_ai.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "sfx_manager.h" +#include "entity/weapon/spirit_sword.h" +#include "entity/boss/ai.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/weapon_spirit_sword.h b/src/entity/weapon/spirit_sword.h similarity index 96% rename from src/weapon_spirit_sword.h rename to src/entity/weapon/spirit_sword.h index 150a605..a0000dd 100644 --- a/src/weapon_spirit_sword.h +++ b/src/entity/weapon/spirit_sword.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" // Destruction (009f9930) is the default. // The Spirit Sword's weapon (Technology's tech sword): a press swings a sword (one more per extra shot of the volley) diff --git a/src/entity_tear.cpp b/src/entity/weapon/tear.cpp similarity index 99% rename from src/entity_tear.cpp rename to src/entity/weapon/tear.cpp index 4ddf49c..ba3d35f 100644 --- a/src/entity_tear.cpp +++ b/src/entity/weapon/tear.cpp @@ -1,26 +1,26 @@ -#include "entity_tear.h" -#include "boss_ai.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_pickup.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity.h" -#include "persistent_game_data.h" -#include "grid_entity_poop.h" -#include "grid_entity_rock.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "pocket_items.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/weapon/tear.h" +#include "entity/boss/ai.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/pickup/pickup.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "game/persistent_game_data.h" +#include "level/grid/poop.h" +#include "level/grid/rock.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/player/pocket_items.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/entity_tear.h b/src/entity/weapon/tear.h similarity index 99% rename from src/entity_tear.h rename to src/entity/weapon/tear.h index de2789d..b0c1ae5 100644 --- a/src/entity_tear.h +++ b/src/entity/weapon/tear.h @@ -1,7 +1,7 @@ #pragma once -#include "entity.h" -#include "anm2.h" +#include "entity/entity.h" +#include "engine/anm2.h" #include #include #include diff --git a/src/entity_tear_death.cpp b/src/entity/weapon/tear_death.cpp similarity index 98% rename from src/entity_tear_death.cpp rename to src/entity/weapon/tear_death.cpp index 405c391..6a9455a 100644 --- a/src/entity_tear_death.cpp +++ b/src/entity/weapon/tear_death.cpp @@ -1,18 +1,18 @@ -#include "entity_tear.h" -#include "entity_bomb.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_effect.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_descriptor.h" -#include "sfx_manager.h" +#include "entity/weapon/tear.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/effect/effect.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_descriptor.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/entity_tear_flags.cpp b/src/entity/weapon/tear_flags.cpp similarity index 99% rename from src/entity_tear_flags.cpp rename to src/entity/weapon/tear_flags.cpp index a08d020..6b6c8fe 100644 --- a/src/entity_tear_flags.cpp +++ b/src/entity/weapon/tear_flags.cpp @@ -1,25 +1,25 @@ -#include "entity_tear.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_slot.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_lock.h" -#include "log.h" -#include "npc_ai.h" -#include "npc_caves.h" -#include "room.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "entity/weapon/tear.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/pickup/slot.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/lock.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "entity/npc/caves.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/weapon_umbilical_whip.cpp b/src/entity/weapon/umbilical_whip.cpp similarity index 91% rename from src/weapon_umbilical_whip.cpp rename to src/entity/weapon/umbilical_whip.cpp index 04e1a22..fbe945f 100644 --- a/src/weapon_umbilical_whip.cpp +++ b/src/entity/weapon/umbilical_whip.cpp @@ -1,12 +1,12 @@ -#include "weapon_umbilical_whip.h" -#include "boss_ai.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_player.h" -#include "game.h" -#include "manager.h" -#include "npc_ai.h" -#include "sfx_manager.h" +#include "entity/weapon/umbilical_whip.h" +#include "entity/boss/ai.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "game/sfx_manager.h" constexpr float WHIP_DELAYS = 2; constexpr int WHIP_BLINK_BASE = 7; diff --git a/src/weapon_umbilical_whip.h b/src/entity/weapon/umbilical_whip.h similarity index 96% rename from src/weapon_umbilical_whip.h rename to src/entity/weapon/umbilical_whip.h index 07f98f1..eb0a9e4 100644 --- a/src/weapon_umbilical_whip.h +++ b/src/entity/weapon/umbilical_whip.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" // Destruction (009f9880) is the default. // Tainted Lilith's weapon: a press cracks her umbilical whip (a Gello familiar) toward the aim, and letting go pulls it diff --git a/src/weapon_urn_of_souls.cpp b/src/entity/weapon/urn_of_souls.cpp similarity index 96% rename from src/weapon_urn_of_souls.cpp rename to src/entity/weapon/urn_of_souls.cpp index 2cbd90b..5f0efe3 100644 --- a/src/weapon_urn_of_souls.cpp +++ b/src/entity/weapon/urn_of_souls.cpp @@ -1,18 +1,18 @@ -#include "weapon_urn_of_souls.h" -#include "anm2.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "level.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "sfx_manager.h" +#include "entity/weapon/urn_of_souls.h" +#include "engine/anm2.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "level/level.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "game/sfx_manager.h" #include #include diff --git a/src/weapon_urn_of_souls.h b/src/entity/weapon/urn_of_souls.h similarity index 97% rename from src/weapon_urn_of_souls.h rename to src/entity/weapon/urn_of_souls.h index 03e18bc..413e321 100644 --- a/src/weapon_urn_of_souls.h +++ b/src/entity/weapon/urn_of_souls.h @@ -1,6 +1,6 @@ #pragma once -#include "weapon.h" +#include "entity/weapon/weapon.h" // Destruction (009f97e0) is the default. // The Urn of Souls' weapon: an urn held toward the aim that, opened while there are souls, breathes a stream of flames diff --git a/src/weapon.cpp b/src/entity/weapon/weapon.cpp similarity index 98% rename from src/weapon.cpp rename to src/entity/weapon/weapon.cpp index 196fe57..27d63d2 100644 --- a/src/weapon.cpp +++ b/src/entity/weapon/weapon.cpp @@ -1,32 +1,32 @@ -#include "weapon.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "item_config.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "netplay_manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room_grid.h" -#include "room_render.h" -#include "sfx_manager.h" -#include "weapon_bombs.h" -#include "weapon_deathmatch.h" -#include "weapon_fetus.h" -#include "weapon_knives.h" -#include "weapon_lasers.h" -#include "weapon_ludovico.h" -#include "weapon_monstros_lung.h" -#include "weapon_rockets.h" -#include "weapon_spirit_sword.h" -#include "weapon_umbilical_whip.h" -#include "weapon_urn_of_souls.h" +#include "entity/weapon/weapon.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "online/netplay_manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room_grid.h" +#include "level/room_render.h" +#include "game/sfx_manager.h" +#include "entity/weapon/bombs.h" +#include "entity/weapon/deathmatch.h" +#include "entity/weapon/fetus.h" +#include "entity/weapon/knives.h" +#include "entity/weapon/lasers.h" +#include "entity/weapon/ludovico.h" +#include "entity/weapon/monstros_lung.h" +#include "entity/weapon/rockets.h" +#include "entity/weapon/spirit_sword.h" +#include "entity/weapon/umbilical_whip.h" +#include "entity/weapon/urn_of_souls.h" #include #include diff --git a/src/weapon.h b/src/entity/weapon/weapon.h similarity index 99% rename from src/weapon.h rename to src/entity/weapon/weapon.h index 1367334..70aeee3 100644 --- a/src/weapon.h +++ b/src/entity/weapon/weapon.h @@ -1,6 +1,6 @@ #pragma once -#include "entity.h" +#include "entity/entity.h" #include struct CostumeSpriteDesc; diff --git a/src/challenge_params.cpp b/src/game/challenge_params.cpp similarity index 90% rename from src/challenge_params.cpp rename to src/game/challenge_params.cpp index 2f095d9..18846c2 100644 --- a/src/challenge_params.cpp +++ b/src/game/challenge_params.cpp @@ -1,4 +1,4 @@ -#include "challenge_params.h" +#include "game/challenge_params.h" // 00424440 Puts the rules back to a plain run, keeping the name and the achievement and twin lists. void ChallengeParam::Reset() diff --git a/src/challenge_params.h b/src/game/challenge_params.h similarity index 100% rename from src/challenge_params.h rename to src/game/challenge_params.h diff --git a/src/daily_challenge.cpp b/src/game/daily_challenge.cpp similarity index 98% rename from src/daily_challenge.cpp rename to src/game/daily_challenge.cpp index 65942bb..d2eb68b 100644 --- a/src/daily_challenge.cpp +++ b/src/game/daily_challenge.cpp @@ -1,12 +1,12 @@ -#include "daily_challenge.h" -#include "entity_player.h" -#include "game.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "platform.h" -#include "room.h" -#include "seeds.h" +#include "game/daily_challenge.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/platform.h" +#include "level/room.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/daily_challenge.h b/src/game/daily_challenge.h similarity index 98% rename from src/daily_challenge.h rename to src/game/daily_challenge.h index eebb163..d15506a 100644 --- a/src/daily_challenge.h +++ b/src/game/daily_challenge.h @@ -1,6 +1,6 @@ #pragma once -#include "challenge_params.h" +#include "game/challenge_params.h" #include #include diff --git a/src/deathmatch_manager.cpp b/src/game/deathmatch_manager.cpp similarity index 98% rename from src/deathmatch_manager.cpp rename to src/game/deathmatch_manager.cpp index f1f58ca..8e0065d 100644 --- a/src/deathmatch_manager.cpp +++ b/src/game/deathmatch_manager.cpp @@ -1,28 +1,28 @@ -#include "deathmatch_manager.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "game.h" -#include "game_state.h" -#include "grid_entity.h" -#include "item_config.h" -#include "item_pool.h" -#include "kage_graphics.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_manager.h" -#include "music_manager.h" -#include "platform.h" -#include "render_passes.h" -#include "room.h" -#include "room_grid.h" -#include "seeds.h" -#include "sfx_manager.h" -#include "weapon.h" +#include "game/deathmatch_manager.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "game/state.h" +#include "level/grid/grid_entity.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_pool.h" +#include "engine/kage_graphics.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/music_manager.h" +#include "engine/platform.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "engine/seeds.h" +#include "game/sfx_manager.h" +#include "entity/weapon/weapon.h" #include #include #include diff --git a/src/deathmatch_manager.h b/src/game/deathmatch_manager.h similarity index 100% rename from src/deathmatch_manager.h rename to src/game/deathmatch_manager.h diff --git a/src/debug_renderer.cpp b/src/game/debug_renderer.cpp similarity index 97% rename from src/debug_renderer.cpp rename to src/game/debug_renderer.cpp index 56a1885..7d44ffa 100644 --- a/src/debug_renderer.cpp +++ b/src/game/debug_renderer.cpp @@ -1,16 +1,16 @@ -#include "debug_renderer.h" -#include "entity.h" -#include "entity_player.h" -#include "font.h" -#include "fx_layers.h" -#include "game.h" -#include "item_pool.h" -#include "manager.h" -#include "menu_collection.h" -#include "minimap.h" -#include "render_passes.h" -#include "room.h" -#include "room_config.h" +#include "game/debug_renderer.h" +#include "entity/entity.h" +#include "entity/player/player.h" +#include "engine/font.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "entity/pickup/item_pool.h" +#include "game/manager.h" +#include "ui/menu/collection.h" +#include "level/minimap.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "level/room_config.h" #include #include diff --git a/src/debug_renderer.h b/src/game/debug_renderer.h similarity index 98% rename from src/debug_renderer.h rename to src/game/debug_renderer.h index 3d7f30f..cae21df 100644 --- a/src/debug_renderer.h +++ b/src/game/debug_renderer.h @@ -1,6 +1,6 @@ #pragma once -#include "capsule.h" +#include "engine/capsule.h" #include #include #include diff --git a/src/game_end.cpp b/src/game/end.cpp similarity index 98% rename from src/game_end.cpp rename to src/game/end.cpp index 8d01ff3..9f2aea0 100644 --- a/src/game_end.cpp +++ b/src/game/end.cpp @@ -1,16 +1,16 @@ -#include "game_end.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_manager.h" -#include "persistent_game_data.h" -#include "room_config.h" -#include "sfx_manager.h" -#include "stage_transition.h" +#include "game/end.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/persistent_game_data.h" +#include "level/room_config.h" +#include "game/sfx_manager.h" +#include "level/stage_transition.h" #include #include #include diff --git a/src/game_end.h b/src/game/end.h similarity index 100% rename from src/game_end.h rename to src/game/end.h diff --git a/src/game_exit.cpp b/src/game/exit.cpp similarity index 94% rename from src/game_exit.cpp rename to src/game/exit.cpp index 5492667..ab8f740 100644 --- a/src/game_exit.cpp +++ b/src/game/exit.cpp @@ -1,14 +1,14 @@ -#include "entity_list.h" -#include "entity_player.h" -#include "game.h" -#include "game_over.h" -#include "lua_engine.h" -#include "manager.h" -#include "platform.h" -#include "room.h" -#include "room_transition.h" -#include "stage_transition.h" -#include "texture_cache.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "game/over.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_transition.h" +#include "level/stage_transition.h" +#include "engine/texture_cache.h" constexpr int EXIT_STAGE_TRANSITION_DURATION = 50; diff --git a/src/game.cpp b/src/game/game.cpp similarity index 99% rename from src/game.cpp rename to src/game/game.cpp index e12f320..fe8056b 100644 --- a/src/game.cpp +++ b/src/game/game.cpp @@ -1,19 +1,19 @@ -#include "game.h" -#include "data.h" -#include "entity_factory.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "familiar_wisp.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "lua_engine.h" -#include "menu_manager.h" -#include "render_passes.h" -#include "room.h" -#include "room_render.h" -#include "room_transition.h" -#include "victory_run_prompt.h" +#include "game/game.h" +#include "engine/data.h" +#include "entity/factory.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/familiar/wisp.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "lua/engine.h" +#include "ui/menu/manager.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "level/room_render.h" +#include "level/room_transition.h" +#include "ui/victory_run_prompt.h" #include #include #include diff --git a/src/game.h b/src/game/game.h similarity index 92% rename from src/game.h rename to src/game/game.h index c4dd826..8bf6c2c 100644 --- a/src/game.h +++ b/src/game/game.h @@ -1,39 +1,39 @@ #pragma once -#include "item_overlay.h" +#include "entity/pickup/item_overlay.h" -#include "ambush.h" -#include "anm2.h" -#include "daily_challenge.h" -#include "boss_overlay.h" -#include "boss_pool.h" -#include "challenge_params.h" -#include "console.h" -#include "deathmatch_manager.h" -#include "debug_renderer.h" -#include "entity_factory.h" -#include "game_over.h" -#include "game_state.h" -#include "generic_prompt.h" -#include "hud.h" -#include "item_pool.h" -#include "kage_graphics.h" -#include "leaderboard.h" -#include "level.h" -#include "minimap.h" -#include "online_emotes.h" -#include "online_stats_screen.h" -#include "pause_screen.h" -#include "player_manager.h" -#include "player_stats.h" -#include "preload_manager.h" -#include "procedural_item_manager.h" -#include "revive_player_menu.h" -#include "room_config.h" -#include "room_transition.h" -#include "stage_transition.h" -#include "score_sheet.h" -#include "seeds.h" +#include "level/ambush.h" +#include "engine/anm2.h" +#include "game/daily_challenge.h" +#include "entity/boss/overlay.h" +#include "entity/boss/pool.h" +#include "game/challenge_params.h" +#include "ui/console.h" +#include "game/deathmatch_manager.h" +#include "game/debug_renderer.h" +#include "entity/factory.h" +#include "game/over.h" +#include "game/state.h" +#include "ui/generic_prompt.h" +#include "ui/hud.h" +#include "entity/pickup/item_pool.h" +#include "engine/kage_graphics.h" +#include "online/leaderboard.h" +#include "level/level.h" +#include "level/minimap.h" +#include "online/emotes.h" +#include "online/stats_screen.h" +#include "ui/pause_screen.h" +#include "entity/player/manager.h" +#include "entity/player/stats.h" +#include "game/preload_manager.h" +#include "entity/pickup/procedural_item_manager.h" +#include "ui/revive_player_menu.h" +#include "level/room_config.h" +#include "level/room_transition.h" +#include "level/stage_transition.h" +#include "ui/score_sheet.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/key_configs.cpp b/src/game/key_configs.cpp similarity index 99% rename from src/key_configs.cpp rename to src/game/key_configs.cpp index efbddaa..f1a4167 100644 --- a/src/key_configs.cpp +++ b/src/game/key_configs.cpp @@ -1,4 +1,4 @@ -#include "key_configs.h" +#include "game/key_configs.h" #include #include #include diff --git a/src/key_configs.h b/src/game/key_configs.h similarity index 96% rename from src/key_configs.h rename to src/game/key_configs.h index ecd9dc0..e883ba3 100644 --- a/src/key_configs.h +++ b/src/game/key_configs.h @@ -1,7 +1,7 @@ #pragma once -#include "kage_input.h" -#include "platform.h" +#include "engine/kage_input.h" +#include "engine/platform.h" #include #include #include diff --git a/src/main.cpp b/src/game/main.cpp similarity index 95% rename from src/main.cpp rename to src/game/main.cpp index 6c0d50d..bfeb5ec 100644 --- a/src/main.cpp +++ b/src/game/main.cpp @@ -1,10 +1,10 @@ #include "classes.h" -#include "data.h" -#include "gl.h" -#include "kage_sound.h" -#include "lua_engine.h" -#include "manager.h" -#include "platform.h" +#include "engine/data.h" +#include "engine/gl.h" +#include "engine/kage_sound.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/manager.cpp b/src/game/manager.cpp similarity index 99% rename from src/manager.cpp rename to src/game/manager.cpp index 39f6b76..2ccc213 100644 --- a/src/manager.cpp +++ b/src/game/manager.cpp @@ -1,16 +1,16 @@ -#include "manager.h" -#include "screenshot.h" -#include "backdrop.h" -#include "data.h" -#include "entity_player.h" -#include "game.h" -#include "lua_engine.h" -#include "menu_manager.h" -#include "render_passes.h" -#include "room.h" -#include "room_transition.h" -#include "kage_input.h" -#include "texture_cache.h" +#include "game/manager.h" +#include "engine/screenshot.h" +#include "level/backdrop.h" +#include "engine/data.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "lua/engine.h" +#include "ui/menu/manager.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "level/room_transition.h" +#include "engine/kage_input.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/manager.h b/src/game/manager.h similarity index 90% rename from src/manager.h rename to src/game/manager.h index e43a9d1..ab55b02 100644 --- a/src/manager.h +++ b/src/game/manager.h @@ -1,27 +1,27 @@ #pragma once -#include "anm2.h" -#include "daily_challenge.h" -#include "challenge_params.h" -#include "cutscene.h" -#include "entity_config.h" -#include "font.h" -#include "game_state.h" -#include "info_display.h" -#include "item_config.h" -#include "kage_graphics.h" -#include "key_configs.h" -#include "mod_manager.h" -#include "music_manager.h" -#include "netplay_manager.h" -#include "nightmare_scene.h" -#include "options_config.h" -#include "persistent_game_data.h" -#include "platform.h" -#include "popups.h" -#include "seeds.h" -#include "sfx_manager.h" -#include "string_table.h" +#include "engine/anm2.h" +#include "game/daily_challenge.h" +#include "game/challenge_params.h" +#include "ui/cutscene.h" +#include "entity/config.h" +#include "engine/font.h" +#include "game/state.h" +#include "ui/info_display.h" +#include "entity/pickup/item_config.h" +#include "engine/kage_graphics.h" +#include "game/key_configs.h" +#include "game/mod_manager.h" +#include "game/music_manager.h" +#include "online/netplay_manager.h" +#include "ui/nightmare_scene.h" +#include "game/options_config.h" +#include "game/persistent_game_data.h" +#include "engine/platform.h" +#include "ui/popups.h" +#include "engine/seeds.h" +#include "game/sfx_manager.h" +#include "game/string_table.h" #include #include #include diff --git a/src/manager_input.cpp b/src/game/manager_input.cpp similarity index 97% rename from src/manager_input.cpp rename to src/game/manager_input.cpp index 1ec42ed..5ffcf92 100644 --- a/src/manager_input.cpp +++ b/src/game/manager_input.cpp @@ -1,8 +1,8 @@ -#include "entity_player.h" -#include "game.h" -#include "manager.h" -#include "menu_manager.h" -#include "persistent_game_data.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/persistent_game_data.h" // The keyboard button that asks for the render surfaces to be remade. No key sends it on this platform. constexpr int KEY_RESIZE_REQUEST = 12; diff --git a/src/manager_restart.cpp b/src/game/manager_restart.cpp similarity index 95% rename from src/manager_restart.cpp rename to src/game/manager_restart.cpp index 90c29c0..eba5c19 100644 --- a/src/manager_restart.cpp +++ b/src/game/manager_restart.cpp @@ -1,5 +1,5 @@ -#include "game.h" -#include "manager.h" +#include "game/game.h" +#include "game/manager.h" // Where the back and confirm prompts slide out to while the new run loads. constexpr float BUTTONS_HIDDEN_SLIDE = 96; diff --git a/src/mod_manager.cpp b/src/game/mod_manager.cpp similarity index 99% rename from src/mod_manager.cpp rename to src/game/mod_manager.cpp index 05ef2f7..071326e 100644 --- a/src/mod_manager.cpp +++ b/src/game/mod_manager.cpp @@ -1,13 +1,13 @@ -#include "mod_manager.h" -#include "data.h" -#include "fx_layers.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_manager.h" -#include "pause_screen.h" -#include "platform.h" +#include "game/mod_manager.h" +#include "engine/data.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "ui/pause_screen.h" +#include "engine/platform.h" #include #include #include diff --git a/src/mod_manager.h b/src/game/mod_manager.h similarity index 98% rename from src/mod_manager.h rename to src/game/mod_manager.h index 3707c37..f151e5a 100644 --- a/src/mod_manager.h +++ b/src/game/mod_manager.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/music_manager.cpp b/src/game/music_manager.cpp similarity index 99% rename from src/music_manager.cpp rename to src/game/music_manager.cpp index 22c824b..3c19cd9 100644 --- a/src/music_manager.cpp +++ b/src/game/music_manager.cpp @@ -1,8 +1,8 @@ -#include "music_manager.h" -#include "data.h" -#include "game.h" -#include "manager.h" -#include "room.h" +#include "game/music_manager.h" +#include "engine/data.h" +#include "game/game.h" +#include "game/manager.h" +#include "level/room.h" #include #include #include diff --git a/src/music_manager.h b/src/game/music_manager.h similarity index 99% rename from src/music_manager.h rename to src/game/music_manager.h index dd2f7c1..50113c1 100644 --- a/src/music_manager.h +++ b/src/game/music_manager.h @@ -1,6 +1,6 @@ #pragma once -#include "sfx_manager.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/options_config.cpp b/src/game/options_config.cpp similarity index 99% rename from src/options_config.cpp rename to src/game/options_config.cpp index ca01699..632ff1f 100644 --- a/src/options_config.cpp +++ b/src/game/options_config.cpp @@ -1,8 +1,8 @@ #include "classes.h" -#include "data.h" -#include "log.h" -#include "manager.h" -#include "options_config.h" +#include "engine/data.h" +#include "engine/log.h" +#include "game/manager.h" +#include "game/options_config.h" #include #include #include diff --git a/src/options_config.h b/src/game/options_config.h similarity index 100% rename from src/options_config.h rename to src/game/options_config.h diff --git a/src/game_over.cpp b/src/game/over.cpp similarity index 98% rename from src/game_over.cpp rename to src/game/over.cpp index e352e8f..1f0d0b6 100644 --- a/src/game_over.cpp +++ b/src/game/over.cpp @@ -1,14 +1,14 @@ -#include "game_over.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "mod_manager.h" -#include "platform.h" -#include "render_passes.h" +#include "game/over.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "game/mod_manager.h" +#include "engine/platform.h" +#include "engine/render_passes.h" #include #include #include diff --git a/src/game_over.h b/src/game/over.h similarity index 94% rename from src/game_over.h rename to src/game/over.h index b48c688..da1cc22 100644 --- a/src/game_over.h +++ b/src/game/over.h @@ -1,9 +1,9 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include "classes.h" -#include "game_end.h" -#include "mod_manager.h" +#include "game/end.h" +#include "game/mod_manager.h" // The layers of the diary page (Death Screen.anm2), by id. enum DiaryLayer : int diff --git a/src/persistent_game_data.cpp b/src/game/persistent_game_data.cpp similarity index 99% rename from src/persistent_game_data.cpp rename to src/game/persistent_game_data.cpp index 5b662c0..8a7cb43 100644 --- a/src/persistent_game_data.cpp +++ b/src/game/persistent_game_data.cpp @@ -1,7 +1,7 @@ -#include "persistent_game_data.h" -#include "game.h" -#include "info_display.h" -#include "manager.h" +#include "game/persistent_game_data.h" +#include "game/game.h" +#include "ui/info_display.h" +#include "game/manager.h" #include #include #include diff --git a/src/persistent_game_data.h b/src/game/persistent_game_data.h similarity index 100% rename from src/persistent_game_data.h rename to src/game/persistent_game_data.h diff --git a/src/preload_manager.cpp b/src/game/preload_manager.cpp similarity index 94% rename from src/preload_manager.cpp rename to src/game/preload_manager.cpp index a38237e..1797b7b 100644 --- a/src/preload_manager.cpp +++ b/src/game/preload_manager.cpp @@ -1,8 +1,8 @@ -#include "preload_manager.h" -#include "data.h" -#include "manager.h" -#include "platform.h" -#include "texture_cache.h" +#include "game/preload_manager.h" +#include "engine/data.h" +#include "game/manager.h" +#include "engine/platform.h" +#include "engine/texture_cache.h" #include constexpr std::string_view ROOT_TAG = "preloads"; diff --git a/src/preload_manager.h b/src/game/preload_manager.h similarity index 96% rename from src/preload_manager.h rename to src/game/preload_manager.h index 5578bf1..adf5a25 100644 --- a/src/preload_manager.h +++ b/src/game/preload_manager.h @@ -1,6 +1,6 @@ #pragma once -#include "kage_graphics.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/game_restore.cpp b/src/game/restore.cpp similarity index 99% rename from src/game_restore.cpp rename to src/game/restore.cpp index b62b6f4..cb0aa7d 100644 --- a/src/game_restore.cpp +++ b/src/game/restore.cpp @@ -1,15 +1,15 @@ -#include "entity_familiar.h" -#include "entity_npc.h" -#include "game.h" -#include "game_state_player.h" -#include "log.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" -#include "texture_cache.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "game/game.h" +#include "game/state_player.h" +#include "engine/log.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/game_save.cpp b/src/game/save.cpp similarity index 98% rename from src/game_save.cpp rename to src/game/save.cpp index a336cc6..739b48f 100644 --- a/src/game_save.cpp +++ b/src/game/save.cpp @@ -1,12 +1,12 @@ -#include "game.h" -#include "entity_player.h" -#include "game_state_player.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "log.h" -#include "manager.h" -#include "platform.h" -#include "room.h" +#include "game/game.h" +#include "entity/player/player.h" +#include "game/state_player.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/platform.h" +#include "level/room.h" constexpr int CHARGER_MY_SHADOW = 1; constexpr int FAMILIAR_UMBILICAL_BABY = 240; diff --git a/src/sfx_manager.cpp b/src/game/sfx_manager.cpp similarity index 99% rename from src/sfx_manager.cpp rename to src/game/sfx_manager.cpp index 795b530..e13d12b 100644 --- a/src/sfx_manager.cpp +++ b/src/game/sfx_manager.cpp @@ -1,7 +1,7 @@ -#include "sfx_manager.h" -#include "data.h" -#include "music_manager.h" -#include "manager.h" +#include "game/sfx_manager.h" +#include "engine/data.h" +#include "game/music_manager.h" +#include "game/manager.h" #include #include #include diff --git a/src/sfx_manager.h b/src/game/sfx_manager.h similarity index 99% rename from src/sfx_manager.h rename to src/game/sfx_manager.h index 781042b..d2105f6 100644 --- a/src/sfx_manager.h +++ b/src/game/sfx_manager.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "kage_sound.h" +#include "engine/kage_sound.h" #include #include #include diff --git a/src/game_state.cpp b/src/game/state.cpp similarity index 99% rename from src/game_state.cpp rename to src/game/state.cpp index 1510caa..a52da4c 100644 --- a/src/game_state.cpp +++ b/src/game/state.cpp @@ -1,9 +1,9 @@ -#include "game_state.h" -#include "game.h" -#include "game_state_player.h" -#include "log.h" -#include "manager.h" -#include "platform.h" +#include "game/state.h" +#include "game/game.h" +#include "game/state_player.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/game_state.h b/src/game/state.h similarity index 96% rename from src/game_state.h rename to src/game/state.h index 0c3a37b..c06f3d6 100644 --- a/src/game_state.h +++ b/src/game/state.h @@ -1,13 +1,13 @@ #pragma once -#include "boss_pool.h" -#include "entity_save_state.h" -#include "item_pool.h" -#include "level.h" -#include "nightmare_scene.h" -#include "persistent_game_data.h" -#include "score_sheet.h" -#include "seeds.h" +#include "entity/boss/pool.h" +#include "entity/save_state.h" +#include "entity/pickup/item_pool.h" +#include "level/level.h" +#include "ui/nightmare_scene.h" +#include "game/persistent_game_data.h" +#include "ui/score_sheet.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/game_state_player.h b/src/game/state_player.h similarity index 98% rename from src/game_state_player.h rename to src/game/state_player.h index a276064..6bbe07d 100644 --- a/src/game_state_player.h +++ b/src/game/state_player.h @@ -1,8 +1,8 @@ #pragma once -#include "anm2.h" -#include "entity_player.h" -#include "entity_save_state.h" +#include "engine/anm2.h" +#include "entity/player/player.h" +#include "entity/save_state.h" #include #include #include diff --git a/src/string_table.cpp b/src/game/string_table.cpp similarity index 99% rename from src/string_table.cpp rename to src/game/string_table.cpp index 5ac805f..f07e1c9 100644 --- a/src/string_table.cpp +++ b/src/game/string_table.cpp @@ -1,5 +1,5 @@ -#include "string_table.h" -#include "data.h" +#include "game/string_table.h" +#include "engine/data.h" #include constexpr std::string_view INVALID_LANGUAGE = "StringTable::InvalidLanguage"; diff --git a/src/string_table.h b/src/game/string_table.h similarity index 100% rename from src/string_table.h rename to src/game/string_table.h diff --git a/src/game_transition.cpp b/src/game/transition.cpp similarity index 98% rename from src/game_transition.cpp rename to src/game/transition.cpp index d1e7471..94e0087 100644 --- a/src/game_transition.cpp +++ b/src/game/transition.cpp @@ -1,15 +1,15 @@ -#include "capsule.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "grid_entity_door.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "platform.h" -#include "room.h" -#include "room_grid.h" -#include "seeds.h" +#include "engine/capsule.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/game_update.cpp b/src/game/update.cpp similarity index 98% rename from src/game_update.cpp rename to src/game/update.cpp index 26ff9d2..2d70660 100644 --- a/src/game_update.cpp +++ b/src/game/update.cpp @@ -1,15 +1,15 @@ -#include "entity_player.h" -#include "boss_pool.h" -#include "game.h" -#include "grid_entity_door.h" -#include "level.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_manager.h" -#include "persistent_game_data.h" -#include "room.h" -#include "room_render.h" +#include "entity/player/player.h" +#include "entity/boss/pool.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/level.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/persistent_game_data.h" +#include "level/room.h" +#include "level/room_render.h" #include #include #include diff --git a/src/ambush.cpp b/src/level/ambush.cpp similarity index 96% rename from src/ambush.cpp rename to src/level/ambush.cpp index da92c1d..7acc531 100644 --- a/src/ambush.cpp +++ b/src/level/ambush.cpp @@ -1,22 +1,22 @@ -#include "ambush.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "npc_ai.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "log.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_alt.h" -#include "platform.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "room.h" -#include "room_clear.h" -#include "room_grid.h" -#include "sfx_manager.h" +#include "level/ambush.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/npc/ai.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "engine/log.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/alt.h" +#include "engine/platform.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "level/room.h" +#include "level/room_clear.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" #include #include #include diff --git a/src/ambush.h b/src/level/ambush.h similarity index 100% rename from src/ambush.h rename to src/level/ambush.h diff --git a/src/backdrop.cpp b/src/level/backdrop.cpp similarity index 99% rename from src/backdrop.cpp rename to src/level/backdrop.cpp index d510f47..71ff960 100644 --- a/src/backdrop.cpp +++ b/src/level/backdrop.cpp @@ -1,24 +1,24 @@ -#include "backdrop.h" -#include "boss_pool.h" -#include "data.h" -#include "entity.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "game.h" -#include "grid_entity.h" -#include "kage_input.h" -#include "key_configs.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "platform.h" -#include "render_passes.h" -#include "room.h" -#include "room_config.h" -#include "seeds.h" +#include "level/backdrop.h" +#include "entity/boss/pool.h" +#include "engine/data.h" +#include "entity/entity.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "engine/kage_input.h" +#include "game/key_configs.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "engine/platform.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "level/room_config.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/backdrop.h b/src/level/backdrop.h similarity index 99% rename from src/backdrop.h rename to src/level/backdrop.h index d3ef303..7fc40ae 100644 --- a/src/backdrop.h +++ b/src/level/backdrop.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/beast_arena.cpp b/src/level/beast_arena.cpp similarity index 98% rename from src/beast_arena.cpp rename to src/level/beast_arena.cpp index 840a22f..3d1beed 100644 --- a/src/beast_arena.cpp +++ b/src/level/beast_arena.cpp @@ -1,9 +1,9 @@ -#include "beast_arena.h" -#include "fx_layers.h" -#include "game.h" -#include "log.h" -#include "render_passes.h" -#include "room.h" +#include "level/beast_arena.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/log.h" +#include "engine/render_passes.h" +#include "level/room.h" #include constexpr int BACKGROUND_LAYER_COUNT = 15; diff --git a/src/beast_arena.h b/src/level/beast_arena.h similarity index 97% rename from src/beast_arena.h rename to src/level/beast_arena.h index b5f1261..a470c6e 100644 --- a/src/beast_arena.h +++ b/src/level/beast_arena.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" // The Beast's arena draws in passes around the room's: under everything, over the floor, over the entities, last. enum BeastArenaPass diff --git a/src/camera.cpp b/src/level/camera.cpp similarity index 98% rename from src/camera.cpp rename to src/level/camera.cpp index 927d837..bf99a77 100644 --- a/src/camera.cpp +++ b/src/level/camera.cpp @@ -1,13 +1,13 @@ -#include "camera.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_list.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "room.h" -#include "seeds.h" +#include "level/camera.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room.h" +#include "engine/seeds.h" #include #include diff --git a/src/camera.h b/src/level/camera.h similarity index 100% rename from src/camera.h rename to src/level/camera.h diff --git a/src/level_curses.cpp b/src/level/curses.cpp similarity index 97% rename from src/level_curses.cpp rename to src/level/curses.cpp index 7477b15..c814b56 100644 --- a/src/level_curses.cpp +++ b/src/level/curses.cpp @@ -1,9 +1,9 @@ -#include "entity_pickup.h" -#include "game.h" -#include "hud.h" -#include "level.h" -#include "manager.h" -#include "room.h" +#include "entity/pickup/pickup.h" +#include "game/game.h" +#include "ui/hud.h" +#include "level/level.h" +#include "game/manager.h" +#include "level/room.h" #include #include diff --git a/src/level_generator.cpp b/src/level/generator.cpp similarity index 99% rename from src/level_generator.cpp rename to src/level/generator.cpp index 86cd062..79c1885 100644 --- a/src/level_generator.cpp +++ b/src/level/generator.cpp @@ -1,6 +1,6 @@ -#include "level_generator.h" -#include "platform.h" -#include "seeds.h" +#include "level/generator.h" +#include "engine/platform.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/level_generator.h b/src/level/generator.h similarity index 99% rename from src/level_generator.h rename to src/level/generator.h index 5bd55db..5fbdd7c 100644 --- a/src/level_generator.h +++ b/src/level/generator.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "room_config.h" +#include "level/room_config.h" #include #include #include diff --git a/src/greed.cpp b/src/level/greed.cpp similarity index 98% rename from src/greed.cpp rename to src/level/greed.cpp index 497bcdf..0879235 100644 --- a/src/greed.cpp +++ b/src/level/greed.cpp @@ -1,24 +1,24 @@ -#include "ambush.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "entity_factory.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_poop.h" -#include "grid_entity_pressure_plate.h" -#include "log.h" -#include "music_manager.h" -#include "npc_alt.h" -#include "room_grid.h" -#include "sfx_manager.h" -#include "level.h" -#include "manager.h" -#include "persistent_game_data.h" -#include "room.h" -#include "room_config.h" +#include "level/ambush.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "entity/factory.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/poop.h" +#include "level/grid/pressure_plate.h" +#include "engine/log.h" +#include "game/music_manager.h" +#include "entity/npc/alt.h" +#include "level/room_grid.h" +#include "game/sfx_manager.h" +#include "level/level.h" +#include "game/manager.h" +#include "game/persistent_game_data.h" +#include "level/room.h" +#include "level/room_config.h" #include #include #include diff --git a/src/grid_entity_decoration.cpp b/src/level/grid/decoration.cpp similarity index 95% rename from src/grid_entity_decoration.cpp rename to src/level/grid/decoration.cpp index ceb29d2..01434a5 100644 --- a/src/grid_entity_decoration.cpp +++ b/src/level/grid/decoration.cpp @@ -1,11 +1,11 @@ -#include "grid_entity_decoration.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "npc_ai.h" -#include "room.h" -#include "room_render.h" -#include "seeds.h" +#include "level/grid/decoration.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_render.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/grid_entity_decoration.h b/src/level/grid/decoration.h similarity index 94% rename from src/grid_entity_decoration.h rename to src/level/grid/decoration.h index 98db7b7..8232f6e 100644 --- a/src/grid_entity_decoration.h +++ b/src/level/grid/decoration.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // The decoration variant that shows nothing, and the crawlspace ladders' variants. constexpr int DECORATION_HIDDEN = 1000; diff --git a/src/grid_entity_door.cpp b/src/level/grid/door.cpp similarity index 99% rename from src/grid_entity_door.cpp rename to src/level/grid/door.cpp index 677be3a..bd4ffda 100644 --- a/src/grid_entity_door.cpp +++ b/src/level/grid/door.cpp @@ -1,13 +1,13 @@ -#include "grid_entity_door.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "game.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "room.h" -#include "seeds.h" +#include "level/grid/door.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room.h" +#include "engine/seeds.h" #include // The rooms a door can lead to off the map: the Downpour's mirror and the Mines' shaft. diff --git a/src/grid_entity_door.h b/src/level/grid/door.h similarity index 97% rename from src/grid_entity_door.h rename to src/level/grid/door.h index 3df2c71..cb9238e 100644 --- a/src/grid_entity_door.h +++ b/src/level/grid/door.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_player.h" -#include "grid_entity.h" +#include "entity/player/player.h" +#include "level/grid/grid_entity.h" #include constexpr int DOOR_SIDES = 4; diff --git a/src/grid_entity_fire.cpp b/src/level/grid/fire.cpp similarity index 95% rename from src/grid_entity_fire.cpp rename to src/level/grid/fire.cpp index e1b2c32..c831334 100644 --- a/src/grid_entity_fire.cpp +++ b/src/level/grid/fire.cpp @@ -1,17 +1,17 @@ -#include "grid_entity_fire.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "game.h" -#include "manager.h" -#include "npc_fireplace.h" -#include "player_stats.h" -#include "room.h" -#include "seeds.h" +#include "level/grid/fire.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "game/game.h" +#include "game/manager.h" +#include "entity/npc/fireplace.h" +#include "entity/player/stats.h" +#include "level/room.h" +#include "engine/seeds.h" // A grid fire's grid path while it stands, the odds a fresh one burns red, and its red tints. constexpr int GRID_FIRE_PATH = 1400; diff --git a/src/grid_entity_fire.h b/src/level/grid/fire.h similarity index 95% rename from src/grid_entity_fire.h rename to src/level/grid/fire.h index 2e30db3..330725f 100644 --- a/src/grid_entity_fire.h +++ b/src/level/grid/fire.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" #include // An ember drifting up from a fire: where it is, how it moves, and how long it has left. diff --git a/src/grid_entity_gravity.cpp b/src/level/grid/gravity.cpp similarity index 93% rename from src/grid_entity_gravity.cpp rename to src/level/grid/gravity.cpp index f8897aa..79429b5 100644 --- a/src/grid_entity_gravity.cpp +++ b/src/level/grid/gravity.cpp @@ -1,8 +1,8 @@ -#include "grid_entity_gravity.h" -#include "backdrop.h" -#include "entity_player.h" -#include "game.h" -#include "room.h" +#include "level/grid/gravity.h" +#include "level/backdrop.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/room.h" #include // A ledge cell shows one of the dungeon's floor tiles: Rotgut's at a random frame of its Floor, the others one of diff --git a/src/grid_entity_gravity.h b/src/level/grid/gravity.h similarity index 87% rename from src/grid_entity_gravity.h rename to src/level/grid/gravity.h index c02157d..8dc59e7 100644 --- a/src/grid_entity_gravity.h +++ b/src/level/grid/gravity.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // A crawlspace's gravity cell (Lua's GRID_GRAVITY), which pulls the players toward the ladder. struct GridEntity_Gravity : GridEntity diff --git a/src/grid_entity.cpp b/src/level/grid/grid_entity.cpp similarity index 95% rename from src/grid_entity.cpp rename to src/level/grid/grid_entity.cpp index c5909d4..a24f70a 100644 --- a/src/grid_entity.cpp +++ b/src/level/grid/grid_entity.cpp @@ -1,38 +1,38 @@ -#include "grid_entity.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_decoration.h" -#include "grid_entity_door.h" -#include "grid_entity_fire.h" -#include "grid_entity_gravity.h" -#include "grid_entity_lock.h" -#include "grid_entity_pit.h" -#include "grid_entity_poop.h" -#include "grid_entity_pressure_plate.h" -#include "grid_entity_rock.h" -#include "grid_entity_spikes.h" -#include "grid_entity_stairs.h" -#include "grid_entity_statue.h" -#include "grid_entity_teleporter.h" -#include "grid_entity_tnt.h" -#include "grid_entity_trap_door.h" -#include "grid_entity_wall.h" -#include "grid_entity_web.h" -#include "log.h" -#include "manager.h" -#include "menu_options.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "room_transition.h" -#include "stage_transition.h" -#include "string_table.h" -#include "seeds.h" +#include "level/grid/grid_entity.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/decoration.h" +#include "level/grid/door.h" +#include "level/grid/fire.h" +#include "level/grid/gravity.h" +#include "level/grid/lock.h" +#include "level/grid/pit.h" +#include "level/grid/poop.h" +#include "level/grid/pressure_plate.h" +#include "level/grid/rock.h" +#include "level/grid/spikes.h" +#include "level/grid/stairs.h" +#include "level/grid/statue.h" +#include "level/grid/teleporter.h" +#include "level/grid/tnt.h" +#include "level/grid/trap_door.h" +#include "level/grid/wall.h" +#include "level/grid/web.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/options.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_transition.h" +#include "level/stage_transition.h" +#include "game/string_table.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/grid_entity.h b/src/level/grid/grid_entity.h similarity index 98% rename from src/grid_entity.h rename to src/level/grid/grid_entity.h index 4c52d0a..062b8ca 100644 --- a/src/grid_entity.h +++ b/src/level/grid/grid_entity.h @@ -1,9 +1,9 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include "classes.h" -#include "entity.h" -#include "sfx_manager.h" +#include "entity/entity.h" +#include "game/sfx_manager.h" #include // The grid entity types (Lua's GridEntityType). The last, which Lua leaves unnamed, makes spikes. diff --git a/src/grid_entity_lock.cpp b/src/level/grid/lock.cpp similarity index 97% rename from src/grid_entity_lock.cpp rename to src/level/grid/lock.cpp index 2db04a1..b94dc1f 100644 --- a/src/grid_entity_lock.cpp +++ b/src/level/grid/lock.cpp @@ -1,7 +1,7 @@ -#include "grid_entity_lock.h" -#include "entity_pickup.h" -#include "game.h" -#include "room.h" +#include "level/grid/lock.h" +#include "entity/pickup/pickup.h" +#include "game/game.h" +#include "level/room.h" // The grid path a standing block claims, and how near a player must come to open it. constexpr int GRID_PATH_LOCK = 4000; diff --git a/src/grid_entity_lock.h b/src/level/grid/lock.h similarity index 86% rename from src/grid_entity_lock.h rename to src/level/grid/lock.h index 412804e..6fce4b4 100644 --- a/src/grid_entity_lock.h +++ b/src/level/grid/lock.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_player.h" -#include "grid_entity.h" +#include "entity/player/player.h" +#include "level/grid/grid_entity.h" // Destruction (0070bdd0) is the default. // A key block (Lua's GRID_LOCK), or a coin block under Pay To Play. diff --git a/src/grid_entity_pit.cpp b/src/level/grid/pit.cpp similarity index 98% rename from src/grid_entity_pit.cpp rename to src/level/grid/pit.cpp index 1e9928d..f32ebee 100644 --- a/src/grid_entity_pit.cpp +++ b/src/level/grid/pit.cpp @@ -1,13 +1,13 @@ -#include "grid_entity_pit.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_rock.h" -#include "log.h" -#include "room.h" -#include "room_config.h" -#include "seeds.h" +#include "level/grid/pit.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/rock.h" +#include "engine/log.h" +#include "level/room.h" +#include "level/room_config.h" +#include "engine/seeds.h" #include #include diff --git a/src/grid_entity_pit.h b/src/level/grid/pit.h similarity index 96% rename from src/grid_entity_pit.h rename to src/level/grid/pit.h index 28a8888..a2194da 100644 --- a/src/grid_entity_pit.h +++ b/src/level/grid/pit.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" struct GridEntity_Rock; diff --git a/src/grid_entity_poop.cpp b/src/level/grid/poop.cpp similarity index 98% rename from src/grid_entity_poop.cpp rename to src/level/grid/poop.cpp index 1a53cf1..3164cdd 100644 --- a/src/grid_entity_poop.cpp +++ b/src/level/grid/poop.cpp @@ -1,21 +1,21 @@ -#include "grid_entity_poop.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_rock.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" -#include "room_special.h" -#include "seeds.h" +#include "level/grid/poop.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/rock.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "level/room_special.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/grid_entity_poop.h b/src/level/grid/poop.h similarity index 98% rename from src/grid_entity_poop.h rename to src/level/grid/poop.h index 962c72e..91f7066 100644 --- a/src/grid_entity_poop.h +++ b/src/level/grid/poop.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" #include // The kinds of poop (Lua's PoopGridEntityVariant). Stone, flaming and stinky are the poop enemies' own, for their gibs diff --git a/src/grid_entity_pressure_plate.cpp b/src/level/grid/pressure_plate.cpp similarity index 98% rename from src/grid_entity_pressure_plate.cpp rename to src/level/grid/pressure_plate.cpp index eb46ec0..37e2340 100644 --- a/src/grid_entity_pressure_plate.cpp +++ b/src/level/grid/pressure_plate.cpp @@ -1,18 +1,18 @@ -#include "grid_entity_pressure_plate.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_slot.h" -#include "font.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_poop.h" -#include "manager.h" -#include "npc_fireplace.h" -#include "npc_ai.h" -#include "room.h" -#include "room_grid.h" +#include "level/grid/pressure_plate.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/pickup/slot.h" +#include "engine/font.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/poop.h" +#include "game/manager.h" +#include "entity/npc/fireplace.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/grid_entity_pressure_plate.h b/src/level/grid/pressure_plate.h similarity index 97% rename from src/grid_entity_pressure_plate.h rename to src/level/grid/pressure_plate.h index 22b339b..236ee25 100644 --- a/src/grid_entity_pressure_plate.h +++ b/src/level/grid/pressure_plate.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" #include // A pressure plate's variant: the plain plate every one of which clears the room, the reward plate, Greed mode's wave diff --git a/src/grid_entity_rock.cpp b/src/level/grid/rock.cpp similarity index 98% rename from src/grid_entity_rock.cpp rename to src/level/grid/rock.cpp index 0dee152..d3ee084 100644 --- a/src/grid_entity_rock.cpp +++ b/src/level/grid/rock.cpp @@ -1,24 +1,24 @@ -#include "grid_entity_rock.h" -#include "backdrop.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "npc_ai.h" -#include "npc_alt.h" -#include "npc_basement.h" -#include "persistent_game_data.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "room.h" -#include "room_config.h" -#include "room_grid.h" -#include "seeds.h" +#include "level/grid/rock.h" +#include "level/backdrop.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/npc/ai.h" +#include "entity/npc/alt.h" +#include "entity/npc/basement.h" +#include "game/persistent_game_data.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_grid.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/grid_entity_rock.h b/src/level/grid/rock.h similarity index 98% rename from src/grid_entity_rock.h rename to src/level/grid/rock.h index 140dea3..821c75b 100644 --- a/src/grid_entity_rock.h +++ b/src/level/grid/rock.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" #include #include diff --git a/src/grid_entity_spikes.cpp b/src/level/grid/spikes.cpp similarity index 97% rename from src/grid_entity_spikes.cpp rename to src/level/grid/spikes.cpp index 7b9642c..0ce3f90 100644 --- a/src/grid_entity_spikes.cpp +++ b/src/level/grid/spikes.cpp @@ -1,9 +1,9 @@ -#include "grid_entity_spikes.h" -#include "entity_effect.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "room.h" +#include "level/grid/spikes.h" +#include "entity/effect/effect.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "level/room.h" #include #include #include diff --git a/src/grid_entity_spikes.h b/src/level/grid/spikes.h similarity index 93% rename from src/grid_entity_spikes.h rename to src/level/grid/spikes.h index eef736e..e61173d 100644 --- a/src/grid_entity_spikes.h +++ b/src/level/grid/spikes.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // The variants spikes of a room's own layout have: 100 and up are sacrifice-like. constexpr uint32_t SPIKES_LAYOUT_VARIANTS = 100; diff --git a/src/grid_entity_stairs.cpp b/src/level/grid/stairs.cpp similarity index 94% rename from src/grid_entity_stairs.cpp rename to src/level/grid/stairs.cpp index ea43cc9..3a1518f 100644 --- a/src/grid_entity_stairs.cpp +++ b/src/level/grid/stairs.cpp @@ -1,11 +1,11 @@ -#include "grid_entity_stairs.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_trap_door.h" -#include "npc_ai.h" -#include "room.h" -#include "room_descriptor.h" -#include "room_transition.h" +#include "level/grid/stairs.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/trap_door.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_descriptor.h" +#include "level/room_transition.h" #include #include diff --git a/src/grid_entity_stairs.h b/src/level/grid/stairs.h similarity index 92% rename from src/grid_entity_stairs.h rename to src/level/grid/stairs.h index 962545d..334adcc 100644 --- a/src/grid_entity_stairs.h +++ b/src/level/grid/stairs.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // Where stairs lead, by their variant: a crawlspace, Gideon's crawlspace, the secret shop, or the start room. enum StairsVariant : int diff --git a/src/grid_entity_statue.cpp b/src/level/grid/statue.cpp similarity index 95% rename from src/grid_entity_statue.cpp rename to src/level/grid/statue.cpp index 5b674bf..b4df064 100644 --- a/src/grid_entity_statue.cpp +++ b/src/level/grid/statue.cpp @@ -1,12 +1,12 @@ -#include "grid_entity_statue.h" -#include "entity_effect.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "manager.h" -#include "music_manager.h" -#include "room.h" +#include "level/grid/statue.h" +#include "entity/effect/effect.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "level/room.h" // The statue kinds. constexpr int STATUE_DEVIL = 0; diff --git a/src/grid_entity_statue.h b/src/level/grid/statue.h similarity index 94% rename from src/grid_entity_statue.h rename to src/level/grid/statue.h index 19b4dc1..f2d4e84 100644 --- a/src/grid_entity_statue.h +++ b/src/level/grid/statue.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // A statue standing, and broken. constexpr int STATUE_STATE_STANDING = 1; diff --git a/src/grid_entity_teleporter.cpp b/src/level/grid/teleporter.cpp similarity index 96% rename from src/grid_entity_teleporter.cpp rename to src/level/grid/teleporter.cpp index 1cfb90c..8578b53 100644 --- a/src/grid_entity_teleporter.cpp +++ b/src/level/grid/teleporter.cpp @@ -1,9 +1,9 @@ -#include "grid_entity_teleporter.h" -#include "boss_ai.h" -#include "entity_player.h" -#include "game.h" -#include "room.h" -#include "room_config.h" +#include "level/grid/teleporter.h" +#include "entity/boss/ai.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/room.h" +#include "level/room_config.h" #include #include diff --git a/src/grid_entity_teleporter.h b/src/level/grid/teleporter.h similarity index 93% rename from src/grid_entity_teleporter.h rename to src/level/grid/teleporter.h index 107b09d..c2ac9d0 100644 --- a/src/grid_entity_teleporter.h +++ b/src/level/grid/teleporter.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // A teleporter pad a player just arrived on (waiting for the player to step off), and one switched off. constexpr int TELEPORTER_STATE_ON = 1; diff --git a/src/grid_entity_tnt.cpp b/src/level/grid/tnt.cpp similarity index 93% rename from src/grid_entity_tnt.cpp rename to src/level/grid/tnt.cpp index 21eef1f..9e6a6ef 100644 --- a/src/grid_entity_tnt.cpp +++ b/src/level/grid/tnt.cpp @@ -1,14 +1,14 @@ -#include "grid_entity_tnt.h" -#include "entity_bomb.h" -#include "entity_config.h" -#include "entity_effect_combat.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "room.h" -#include "seeds.h" +#include "level/grid/tnt.h" +#include "entity/weapon/bomb.h" +#include "entity/config.h" +#include "entity/effect/combat.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room.h" +#include "engine/seeds.h" #include // The barrel's fuse once it is ready to blow, its blast, and the wood its pieces show. diff --git a/src/grid_entity_tnt.h b/src/level/grid/tnt.h similarity index 94% rename from src/grid_entity_tnt.h rename to src/level/grid/tnt.h index 5c5f042..d8a53bb 100644 --- a/src/grid_entity_tnt.h +++ b/src/level/grid/tnt.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // How damaged a barrel is: up to ready to explode, then blown. constexpr int TNT_STATE_READY = 3; diff --git a/src/grid_entity_trap_door.cpp b/src/level/grid/trap_door.cpp similarity index 97% rename from src/grid_entity_trap_door.cpp rename to src/level/grid/trap_door.cpp index ce06810..9d30d3d 100644 --- a/src/grid_entity_trap_door.cpp +++ b/src/level/grid/trap_door.cpp @@ -1,18 +1,18 @@ -#include "grid_entity_trap_door.h" -#include "boss_pool.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_player.h" -#include "game.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "room.h" -#include "room_render.h" -#include "seeds.h" -#include "stage_transition.h" +#include "level/grid/trap_door.h" +#include "entity/boss/pool.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_render.h" +#include "engine/seeds.h" +#include "level/stage_transition.h" #include #include diff --git a/src/grid_entity_trap_door.h b/src/level/grid/trap_door.h similarity index 95% rename from src/grid_entity_trap_door.h rename to src/level/grid/trap_door.h index 6f3929d..055ddf3 100644 --- a/src/grid_entity_trap_door.h +++ b/src/level/grid/trap_door.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // A trapdoor's varData: the Void's portal, which leads to the Void and shakes the room. constexpr int TRAPDOOR_VOID_PORTAL = 1; diff --git a/src/grid_entity_wall.cpp b/src/level/grid/wall.cpp similarity index 97% rename from src/grid_entity_wall.cpp rename to src/level/grid/wall.cpp index b8b049e..5bee03d 100644 --- a/src/grid_entity_wall.cpp +++ b/src/level/grid/wall.cpp @@ -1,10 +1,10 @@ -#include "grid_entity_wall.h" -#include "game.h" -#include "grid_entity_decoration.h" -#include "grid_entity_gravity.h" -#include "log.h" -#include "room.h" -#include "seeds.h" +#include "level/grid/wall.h" +#include "game/game.h" +#include "level/grid/decoration.h" +#include "level/grid/gravity.h" +#include "engine/log.h" +#include "level/room.h" +#include "engine/seeds.h" #include // The walls inside an L-shaped room's corner: the columns either side of the middle and the rows above and below it. diff --git a/src/grid_entity_wall.h b/src/level/grid/wall.h similarity index 90% rename from src/grid_entity_wall.h rename to src/level/grid/wall.h index a466753..11b5e44 100644 --- a/src/grid_entity_wall.h +++ b/src/level/grid/wall.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // Its update (0040c200) does nothing. // A wall on the room's border (Lua's GRID_WALL). Only a crawlspace draws its walls as bricks and ladders. diff --git a/src/grid_entity_web.cpp b/src/level/grid/web.cpp similarity index 97% rename from src/grid_entity_web.cpp rename to src/level/grid/web.cpp index 6d59e1d..ca3c7c3 100644 --- a/src/grid_entity_web.cpp +++ b/src/level/grid/web.cpp @@ -1,6 +1,6 @@ -#include "grid_entity_web.h" -#include "entity_player.h" -#include "game.h" +#include "level/grid/web.h" +#include "entity/player/player.h" +#include "game/game.h" #include #include diff --git a/src/grid_entity_web.h b/src/level/grid/web.h similarity index 92% rename from src/grid_entity_web.h rename to src/level/grid/web.h index 63296c9..4f1a701 100644 --- a/src/grid_entity_web.h +++ b/src/level/grid/web.h @@ -1,6 +1,6 @@ #pragma once -#include "grid_entity.h" +#include "level/grid/grid_entity.h" // A web standing, and bombed. constexpr int WEB_STATE_STANDING = 0; diff --git a/src/level.cpp b/src/level/level.cpp similarity index 99% rename from src/level.cpp rename to src/level/level.cpp index b72f70d..f512968 100644 --- a/src/level.cpp +++ b/src/level/level.cpp @@ -1,28 +1,28 @@ -#include "level.h" -#include "boss_ai.h" -#include "boss_final.h" -#include "boss_pool.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_pit.h" -#include "grid_entity_stairs.h" -#include "hud.h" -#include "lua_engine.h" -#include "menu_special_seeds.h" -#include "music_manager.h" -#include "manager.h" -#include "npc_ai.h" -#include "persistent_game_data.h" -#include "platform.h" -#include "room.h" -#include "room_config.h" -#include "room_render.h" -#include "room_transition.h" -#include "texture_cache.h" +#include "level/level.h" +#include "entity/boss/ai.h" +#include "entity/boss/final.h" +#include "entity/boss/pool.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/pit.h" +#include "level/grid/stairs.h" +#include "ui/hud.h" +#include "lua/engine.h" +#include "ui/menu/special_seeds.h" +#include "game/music_manager.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "game/persistent_game_data.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_render.h" +#include "level/room_transition.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/level.h b/src/level/level.h similarity index 99% rename from src/level.h rename to src/level/level.h index 4542b66..6796f87 100644 --- a/src/level.h +++ b/src/level/level.h @@ -1,10 +1,10 @@ #pragma once #include "classes.h" -#include "entity_save_state.h" -#include "level_generator.h" -#include "room_descriptor.h" -#include "seeds.h" +#include "entity/save_state.h" +#include "level/generator.h" +#include "level/room_descriptor.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/minimap.cpp b/src/level/minimap.cpp similarity index 99% rename from src/minimap.cpp rename to src/level/minimap.cpp index 694933a..535d095 100644 --- a/src/minimap.cpp +++ b/src/level/minimap.cpp @@ -1,16 +1,16 @@ -#include "minimap.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "game.h" -#include "hud.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "menu_options.h" -#include "room.h" -#include "seeds.h" +#include "level/minimap.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "ui/hud.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "ui/menu/options.h" +#include "level/room.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/minimap.h b/src/level/minimap.h similarity index 97% rename from src/minimap.h rename to src/level/minimap.h index a49ddd3..d79b828 100644 --- a/src/minimap.h +++ b/src/level/minimap.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" #include // How the map shows: the small one in the corner, the large one while the map button is held, or the large one left diff --git a/src/path_finder.cpp b/src/level/path_finder.cpp similarity index 99% rename from src/path_finder.cpp rename to src/level/path_finder.cpp index eee5951..ce0e057 100644 --- a/src/path_finder.cpp +++ b/src/level/path_finder.cpp @@ -1,11 +1,11 @@ -#include "path_finder.h" -#include "boss_ai.h" -#include "game.h" -#include "grid_entity.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" +#include "level/path_finder.h" +#include "entity/boss/ai.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/path_finder.h b/src/level/path_finder.h similarity index 100% rename from src/path_finder.h rename to src/level/path_finder.h diff --git a/src/rail_manager.cpp b/src/level/rail_manager.cpp similarity index 98% rename from src/rail_manager.cpp rename to src/level/rail_manager.cpp index 086a8e9..8457cee 100644 --- a/src/rail_manager.cpp +++ b/src/level/rail_manager.cpp @@ -1,10 +1,10 @@ -#include "rail_manager.h" -#include "entity.h" -#include "game.h" -#include "grid_entity.h" -#include "log.h" -#include "npc_ai.h" -#include "room.h" +#include "level/rail_manager.h" +#include "entity/entity.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "level/room.h" #include #include #include diff --git a/src/rail_manager.h b/src/level/rail_manager.h similarity index 97% rename from src/rail_manager.h rename to src/level/rail_manager.h index 2efc78b..415806c 100644 --- a/src/rail_manager.h +++ b/src/level/rail_manager.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "room_descriptor.h" +#include "engine/anm2.h" +#include "level/room_descriptor.h" #include #include diff --git a/src/level_red_room.cpp b/src/level/red_room.cpp similarity index 97% rename from src/level_red_room.cpp rename to src/level/red_room.cpp index 7fad227..509dcf2 100644 --- a/src/level_red_room.cpp +++ b/src/level/red_room.cpp @@ -1,14 +1,14 @@ -#include "game.h" -#include "grid_entity_door.h" -#include "level.h" -#include "level_generator.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "platform.h" -#include "room.h" -#include "room_config.h" -#include "sfx_manager.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/level.h" +#include "level/generator.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_config.h" +#include "game/sfx_manager.h" #include // The map's width and height in cells. diff --git a/src/room.cpp b/src/level/room.cpp similarity index 99% rename from src/room.cpp rename to src/level/room.cpp index fba687c..25db9cc 100644 --- a/src/room.cpp +++ b/src/level/room.cpp @@ -1,31 +1,31 @@ -#include "room.h" -#include "boss_ai.h" -#include "boss_pool.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_effect.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_door.h" -#include "grid_entity_poop.h" -#include "grid_entity_spikes.h" -#include "grid_entity_stairs.h" -#include "level.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_options.h" -#include "mines.h" -#include "npc_fireplace.h" -#include "persistent_game_data.h" -#include "room_grid.h" -#include "room_path.h" -#include "room_render.h" -#include "seeds.h" -#include "texture_cache.h" +#include "level/room.h" +#include "entity/boss/ai.h" +#include "entity/boss/pool.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/effect/effect.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/door.h" +#include "level/grid/poop.h" +#include "level/grid/spikes.h" +#include "level/grid/stairs.h" +#include "level/level.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/options.h" +#include "entity/weapon/mines.h" +#include "entity/npc/fireplace.h" +#include "game/persistent_game_data.h" +#include "level/room_grid.h" +#include "level/room_path.h" +#include "level/room_render.h" +#include "engine/seeds.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/room.h b/src/level/room.h similarity index 98% rename from src/room.h rename to src/level/room.h index d8ff2cd..02bee50 100644 --- a/src/room.h +++ b/src/level/room.h @@ -1,14 +1,14 @@ #pragma once -#include "backdrop.h" -#include "beast_arena.h" -#include "camera.h" -#include "entity_list.h" -#include "fx_layers.h" -#include "grid_entity.h" -#include "rail_manager.h" -#include "room_descriptor.h" -#include "temporary_effects.h" +#include "level/backdrop.h" +#include "level/beast_arena.h" +#include "level/camera.h" +#include "entity/list.h" +#include "engine/fx_layers.h" +#include "level/grid/grid_entity.h" +#include "level/rail_manager.h" +#include "level/room_descriptor.h" +#include "entity/player/temporary_effects.h" #include #include #include diff --git a/src/room_clear.cpp b/src/level/room_clear.cpp similarity index 98% rename from src/room_clear.cpp rename to src/level/room_clear.cpp index 493c236..0fbfb91 100644 --- a/src/room_clear.cpp +++ b/src/level/room_clear.cpp @@ -1,32 +1,32 @@ -#include "room_clear.h" -#include "boss_ai.h" -#include "boss_pool.h" -#include "challenge_params.h" -#include "entity_effect.h" -#include "entity_effect_combat.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_slot.h" -#include "game_over.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_pit.h" -#include "grid_entity_trap_door.h" -#include "item_config.h" -#include "item_pool.h" -#include "loot_list.h" -#include "lua_engine.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_ai.h" -#include "persistent_game_data.h" -#include "player_manager.h" -#include "room.h" -#include "room_grid.h" -#include "score_sheet.h" -#include "seeds.h" +#include "level/room_clear.h" +#include "entity/boss/ai.h" +#include "entity/boss/pool.h" +#include "game/challenge_params.h" +#include "entity/effect/effect.h" +#include "entity/effect/combat.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/pickup/slot.h" +#include "game/over.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/pit.h" +#include "level/grid/trap_door.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_pool.h" +#include "entity/pickup/loot_list.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/ai.h" +#include "game/persistent_game_data.h" +#include "entity/player/manager.h" +#include "level/room.h" +#include "level/room_grid.h" +#include "ui/score_sheet.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/room_clear.h b/src/level/room_clear.h similarity index 100% rename from src/room_clear.h rename to src/level/room_clear.h diff --git a/src/room_config.cpp b/src/level/room_config.cpp similarity index 99% rename from src/room_config.cpp rename to src/level/room_config.cpp index aebd20e..8481e2d 100644 --- a/src/room_config.cpp +++ b/src/level/room_config.cpp @@ -1,9 +1,9 @@ -#include "room_config.h" -#include "data.h" -#include "game.h" -#include "item_config.h" -#include "manager.h" -#include "platform.h" +#include "level/room_config.h" +#include "engine/data.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/room_config.h b/src/level/room_config.h similarity index 100% rename from src/room_config.h rename to src/level/room_config.h diff --git a/src/room_descriptor.cpp b/src/level/room_descriptor.cpp similarity index 92% rename from src/room_descriptor.cpp rename to src/level/room_descriptor.cpp index afd2dfe..e63d8ba 100644 --- a/src/room_descriptor.cpp +++ b/src/level/room_descriptor.cpp @@ -1,4 +1,4 @@ -#include "room_descriptor.h" +#include "level/room_descriptor.h" constexpr uint32_t BOSS_DEATH_SHIFT_INDEX = 66; diff --git a/src/room_descriptor.h b/src/level/room_descriptor.h similarity index 99% rename from src/room_descriptor.h rename to src/level/room_descriptor.h index b54f9a6..0e8c1d2 100644 --- a/src/room_descriptor.h +++ b/src/level/room_descriptor.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "level_generator.h" +#include "level/generator.h" #include #include #include diff --git a/src/room_grid.cpp b/src/level/room_grid.cpp similarity index 97% rename from src/room_grid.cpp rename to src/level/room_grid.cpp index f8e9f1e..9a4da73 100644 --- a/src/room_grid.cpp +++ b/src/level/room_grid.cpp @@ -1,19 +1,19 @@ -#include "room_grid.h" -#include "capsule.h" -#include "entity_player.h" -#include "boss_ai.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "game.h" -#include "grid_entity_door.h" -#include "grid_entity_pit.h" -#include "grid_entity_poop.h" -#include "grid_entity_rock.h" -#include "grid_entity_tnt.h" -#include "log.h" -#include "npc_ai.h" -#include "room.h" -#include "room_descriptor.h" +#include "level/room_grid.h" +#include "engine/capsule.h" +#include "entity/player/player.h" +#include "entity/boss/ai.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/grid/pit.h" +#include "level/grid/poop.h" +#include "level/grid/rock.h" +#include "level/grid/tnt.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_descriptor.h" #include #include #include diff --git a/src/room_grid.h b/src/level/room_grid.h similarity index 96% rename from src/room_grid.h rename to src/level/room_grid.h index 8c0831e..3fb0fe2 100644 --- a/src/room_grid.h +++ b/src/level/room_grid.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_list.h" -#include "grid_entity.h" +#include "entity/list.h" +#include "level/grid/grid_entity.h" // The groups EntityList::QueryRadius looks in (Lua's EntityPartition), by bit. enum QueryPartition : uint32_t diff --git a/src/room_lighting.cpp b/src/level/room_lighting.cpp similarity index 98% rename from src/room_lighting.cpp rename to src/level/room_lighting.cpp index bedc7dc..48b4185 100644 --- a/src/room_lighting.cpp +++ b/src/level/room_lighting.cpp @@ -1,19 +1,19 @@ -#include "boss_repentance.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_fireplace.h" -#include "room.h" -#include "room_render.h" -#include "seeds.h" +#include "entity/boss/repentance.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/fireplace.h" +#include "level/room.h" +#include "level/room_render.h" +#include "engine/seeds.h" #include #include diff --git a/src/room_path.cpp b/src/level/room_path.cpp similarity index 98% rename from src/room_path.cpp rename to src/level/room_path.cpp index 9c84611..e906ebf 100644 --- a/src/room_path.cpp +++ b/src/level/room_path.cpp @@ -1,10 +1,10 @@ -#include "room_path.h" -#include "game.h" -#include "grid_entity_pit.h" -#include "grid_entity_teleporter.h" -#include "entity_pickup.h" -#include "entity_effect.h" -#include "log.h" +#include "level/room_path.h" +#include "game/game.h" +#include "level/grid/pit.h" +#include "level/grid/teleporter.h" +#include "entity/pickup/pickup.h" +#include "entity/effect/effect.h" +#include "engine/log.h" #include #include #include diff --git a/src/room_path.h b/src/level/room_path.h similarity index 94% rename from src/room_path.h rename to src/level/room_path.h index 1b2fc70..788c97d 100644 --- a/src/room_path.h +++ b/src/level/room_path.h @@ -1,7 +1,7 @@ #pragma once -#include "entity_player.h" -#include "room.h" +#include "entity/player/player.h" +#include "level/room.h" // What a grid path search may cross (Room::is_obstacle_path_valid's flags): walls only players pass, the teleporters // of a variant, and breakable obstacles, which it then clears along the path it found. diff --git a/src/room_render.cpp b/src/level/room_render.cpp similarity index 99% rename from src/room_render.cpp rename to src/level/room_render.cpp index 86ef13a..212788e 100644 --- a/src/room_render.cpp +++ b/src/level/room_render.cpp @@ -1,22 +1,22 @@ -#include "room_render.h" -#include "boss_pool.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "fx_layers.h" -#include "game.h" -#include "gl.h" -#include "grid_entity_door.h" -#include "grid_entity_pit.h" -#include "grid_entity_rock.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "menu_collection.h" -#include "rail_manager.h" -#include "render_passes.h" -#include "room.h" -#include "seeds.h" +#include "level/room_render.h" +#include "entity/boss/pool.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/gl.h" +#include "level/grid/door.h" +#include "level/grid/pit.h" +#include "level/grid/rock.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/collection.h" +#include "level/rail_manager.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/room_render.h b/src/level/room_render.h similarity index 97% rename from src/room_render.h rename to src/level/room_render.h index 22a400c..a150d61 100644 --- a/src/room_render.h +++ b/src/level/room_render.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" #include constexpr int SHOCKWAVE_COUNT = 2; diff --git a/src/room_special.cpp b/src/level/room_special.cpp similarity index 99% rename from src/room_special.cpp rename to src/level/room_special.cpp index b376655..3c5b6c6 100644 --- a/src/room_special.cpp +++ b/src/level/room_special.cpp @@ -1,17 +1,17 @@ -#include "room_special.h" -#include "entity_effect_combat.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity_door.h" -#include "log.h" -#include "lua_engine.h" -#include "manager.h" -#include "npc_ai.h" -#include "npc_basement.h" -#include "room.h" -#include "room_grid.h" +#include "level/room_special.h" +#include "entity/effect/combat.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/room_special.h b/src/level/room_special.h similarity index 100% rename from src/room_special.h rename to src/level/room_special.h diff --git a/src/room_state.cpp b/src/level/room_state.cpp similarity index 97% rename from src/room_state.cpp rename to src/level/room_state.cpp index d6a941e..16799d4 100644 --- a/src/room_state.cpp +++ b/src/level/room_state.cpp @@ -1,18 +1,18 @@ -#include "room_state.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_slot.h" -#include "entity_tear.h" -#include "game.h" -#include "log.h" -#include "npc_ai.h" -#include "room.h" -#include "room_clear.h" -#include "room_grid.h" -#include "room_special.h" +#include "level/room_state.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/pickup/slot.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "engine/log.h" +#include "entity/npc/ai.h" +#include "level/room.h" +#include "level/room_clear.h" +#include "level/room_grid.h" +#include "level/room_special.h" #include #include #include diff --git a/src/room_state.h b/src/level/room_state.h similarity index 92% rename from src/room_state.h rename to src/level/room_state.h index f6f6525..ee5aefd 100644 --- a/src/room_state.h +++ b/src/level/room_state.h @@ -1,6 +1,6 @@ #pragma once -#include "entity_save_state.h" +#include "entity/save_state.h" class Room; diff --git a/src/room_transition.cpp b/src/level/room_transition.cpp similarity index 98% rename from src/room_transition.cpp rename to src/level/room_transition.cpp index 88dba02..5c4ff86 100644 --- a/src/room_transition.cpp +++ b/src/level/room_transition.cpp @@ -1,21 +1,21 @@ -#include "room_transition.h" -#include "boss_ai.h" -#include "boss_final.h" -#include "boss_pool.h" -#include "entity_familiar.h" -#include "entity_npc.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "game.h" -#include "grid_entity_door.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "npc_basement.h" -#include "platform.h" -#include "render_passes.h" -#include "room.h" -#include "seeds.h" +#include "level/room_transition.h" +#include "entity/boss/ai.h" +#include "entity/boss/final.h" +#include "entity/boss/pool.h" +#include "entity/familiar/familiar.h" +#include "entity/npc/npc.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "level/grid/door.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/basement.h" +#include "engine/platform.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/room_transition.h b/src/level/room_transition.h similarity index 97% rename from src/room_transition.h rename to src/level/room_transition.h index 9b9735e..0d334d2 100644 --- a/src/room_transition.h +++ b/src/level/room_transition.h @@ -1,8 +1,8 @@ #pragma once -#include "anm2.h" -#include "entity.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "entity/entity.h" +#include "engine/kage_graphics.h" #include // Lua's Direction, which entity_player.h defines. diff --git a/src/room_update.cpp b/src/level/room_update.cpp similarity index 99% rename from src/room_update.cpp rename to src/level/room_update.cpp index 105ad58..d0c40d1 100644 --- a/src/room_update.cpp +++ b/src/level/room_update.cpp @@ -1,27 +1,27 @@ -#include "npc_basement.h" -#include "boss_ai.h" -#include "boss_final.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity.h" -#include "grid_entity_door.h" -#include "grid_entity_pit.h" -#include "level.h" -#include "log.h" -#include "loot_list.h" -#include "manager.h" -#include "room.h" -#include "room_clear.h" -#include "room_grid.h" -#include "room_special.h" -#include "room_state.h" -#include "room_render.h" -#include "seeds.h" +#include "entity/npc/basement.h" +#include "entity/boss/ai.h" +#include "entity/boss/final.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/grid/door.h" +#include "level/grid/pit.h" +#include "level/level.h" +#include "engine/log.h" +#include "entity/pickup/loot_list.h" +#include "game/manager.h" +#include "level/room.h" +#include "level/room_clear.h" +#include "level/room_grid.h" +#include "level/room_special.h" +#include "level/room_state.h" +#include "level/room_render.h" +#include "engine/seeds.h" #include #include #include diff --git a/src/level_stage.cpp b/src/level/stage.cpp similarity index 98% rename from src/level_stage.cpp rename to src/level/stage.cpp index 901e1b3..2ad49ed 100644 --- a/src/level_stage.cpp +++ b/src/level/stage.cpp @@ -1,8 +1,8 @@ -#include "entity_player.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "room.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/room.h" #include #include diff --git a/src/stage_transition.cpp b/src/level/stage_transition.cpp similarity index 98% rename from src/stage_transition.cpp rename to src/level/stage_transition.cpp index 242f60e..1af2fcd 100644 --- a/src/stage_transition.cpp +++ b/src/level/stage_transition.cpp @@ -1,17 +1,17 @@ -#include "stage_transition.h" -#include "entity_effect.h" -#include "entity_list.h" -#include "entity_player.h" -#include "game.h" -#include "grid_entity.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "npc_ai.h" -#include "player_stats.h" -#include "render_passes.h" -#include "room.h" -#include "seeds.h" +#include "level/stage_transition.h" +#include "entity/effect/effect.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "entity/npc/ai.h" +#include "entity/player/stats.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "engine/seeds.h" #include #include diff --git a/src/stage_transition.h b/src/level/stage_transition.h similarity index 100% rename from src/stage_transition.h rename to src/level/stage_transition.h diff --git a/src/lua_api.cpp b/src/lua/api.cpp similarity index 99% rename from src/lua_api.cpp rename to src/lua/api.cpp index d59a5f2..53af9b9 100644 --- a/src/lua_api.cpp +++ b/src/lua/api.cpp @@ -1,4 +1,4 @@ -#include "lua_api.h" +#include "lua/api.h" #include "classes.h" // Pushes field name of the table at index without metamethods. diff --git a/src/lua_api.h b/src/lua/api.h similarity index 99% rename from src/lua_api.h rename to src/lua/api.h index 246318b..b8acf6e 100644 --- a/src/lua_api.h +++ b/src/lua/api.h @@ -1,6 +1,6 @@ #pragma once -#include "lua_engine.h" +#include "lua/engine.h" #include #include #include diff --git a/src/lua_api_bit_set128.cpp b/src/lua/api_bit_set128.cpp similarity index 99% rename from src/lua_api_bit_set128.cpp rename to src/lua/api_bit_set128.cpp index 0afc71a..8a6b4b4 100644 --- a/src/lua_api_bit_set128.cpp +++ b/src/lua/api_bit_set128.cpp @@ -1,5 +1,5 @@ #include "classes.h" -#include "lua_api.h" +#include "lua/api.h" #include using LuaBitSet = std::bitset<128>; diff --git a/src/lua_api_color.cpp b/src/lua/api_color.cpp similarity index 97% rename from src/lua_api_color.cpp rename to src/lua/api_color.cpp index 029d4df..8d005fc 100644 --- a/src/lua_api_color.cpp +++ b/src/lua/api_color.cpp @@ -1,7 +1,7 @@ #include "classes.h" -#include "anm2.h" -#include "fx_layers.h" -#include "lua_api.h" +#include "engine/anm2.h" +#include "engine/fx_layers.h" +#include "lua/api.h" #include // A Color property: a channel of the tint or the offset. diff --git a/src/lua_api_containers.cpp b/src/lua/api_containers.cpp similarity index 93% rename from src/lua_api_containers.cpp rename to src/lua/api_containers.cpp index 5fb70f5..19c59fc 100644 --- a/src/lua_api_containers.cpp +++ b/src/lua/api_containers.cpp @@ -1,9 +1,9 @@ #include "classes.h" -#include "entity_list.h" -#include "entity_player.h" -#include "lua_api.h" -#include "temporary_effects.h" -#include "weapon.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "lua/api.h" +#include "entity/player/temporary_effects.h" +#include "entity/weapon/weapon.h" #include // (004176f0, 0085e0c0) Registers the CppContainer namespace: EntityList, the entities Room:GetEntities hands out, diff --git a/src/lua_api_entities.cpp b/src/lua/api_entities.cpp similarity index 98% rename from src/lua_api_entities.cpp rename to src/lua/api_entities.cpp index 4327c91..c3f9218 100644 --- a/src/lua_api_entities.cpp +++ b/src/lua/api_entities.cpp @@ -1,19 +1,19 @@ #include "classes.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "boss_ai.h" -#include "entity_list.h" -#include "lua_api.h" -#include "path_finder.h" -#include "weapon.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "entity/boss/ai.h" +#include "entity/list.h" +#include "lua/api.h" +#include "level/path_finder.h" +#include "entity/weapon/weapon.h" #include // The range Lua's EntityPickup.ShopItemId keeps a written id in: anything below -1 becomes -2. diff --git a/src/lua_api_entity.cpp b/src/lua/api_entity.cpp similarity index 97% rename from src/lua_api_entity.cpp rename to src/lua/api_entity.cpp index c211e39..d738e30 100644 --- a/src/lua_api_entity.cpp +++ b/src/lua/api_entity.cpp @@ -1,16 +1,16 @@ #include "classes.h" -#include "entity.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "lua_api.h" +#include "entity/entity.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "lua/api.h" // The color Entity.Color reads for no entity. constexpr ColorMod COLOR_NO_ENTITY = {{0, 0, 0, 1}, {0, 0, 0, 0}, {0, 0, 0}}; diff --git a/src/lua_api_entity_player.cpp b/src/lua/api_entity_player.cpp similarity index 99% rename from src/lua_api_entity_player.cpp rename to src/lua/api_entity_player.cpp index 5b4b9f7..c37dbfc 100644 --- a/src/lua_api_entity_player.cpp +++ b/src/lua/api_entity_player.cpp @@ -1,16 +1,16 @@ #include "classes.h" -#include "active_items.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "game.h" -#include "item_config.h" -#include "log.h" -#include "lua_api.h" -#include "temporary_effects.h" -#include "weapon.h" +#include "entity/player/active_items.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "engine/log.h" +#include "lua/api.h" +#include "entity/player/temporary_effects.h" +#include "entity/weapon/weapon.h" // The QueueItemData flag Touched reads: the item was held before, so picking it up again gives no pickup effect. constexpr uint32_t QUEUE_ITEM_TOUCHED = 0x1; diff --git a/src/lua_api_game.cpp b/src/lua/api_game.cpp similarity index 97% rename from src/lua_api_game.cpp rename to src/lua/api_game.cpp index 69f328a..da4579a 100644 --- a/src/lua_api_game.cpp +++ b/src/lua/api_game.cpp @@ -1,27 +1,27 @@ #include "classes.h" -#include "boss_ai.h" -#include "entity_bomb.h" -#include "entity_effect_combat.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_tear.h" -#include "pocket_items.h" -#include "game.h" -#include "game_end.h" -#include "grid_entity_trap_door.h" -#include "hud.h" -#include "item_pool.h" -#include "lua_api.h" -#include "manager.h" -#include "music_manager.h" -#include "npc_basement.h" -#include "room.h" -#include "room_special.h" -#include "room_transition.h" -#include "seeds.h" -#include "sfx_manager.h" -#include "stage_transition.h" +#include "entity/boss/ai.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/combat.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/tear.h" +#include "entity/player/pocket_items.h" +#include "game/game.h" +#include "game/end.h" +#include "level/grid/trap_door.h" +#include "ui/hud.h" +#include "entity/pickup/item_pool.h" +#include "lua/api.h" +#include "game/manager.h" +#include "game/music_manager.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_special.h" +#include "level/room_transition.h" +#include "engine/seeds.h" +#include "game/sfx_manager.h" +#include "level/stage_transition.h" #include // The last stage the run's stage counters keep. diff --git a/src/lua_api_grid_entity.cpp b/src/lua/api_grid_entity.cpp similarity index 97% rename from src/lua_api_grid_entity.cpp rename to src/lua/api_grid_entity.cpp index e64d1b6..d7ec0fa 100644 --- a/src/lua_api_grid_entity.cpp +++ b/src/lua/api_grid_entity.cpp @@ -1,13 +1,13 @@ #include "classes.h" -#include "grid_entity.h" -#include "grid_entity_door.h" -#include "grid_entity_pit.h" -#include "grid_entity_poop.h" -#include "grid_entity_pressure_plate.h" -#include "grid_entity_rock.h" -#include "grid_entity_spikes.h" -#include "grid_entity_tnt.h" -#include "lua_api.h" +#include "level/grid/grid_entity.h" +#include "level/grid/door.h" +#include "level/grid/pit.h" +#include "level/grid/poop.h" +#include "level/grid/pressure_plate.h" +#include "level/grid/rock.h" +#include "level/grid/spikes.h" +#include "level/grid/tnt.h" +#include "lua/api.h" // Adds a To method casting a grid entity to a subclass, nil when it is not one. template diff --git a/src/lua_api_isaac.cpp b/src/lua/api_isaac.cpp similarity index 98% rename from src/lua_api_isaac.cpp rename to src/lua/api_isaac.cpp index 28ee586..1514e11 100644 --- a/src/lua_api_isaac.cpp +++ b/src/lua/api_isaac.cpp @@ -1,22 +1,22 @@ #include "classes.h" -#include "data.h" -#include "entity.h" -#include "entity_bomb.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_player.h" -#include "font.h" -#include "fx_layers.h" -#include "game.h" -#include "grid_entity.h" -#include "kage_input.h" -#include "lua_api.h" -#include "manager.h" -#include "menu_manager.h" -#include "npc_ai.h" -#include "platform.h" -#include "room.h" -#include "room_grid.h" +#include "engine/data.h" +#include "entity/entity.h" +#include "entity/weapon/bomb.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/player/player.h" +#include "engine/font.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "engine/kage_input.h" +#include "lua/api.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/npc/ai.h" +#include "engine/platform.h" +#include "level/room.h" +#include "level/room_grid.h" #include #include #include diff --git a/src/lua_api_item_config.cpp b/src/lua/api_item_config.cpp similarity index 99% rename from src/lua_api_item_config.cpp rename to src/lua/api_item_config.cpp index 4e3a201..43ed927 100644 --- a/src/lua_api_item_config.cpp +++ b/src/lua/api_item_config.cpp @@ -1,6 +1,6 @@ #include "classes.h" -#include "item_config.h" -#include "lua_api.h" +#include "entity/pickup/item_config.h" +#include "lua/api.h" // Registers ItemConfig.Item, a collectible, trinket or null item, and ItemConfig.Costume. static void item_register(lua_State* state) diff --git a/src/lua_api_rng.cpp b/src/lua/api_rng.cpp similarity index 94% rename from src/lua_api_rng.cpp rename to src/lua/api_rng.cpp index 6c22706..dd125bc 100644 --- a/src/lua_api_rng.cpp +++ b/src/lua/api_rng.cpp @@ -1,6 +1,6 @@ #include "classes.h" -#include "lua_api.h" -#include "seeds.h" +#include "lua/api.h" +#include "engine/seeds.h" // (008bbcf0) Registers Lua's RNG: a default seeded constructor and the game's RNG methods. void lua_api_rng_register(lua_State* state) diff --git a/src/lua_api_room.cpp b/src/lua/api_room.cpp similarity index 98% rename from src/lua_api_room.cpp rename to src/lua/api_room.cpp index bce597b..9920210 100644 --- a/src/lua_api_room.cpp +++ b/src/lua/api_room.cpp @@ -1,20 +1,20 @@ #include "classes.h" -#include "entity_knife.h" -#include "entity_npc.h" -#include "entity_slot.h" -#include "game.h" -#include "item_pool.h" -#include "grid_entity.h" -#include "grid_entity_door.h" -#include "level.h" -#include "lua_api.h" -#include "npc_basement.h" -#include "room.h" -#include "room_config.h" -#include "room_descriptor.h" -#include "room_clear.h" -#include "room_grid.h" -#include "room_special.h" +#include "entity/weapon/knife.h" +#include "entity/npc/npc.h" +#include "entity/pickup/slot.h" +#include "game/game.h" +#include "entity/pickup/item_pool.h" +#include "level/grid/grid_entity.h" +#include "level/grid/door.h" +#include "level/level.h" +#include "lua/api.h" +#include "entity/npc/basement.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_descriptor.h" +#include "level/room_clear.h" +#include "level/room_grid.h" +#include "level/room_special.h" #include // The frames KeepDoorsClosed holds the room uncleared for. diff --git a/src/lua_api_sprite.cpp b/src/lua/api_sprite.cpp similarity index 99% rename from src/lua_api_sprite.cpp rename to src/lua/api_sprite.cpp index ff6115e..9ff413f 100644 --- a/src/lua_api_sprite.cpp +++ b/src/lua/api_sprite.cpp @@ -1,7 +1,7 @@ #include "classes.h" -#include "anm2.h" -#include "font.h" -#include "lua_api.h" +#include "engine/anm2.h" +#include "engine/font.h" +#include "lua/api.h" // Registers Lua's Sprite, the game's ANM2: loading, playing and rendering an animation and its overlay, and its // offset, scale, rotation, color, flips and speed. Sprites scripts construct are destroyed with their userdata. diff --git a/src/lua_api_vector.cpp b/src/lua/api_vector.cpp similarity index 98% rename from src/lua_api_vector.cpp rename to src/lua/api_vector.cpp index 6f95da6..6710dbf 100644 --- a/src/lua_api_vector.cpp +++ b/src/lua/api_vector.cpp @@ -1,6 +1,6 @@ #include "classes.h" -#include "lua_api.h" -#include "npc_ai.h" +#include "lua/api.h" +#include "entity/npc/ai.h" // The vector with each axis clamped between the corners. static Vector vector_clamped(const Vector& vector, float minX, float minY, float maxX, float maxY) diff --git a/src/lua_callbacks.cpp b/src/lua/callbacks.cpp similarity index 98% rename from src/lua_callbacks.cpp rename to src/lua/callbacks.cpp index 331a80a..967c4ed 100644 --- a/src/lua_callbacks.cpp +++ b/src/lua/callbacks.cpp @@ -1,18 +1,18 @@ -#include "lua_engine.h" +#include "lua/engine.h" #include "classes.h" -#include "entity_bomb.h" -#include "entity_effect.h" -#include "entity_familiar.h" -#include "entity_knife.h" -#include "entity_laser.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_projectile.h" -#include "entity_tear.h" -#include "game.h" -#include "lua_api.h" -#include "room_config.h" +#include "entity/weapon/bomb.h" +#include "entity/effect/effect.h" +#include "entity/familiar/familiar.h" +#include "entity/weapon/knife.h" +#include "entity/weapon/laser.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/weapon/projectile.h" +#include "entity/weapon/tear.h" +#include "game/game.h" +#include "lua/api.h" +#include "level/room_config.h" constexpr int PILL_EFFECT_UNCHANGED = -1; diff --git a/src/lua_callbacks.h b/src/lua/callbacks.h similarity index 100% rename from src/lua_callbacks.h rename to src/lua/callbacks.h diff --git a/src/lua_engine.cpp b/src/lua/engine.cpp similarity index 98% rename from src/lua_engine.cpp rename to src/lua/engine.cpp index 352211b..d0de680 100644 --- a/src/lua_engine.cpp +++ b/src/lua/engine.cpp @@ -1,10 +1,10 @@ -#include "lua_engine.h" -#include "lua_api.h" +#include "lua/engine.h" +#include "lua/api.h" #include "classes.h" -#include "data.h" -#include "game.h" -#include "manager.h" -#include "platform.h" +#include "engine/data.h" +#include "game/game.h" +#include "game/manager.h" +#include "engine/platform.h" #include #include #include diff --git a/src/lua_engine.h b/src/lua/engine.h similarity index 99% rename from src/lua_engine.h rename to src/lua/engine.h index 4ecf46f..b38e8fb 100644 --- a/src/lua_engine.h +++ b/src/lua/engine.h @@ -1,6 +1,6 @@ #pragma once -#include "lua_callbacks.h" +#include "lua/callbacks.h" #include #include #include diff --git a/src/online_emotes.cpp b/src/online/emotes.cpp similarity index 98% rename from src/online_emotes.cpp rename to src/online/emotes.cpp index adfa42f..96917ca 100644 --- a/src/online_emotes.cpp +++ b/src/online/emotes.cpp @@ -1,7 +1,7 @@ -#include "online_emotes.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" +#include "online/emotes.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include #include diff --git a/src/online_emotes.h b/src/online/emotes.h similarity index 99% rename from src/online_emotes.h rename to src/online/emotes.h index 267dce0..a402706 100644 --- a/src/online_emotes.h +++ b/src/online/emotes.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include constexpr const char* ONLINE_EMOTES_ANM2 = "gfx/OnlineEmotes.anm2"; diff --git a/src/leaderboard.cpp b/src/online/leaderboard.cpp similarity index 98% rename from src/leaderboard.cpp rename to src/online/leaderboard.cpp index 6522113..051b253 100644 --- a/src/leaderboard.cpp +++ b/src/online/leaderboard.cpp @@ -1,10 +1,10 @@ -#include "leaderboard.h" -#include "fx_layers.h" -#include "game.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "render_passes.h" +#include "online/leaderboard.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/render_passes.h" #include #include diff --git a/src/leaderboard.h b/src/online/leaderboard.h similarity index 96% rename from src/leaderboard.h rename to src/online/leaderboard.h index 880f711..c761afd 100644 --- a/src/leaderboard.h +++ b/src/online/leaderboard.h @@ -1,8 +1,8 @@ #pragma once -#include "anm2.h" -#include "daily_challenge.h" -#include "score_sheet.h" +#include "engine/anm2.h" +#include "game/daily_challenge.h" +#include "ui/score_sheet.h" #include // What the leaderboard shows: a daily run's score breakdown, then the boards. diff --git a/src/netplay_manager.cpp b/src/online/netplay_manager.cpp similarity index 94% rename from src/netplay_manager.cpp rename to src/online/netplay_manager.cpp index add2721..a0395e8 100644 --- a/src/netplay_manager.cpp +++ b/src/online/netplay_manager.cpp @@ -1,7 +1,7 @@ -#include "netplay_manager.h" -#include "kage_input.h" -#include "log.h" -#include "platform.h" +#include "online/netplay_manager.h" +#include "engine/kage_input.h" +#include "engine/log.h" +#include "engine/platform.h" // 00906d60 Starts the netplay layer. Everything it set up is for a session: the streak, lobby popup and spinner sprites, // the version tags lobbies are matched by, the chat and its local profile, the mute list and the lobby listener. diff --git a/src/netplay_manager.h b/src/online/netplay_manager.h similarity index 100% rename from src/netplay_manager.h rename to src/online/netplay_manager.h diff --git a/src/online_stats_screen.cpp b/src/online/stats_screen.cpp similarity index 90% rename from src/online_stats_screen.cpp rename to src/online/stats_screen.cpp index fcdb400..f148d52 100644 --- a/src/online_stats_screen.cpp +++ b/src/online/stats_screen.cpp @@ -1,5 +1,5 @@ -#include "online_stats_screen.h" -#include "menu_manager.h" +#include "online/stats_screen.h" +#include "ui/menu/manager.h" constexpr const char* DEEDS_ANM2 = "gfx/ui/DeedsMenu.anm2"; constexpr const char* ANIMATION_PLAYER_CHARACTER = "PlayerCharacter"; diff --git a/src/online_stats_screen.h b/src/online/stats_screen.h similarity index 95% rename from src/online_stats_screen.h rename to src/online/stats_screen.h index 8e51c2e..8639df7 100644 --- a/src/online_stats_screen.h +++ b/src/online/stats_screen.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include constexpr int ONLINE_STATS_PLAYERS = 4; diff --git a/src/completion_widget.h b/src/ui/completion_widget.h similarity index 95% rename from src/completion_widget.h rename to src/ui/completion_widget.h index 3ef6da9..796c80c 100644 --- a/src/completion_widget.h +++ b/src/ui/completion_widget.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" // Whether the completion widget sits on the menus' paper or the pause screen's. enum CompletionStyle diff --git a/src/console.cpp b/src/ui/console.cpp similarity index 98% rename from src/console.cpp rename to src/ui/console.cpp index 724cec7..a232c63 100644 --- a/src/console.cpp +++ b/src/ui/console.cpp @@ -1,20 +1,20 @@ -#include "console.h" -#include "entity_config.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "font.h" -#include "game.h" -#include "item_config.h" -#include "kage_graphics.h" -#include "kage_input.h" -#include "level.h" -#include "lua_engine.h" -#include "manager.h" -#include "menu_manager.h" -#include "platform.h" -#include "render_passes.h" -#include "room.h" -#include "room_config.h" +#include "ui/console.h" +#include "entity/config.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "engine/font.h" +#include "game/game.h" +#include "entity/pickup/item_config.h" +#include "engine/kage_graphics.h" +#include "engine/kage_input.h" +#include "level/level.h" +#include "lua/engine.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/platform.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "level/room_config.h" #include #include #include diff --git a/src/console.h b/src/ui/console.h similarity index 100% rename from src/console.h rename to src/ui/console.h diff --git a/src/console_commands.cpp b/src/ui/console_commands.cpp similarity index 97% rename from src/console_commands.cpp rename to src/ui/console_commands.cpp index 421a6f7..ee4cd82 100644 --- a/src/console_commands.cpp +++ b/src/ui/console_commands.cpp @@ -1,34 +1,34 @@ -#include "anm2.h" -#include "console.h" -#include "entity_config.h" -#include "entity_factory.h" -#include "entity_familiar.h" -#include "entity_list.h" -#include "entity_npc.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_slot.h" -#include "game.h" -#include "grid_entity.h" -#include "hud.h" -#include "item_config.h" -#include "item_pool.h" -#include "kage_input.h" -#include "level.h" -#include "level_generator.h" -#include "lua_api.h" -#include "manager.h" -#include "mod_manager.h" -#include "npc_ai.h" -#include "persistent_game_data.h" -#include "platform.h" -#include "player_manager.h" -#include "room.h" -#include "room_config.h" -#include "room_grid.h" -#include "seeds.h" -#include "sfx_manager.h" -#include "texture_cache.h" +#include "engine/anm2.h" +#include "ui/console.h" +#include "entity/config.h" +#include "entity/factory.h" +#include "entity/familiar/familiar.h" +#include "entity/list.h" +#include "entity/npc/npc.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/pickup/slot.h" +#include "game/game.h" +#include "level/grid/grid_entity.h" +#include "ui/hud.h" +#include "entity/pickup/item_config.h" +#include "entity/pickup/item_pool.h" +#include "engine/kage_input.h" +#include "level/level.h" +#include "level/generator.h" +#include "lua/api.h" +#include "game/manager.h" +#include "game/mod_manager.h" +#include "entity/npc/ai.h" +#include "game/persistent_game_data.h" +#include "engine/platform.h" +#include "entity/player/manager.h" +#include "level/room.h" +#include "level/room_config.h" +#include "level/room_grid.h" +#include "engine/seeds.h" +#include "game/sfx_manager.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/cutscene.cpp b/src/ui/cutscene.cpp similarity index 98% rename from src/cutscene.cpp rename to src/ui/cutscene.cpp index 40c887f..b84e072 100644 --- a/src/cutscene.cpp +++ b/src/ui/cutscene.cpp @@ -1,15 +1,15 @@ -#include "cutscene.h" -#include "data.h" -#include "game.h" -#include "log.h" -#include "lua_engine.h" -#include "music_manager.h" -#include "nightmare_scene.h" -#include "persistent_game_data.h" -#include "manager.h" -#include "menu_manager.h" -#include "render_passes.h" -#include "texture_cache.h" +#include "ui/cutscene.h" +#include "engine/data.h" +#include "game/game.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/music_manager.h" +#include "ui/nightmare_scene.h" +#include "game/persistent_game_data.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/render_passes.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/cutscene.h b/src/ui/cutscene.h similarity index 97% rename from src/cutscene.h rename to src/ui/cutscene.h index 710b54f..4bdf542 100644 --- a/src/cutscene.h +++ b/src/ui/cutscene.h @@ -1,9 +1,9 @@ #pragma once -#include "anm2.h" -#include "font.h" -#include "platform.h" -#include "video_player.h" +#include "engine/anm2.h" +#include "engine/font.h" +#include "engine/platform.h" +#include "engine/video_player.h" #include #include #include diff --git a/src/formatted_text.cpp b/src/ui/formatted_text.cpp similarity index 98% rename from src/formatted_text.cpp rename to src/ui/formatted_text.cpp index d1dc78a..24059c2 100644 --- a/src/formatted_text.cpp +++ b/src/ui/formatted_text.cpp @@ -1,5 +1,5 @@ -#include "formatted_text.h" -#include "font.h" +#include "ui/formatted_text.h" +#include "engine/font.h" #include // The written newline the layout also breaks at: a backslash and an n. diff --git a/src/formatted_text.h b/src/ui/formatted_text.h similarity index 100% rename from src/formatted_text.h rename to src/ui/formatted_text.h diff --git a/src/generic_prompt.cpp b/src/ui/generic_prompt.cpp similarity index 99% rename from src/generic_prompt.cpp rename to src/ui/generic_prompt.cpp index 65e1379..db42eea 100644 --- a/src/generic_prompt.cpp +++ b/src/ui/generic_prompt.cpp @@ -1,7 +1,7 @@ -#include "generic_prompt.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/generic_prompt.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include #include diff --git a/src/generic_prompt.h b/src/ui/generic_prompt.h similarity index 98% rename from src/generic_prompt.h rename to src/ui/generic_prompt.h index d4a08b7..d21f410 100644 --- a/src/generic_prompt.h +++ b/src/ui/generic_prompt.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include diff --git a/src/hud.cpp b/src/ui/hud.cpp similarity index 99% rename from src/hud.cpp rename to src/ui/hud.cpp index 9d09150..bb2e89d 100644 --- a/src/hud.cpp +++ b/src/ui/hud.cpp @@ -1,18 +1,18 @@ -#include "hud.h" -#include "boss_pool.h" -#include "fx_layers.h" -#include "item_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "level.h" -#include "log.h" -#include "manager.h" -#include "minimap.h" -#include "platform.h" -#include "procedural_item_manager.h" -#include "render_passes.h" -#include "room.h" -#include "string_table.h" +#include "ui/hud.h" +#include "entity/boss/pool.h" +#include "engine/fx_layers.h" +#include "entity/pickup/item_pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "level/level.h" +#include "engine/log.h" +#include "game/manager.h" +#include "level/minimap.h" +#include "engine/platform.h" +#include "entity/pickup/procedural_item_manager.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "game/string_table.h" #include #include #include diff --git a/src/hud.h b/src/ui/hud.h similarity index 97% rename from src/hud.h rename to src/ui/hud.h index 7d4c5ae..88fb83e 100644 --- a/src/hud.h +++ b/src/ui/hud.h @@ -1,13 +1,13 @@ #pragma once -#include "anm2.h" -#include "font.h" -#include "fx_layers.h" -#include "item_info_hud.h" -#include "kage_graphics.h" -#include "player_hud.h" -#include "rich_text.h" -#include "stat_hud.h" +#include "engine/anm2.h" +#include "engine/font.h" +#include "engine/fx_layers.h" +#include "ui/item_info_hud.h" +#include "engine/kage_graphics.h" +#include "entity/player/hud.h" +#include "ui/rich_text.h" +#include "ui/stat_hud.h" #include #include #include diff --git a/src/info_display.cpp b/src/ui/info_display.cpp similarity index 99% rename from src/info_display.cpp rename to src/ui/info_display.cpp index d2ad101..e3be0fc 100644 --- a/src/info_display.cpp +++ b/src/ui/info_display.cpp @@ -1,9 +1,9 @@ -#include "info_display.h" -#include "entity_player.h" -#include "game.h" -#include "persistent_game_data.h" -#include "manager.h" -#include "data.h" +#include "ui/info_display.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "game/persistent_game_data.h" +#include "game/manager.h" +#include "engine/data.h" #include #include #include diff --git a/src/info_display.h b/src/ui/info_display.h similarity index 99% rename from src/info_display.h rename to src/ui/info_display.h index 1a9a207..eed2a12 100644 --- a/src/info_display.h +++ b/src/ui/info_display.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "stat_hud.h" +#include "ui/stat_hud.h" #include #include #include diff --git a/src/item_info_hud.cpp b/src/ui/item_info_hud.cpp similarity index 98% rename from src/item_info_hud.cpp rename to src/ui/item_info_hud.cpp index 6fb9313..be9dfa2 100644 --- a/src/item_info_hud.cpp +++ b/src/ui/item_info_hud.cpp @@ -1,17 +1,17 @@ -#include "item_info_hud.h" -#include "entity_config.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "game.h" -#include "info_display.h" -#include "item_pool.h" -#include "manager.h" -#include "menu_manager.h" -#include "persistent_game_data.h" -#include "popups.h" -#include "render_passes.h" -#include "room.h" -#include "room_path.h" +#include "ui/item_info_hud.h" +#include "entity/config.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "ui/info_display.h" +#include "entity/pickup/item_pool.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/persistent_game_data.h" +#include "ui/popups.h" +#include "engine/render_passes.h" +#include "level/room.h" +#include "level/room_path.h" #include #include #include diff --git a/src/item_info_hud.h b/src/ui/item_info_hud.h similarity index 95% rename from src/item_info_hud.h rename to src/ui/item_info_hud.h index 62026c9..c33af22 100644 --- a/src/item_info_hud.h +++ b/src/ui/item_info_hud.h @@ -1,9 +1,9 @@ #pragma once -#include "anm2.h" -#include "fx_layers.h" -#include "kage_graphics.h" -#include "rich_text.h" +#include "engine/anm2.h" +#include "engine/fx_layers.h" +#include "engine/kage_graphics.h" +#include "ui/rich_text.h" #include constexpr int POPUP_NONE = -1; diff --git a/src/menu_bestiary.cpp b/src/ui/menu/bestiary.cpp similarity index 99% rename from src/menu_bestiary.cpp rename to src/ui/menu/bestiary.cpp index 7a8dba2..a72e83a 100644 --- a/src/menu_bestiary.cpp +++ b/src/ui/menu/bestiary.cpp @@ -1,9 +1,9 @@ -#include "menu_bestiary.h" -#include "entity_npc.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "menu_options.h" +#include "ui/menu/bestiary.h" +#include "entity/npc/npc.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "ui/menu/options.h" #include #include diff --git a/src/menu_bestiary.h b/src/ui/menu/bestiary.h similarity index 98% rename from src/menu_bestiary.h rename to src/ui/menu/bestiary.h index fd3b398..f70077d 100644 --- a/src/menu_bestiary.h +++ b/src/ui/menu/bestiary.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include diff --git a/src/menu_challenge.cpp b/src/ui/menu/challenge.cpp similarity index 98% rename from src/menu_challenge.cpp rename to src/ui/menu/challenge.cpp index 3209aab..dce5812 100644 --- a/src/menu_challenge.cpp +++ b/src/ui/menu/challenge.cpp @@ -1,8 +1,8 @@ -#include "menu_challenge.h" -#include "fx_layers.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/menu/challenge.h" +#include "engine/fx_layers.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" constexpr const char* CHALLENGE_MENU_ANM2 = "gfx/ui/main menu/ChallengeMenu.anm2"; constexpr const char* CUSTOM_TAB_LAYER = "CustomTab"; diff --git a/src/menu_challenge.h b/src/ui/menu/challenge.h similarity index 96% rename from src/menu_challenge.h rename to src/ui/menu/challenge.h index 0ddb74d..a3fb7db 100644 --- a/src/menu_challenge.h +++ b/src/ui/menu/challenge.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" // The challenges menu (Menu_Challenge): the game's challenges on one scrolling sheet, each marked locked, open or done, // with the cursor on the selected one. Picking one starts it, or makes it a lobby's challenge when the lobby creation diff --git a/src/menu_character.cpp b/src/ui/menu/character.cpp similarity index 99% rename from src/menu_character.cpp rename to src/ui/menu/character.cpp index 6848a2c..9cf1eef 100644 --- a/src/menu_character.cpp +++ b/src/ui/menu/character.cpp @@ -1,13 +1,13 @@ -#include "menu_character.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "game.h" -#include "kage_input.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "persistent_game_data.h" -#include "texture_cache.h" +#include "ui/menu/character.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/kage_input.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/persistent_game_data.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/menu_character.h b/src/ui/menu/character.h similarity index 97% rename from src/menu_character.h rename to src/ui/menu/character.h index 6d46fe7..2570f2b 100644 --- a/src/menu_character.h +++ b/src/ui/menu/character.h @@ -1,9 +1,9 @@ #pragma once -#include "anm2.h" -#include "completion_widget.h" -#include "game.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "ui/completion_widget.h" +#include "game/game.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/menu_collection.cpp b/src/ui/menu/collection.cpp similarity index 98% rename from src/menu_collection.cpp rename to src/ui/menu/collection.cpp index a601b87..e261be8 100644 --- a/src/menu_collection.cpp +++ b/src/ui/menu/collection.cpp @@ -1,9 +1,9 @@ -#include "menu_collection.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "manager.h" -#include "menu_manager.h" -#include "render_passes.h" +#include "ui/menu/collection.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/render_passes.h" #include #include #include diff --git a/src/menu_collection.h b/src/ui/menu/collection.h similarity index 95% rename from src/menu_collection.h rename to src/ui/menu/collection.h index cf2556f..c85e266 100644 --- a/src/menu_collection.h +++ b/src/ui/menu/collection.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" #include // The collection menu (Menu_Collection): every collectible with a picture, 120 to a page, seen ones drawn from the diff --git a/src/menu_controller_select.cpp b/src/ui/menu/controller_select.cpp similarity index 96% rename from src/menu_controller_select.cpp rename to src/ui/menu/controller_select.cpp index ce1e775..3da7c5c 100644 --- a/src/menu_controller_select.cpp +++ b/src/ui/menu/controller_select.cpp @@ -1,8 +1,8 @@ -#include "menu_controller_select.h" -#include "fx_layers.h" -#include "kage_input.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/menu/controller_select.h" +#include "engine/fx_layers.h" +#include "engine/kage_input.h" +#include "game/manager.h" +#include "ui/menu/manager.h" constexpr const char* CONTROLLER_SELECT_ANM2 = "gfx/ui/main menu/ControllerSelectMenu.anm2"; constexpr std::string_view NAME_ELLIPSIS = ".."; diff --git a/src/menu_controller_select.h b/src/ui/menu/controller_select.h similarity index 96% rename from src/menu_controller_select.h rename to src/ui/menu/controller_select.h index 4cc4713..61d5bdf 100644 --- a/src/menu_controller_select.h +++ b/src/ui/menu/controller_select.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include diff --git a/src/menu_custom_challenge.cpp b/src/ui/menu/custom_challenge.cpp similarity index 94% rename from src/menu_custom_challenge.cpp rename to src/ui/menu/custom_challenge.cpp index 9bb6719..2f09c26 100644 --- a/src/menu_custom_challenge.cpp +++ b/src/ui/menu/custom_challenge.cpp @@ -1,9 +1,9 @@ -#include "menu_custom_challenge.h" -#include "fx_layers.h" -#include "manager.h" -#include "menu_challenge.h" -#include "menu_manager.h" -#include "menu_mods.h" +#include "ui/menu/custom_challenge.h" +#include "engine/fx_layers.h" +#include "game/manager.h" +#include "ui/menu/challenge.h" +#include "ui/menu/manager.h" +#include "ui/menu/mods.h" constexpr const char* CUSTOM_CHALLENGE_ANM2 = "gfx/ui/main menu/ChallengeMenuCustom.anm2"; constexpr int FIRST_MOD_CHALLENGE = CHALLENGE_COUNT; diff --git a/src/menu_custom_challenge.h b/src/ui/menu/custom_challenge.h similarity index 95% rename from src/menu_custom_challenge.h rename to src/ui/menu/custom_challenge.h index ab6ac37..0bc8478 100644 --- a/src/menu_custom_challenge.h +++ b/src/ui/menu/custom_challenge.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" // The mods' challenges menu (Menu_CustomChallenge, Rebirth's Menu_ModChallenges): a torn paper list of the challenges // mods added after the game's own, numbered from 1, with the cursor on the selected one. Picking one starts it. diff --git a/src/menu_cutscenes.cpp b/src/ui/menu/cutscenes.cpp similarity index 98% rename from src/menu_cutscenes.cpp rename to src/ui/menu/cutscenes.cpp index f99b327..6ddfd9a 100644 --- a/src/menu_cutscenes.cpp +++ b/src/ui/menu/cutscenes.cpp @@ -1,6 +1,6 @@ -#include "menu_cutscenes.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/menu/cutscenes.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include constexpr const char* CUTSCENES_ANM2 = "gfx/ui/main menu/EndingsMenu.anm2"; diff --git a/src/menu_cutscenes.h b/src/ui/menu/cutscenes.h similarity index 95% rename from src/menu_cutscenes.h rename to src/ui/menu/cutscenes.h index 0c764da..ec49e39 100644 --- a/src/menu_cutscenes.h +++ b/src/ui/menu/cutscenes.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" // The endings menu (Menu_Cutscenes): the 24 cutscenes on a 6 by 4 page, each a layer of its sprite, the seen ones // playable and the others drawn faded. Its construction and destruction are inlined in MenuManager's. diff --git a/src/menu_daily_challenge.cpp b/src/ui/menu/daily_challenge.cpp similarity index 99% rename from src/menu_daily_challenge.cpp rename to src/ui/menu/daily_challenge.cpp index 7ff9553..a96e86f 100644 --- a/src/menu_daily_challenge.cpp +++ b/src/ui/menu/daily_challenge.cpp @@ -1,8 +1,8 @@ -#include "menu_daily_challenge.h" -#include "fx_layers.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/menu/daily_challenge.h" +#include "engine/fx_layers.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include #include diff --git a/src/menu_daily_challenge.h b/src/ui/menu/daily_challenge.h similarity index 96% rename from src/menu_daily_challenge.h rename to src/ui/menu/daily_challenge.h index bb3929d..0c6dbe2 100644 --- a/src/menu_daily_challenge.h +++ b/src/ui/menu/daily_challenge.h @@ -1,8 +1,8 @@ #pragma once -#include "anm2.h" -#include "generic_prompt.h" -#include "leaderboard.h" +#include "engine/anm2.h" +#include "ui/generic_prompt.h" +#include "online/leaderboard.h" #include #include #include diff --git a/src/menu_game.cpp b/src/ui/menu/game.cpp similarity index 98% rename from src/menu_game.cpp rename to src/ui/menu/game.cpp index 389e0e2..0256593 100644 --- a/src/menu_game.cpp +++ b/src/ui/menu/game.cpp @@ -1,11 +1,11 @@ -#include "menu_game.h" -#include "fx_layers.h" -#include "game.h" -#include "game_state_player.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "render_passes.h" +#include "ui/menu/game.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "game/state_player.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/render_passes.h" #include #include #include diff --git a/src/menu_game.h b/src/ui/menu/game.h similarity index 94% rename from src/menu_game.h rename to src/ui/menu/game.h index a2cfe66..62a72a8 100644 --- a/src/menu_game.h +++ b/src/ui/menu/game.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" // The game menu's entries, top to bottom, by the frame of its cursor layer. enum GameMenuItem : int diff --git a/src/menu_key_config.cpp b/src/ui/menu/key_config.cpp similarity index 99% rename from src/menu_key_config.cpp rename to src/ui/menu/key_config.cpp index ecc46d4..6f12788 100644 --- a/src/menu_key_config.cpp +++ b/src/ui/menu/key_config.cpp @@ -1,7 +1,7 @@ -#include "menu_key_config.h" -#include "fx_layers.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/menu/key_config.h" +#include "engine/fx_layers.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include #include diff --git a/src/menu_key_config.h b/src/ui/menu/key_config.h similarity index 95% rename from src/menu_key_config.h rename to src/ui/menu/key_config.h index 4550c2b..c3313f0 100644 --- a/src/menu_key_config.h +++ b/src/ui/menu/key_config.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "kage_input.h" +#include "engine/anm2.h" +#include "engine/kage_input.h" // Whether the key config menu moves between its rows or waits for the key to bind to the selected one. enum KeyConfigState : int diff --git a/src/menu_manager.cpp b/src/ui/menu/manager.cpp similarity index 99% rename from src/menu_manager.cpp rename to src/ui/menu/manager.cpp index 9fa17d0..d1809b4 100644 --- a/src/menu_manager.cpp +++ b/src/ui/menu/manager.cpp @@ -1,10 +1,10 @@ -#include "menu_manager.h" -#include "fx_layers.h" -#include "game.h" -#include "kage_input.h" -#include "log.h" -#include "manager.h" -#include "render_passes.h" +#include "ui/menu/manager.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "engine/kage_input.h" +#include "engine/log.h" +#include "game/manager.h" +#include "engine/render_passes.h" #include #include diff --git a/src/menu_manager.h b/src/ui/menu/manager.h similarity index 91% rename from src/menu_manager.h rename to src/ui/menu/manager.h index cb94755..f57e4b9 100644 --- a/src/menu_manager.h +++ b/src/ui/menu/manager.h @@ -1,24 +1,24 @@ #pragma once -#include "anm2.h" -#include "kage_graphics.h" -#include "menu_bestiary.h" -#include "menu_challenge.h" -#include "menu_character.h" -#include "menu_collection.h" -#include "menu_controller_select.h" -#include "menu_custom_challenge.h" -#include "menu_cutscenes.h" -#include "menu_daily_challenge.h" -#include "menu_game.h" -#include "menu_key_config.h" -#include "menu_mods.h" -#include "menu_options.h" -#include "menu_save.h" -#include "menu_special_seeds.h" -#include "menu_stats.h" -#include "menu_title.h" -#include "seeds.h" +#include "engine/anm2.h" +#include "engine/kage_graphics.h" +#include "ui/menu/bestiary.h" +#include "ui/menu/challenge.h" +#include "ui/menu/character.h" +#include "ui/menu/collection.h" +#include "ui/menu/controller_select.h" +#include "ui/menu/custom_challenge.h" +#include "ui/menu/cutscenes.h" +#include "ui/menu/daily_challenge.h" +#include "ui/menu/game.h" +#include "ui/menu/key_config.h" +#include "ui/menu/mods.h" +#include "ui/menu/options.h" +#include "ui/menu/save.h" +#include "ui/menu/special_seeds.h" +#include "ui/menu/stats.h" +#include "ui/menu/title.h" +#include "engine/seeds.h" #include #include diff --git a/src/menu_mods.cpp b/src/ui/menu/mods.cpp similarity index 98% rename from src/menu_mods.cpp rename to src/ui/menu/mods.cpp index e71e10c..603ee2f 100644 --- a/src/menu_mods.cpp +++ b/src/ui/menu/mods.cpp @@ -1,7 +1,7 @@ -#include "menu_mods.h" -#include "fx_layers.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/menu/mods.h" +#include "engine/fx_layers.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include #include diff --git a/src/menu_mods.h b/src/ui/menu/mods.h similarity index 98% rename from src/menu_mods.h rename to src/ui/menu/mods.h index f2f4133..2712dd5 100644 --- a/src/menu_mods.h +++ b/src/ui/menu/mods.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include diff --git a/src/menu_options.cpp b/src/ui/menu/options.cpp similarity index 98% rename from src/menu_options.cpp rename to src/ui/menu/options.cpp index 782efc7..32b84be 100644 --- a/src/menu_options.cpp +++ b/src/ui/menu/options.cpp @@ -1,16 +1,16 @@ -#include "menu_options.h" -#include "entity_player.h" -#include "game.h" -#include "kage_input.h" -#include "log.h" -#include "lua_engine.h" -#include "key_configs.h" -#include "manager.h" -#include "pause_screen.h" -#include "menu_manager.h" -#include "persistent_game_data.h" -#include "render_passes.h" -#include "texture_cache.h" +#include "ui/menu/options.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/kage_input.h" +#include "engine/log.h" +#include "lua/engine.h" +#include "game/key_configs.h" +#include "game/manager.h" +#include "ui/pause_screen.h" +#include "ui/menu/manager.h" +#include "game/persistent_game_data.h" +#include "engine/render_passes.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/menu_options.h b/src/ui/menu/options.h similarity index 99% rename from src/menu_options.h rename to src/ui/menu/options.h index b430d9a..858d617 100644 --- a/src/menu_options.h +++ b/src/ui/menu/options.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include diff --git a/src/menu_save.cpp b/src/ui/menu/save.cpp similarity index 99% rename from src/menu_save.cpp rename to src/ui/menu/save.cpp index f083bc0..c4180e6 100644 --- a/src/menu_save.cpp +++ b/src/ui/menu/save.cpp @@ -1,9 +1,9 @@ -#include "menu_save.h" -#include "daily_challenge.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "persistent_game_data.h" +#include "ui/menu/save.h" +#include "game/daily_challenge.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "game/persistent_game_data.h" #include #include #include diff --git a/src/menu_save.h b/src/ui/menu/save.h similarity index 97% rename from src/menu_save.h rename to src/ui/menu/save.h index d987a1a..3ba318e 100644 --- a/src/menu_save.h +++ b/src/ui/menu/save.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "generic_prompt.h" +#include "engine/anm2.h" +#include "ui/generic_prompt.h" #include constexpr int SAVE_SLOT_COUNT = 3; diff --git a/src/menu_special_seeds.cpp b/src/ui/menu/special_seeds.cpp similarity index 99% rename from src/menu_special_seeds.cpp rename to src/ui/menu/special_seeds.cpp index 742b29d..c76b9d4 100644 --- a/src/menu_special_seeds.cpp +++ b/src/ui/menu/special_seeds.cpp @@ -1,9 +1,9 @@ -#include "menu_special_seeds.h" -#include "data.h" -#include "fx_layers.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/menu/special_seeds.h" +#include "engine/data.h" +#include "engine/fx_layers.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include #include diff --git a/src/menu_special_seeds.h b/src/ui/menu/special_seeds.h similarity index 98% rename from src/menu_special_seeds.h rename to src/ui/menu/special_seeds.h index ff2c702..400ddbe 100644 --- a/src/menu_special_seeds.h +++ b/src/ui/menu/special_seeds.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include #include diff --git a/src/menu_stats.cpp b/src/ui/menu/stats.cpp similarity index 99% rename from src/menu_stats.cpp rename to src/ui/menu/stats.cpp index ed2829c..8e01587 100644 --- a/src/menu_stats.cpp +++ b/src/ui/menu/stats.cpp @@ -1,8 +1,8 @@ -#include "menu_stats.h" -#include "data.h" -#include "manager.h" -#include "menu_manager.h" -#include "render_passes.h" +#include "ui/menu/stats.h" +#include "engine/data.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/render_passes.h" #include #include #include diff --git a/src/menu_stats.h b/src/ui/menu/stats.h similarity index 97% rename from src/menu_stats.h rename to src/ui/menu/stats.h index a7ff262..c5e6ba2 100644 --- a/src/menu_stats.h +++ b/src/ui/menu/stats.h @@ -1,7 +1,7 @@ #pragma once -#include "anm2.h" -#include "persistent_game_data.h" +#include "engine/anm2.h" +#include "game/persistent_game_data.h" #include #include #include diff --git a/src/menu_title.cpp b/src/ui/menu/title.cpp similarity index 97% rename from src/menu_title.cpp rename to src/ui/menu/title.cpp index c2a27c8..b273768 100644 --- a/src/menu_title.cpp +++ b/src/ui/menu/title.cpp @@ -1,6 +1,6 @@ -#include "menu_title.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/menu/title.h" +#include "game/manager.h" +#include "ui/menu/manager.h" constexpr const char* TITLE_ANM2 = "gfx/ui/main menu/TitleMenu.anm2"; constexpr std::string_view TITLE_SHEET_FOLDER = "gfx/ui/main menu/"; diff --git a/src/menu_title.h b/src/ui/menu/title.h similarity index 94% rename from src/menu_title.h rename to src/ui/menu/title.h index 5faaed7..c636caf 100644 --- a/src/menu_title.h +++ b/src/ui/menu/title.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" // The title screen (Menu_Title): the title drawing at its place on the menu sheet, on the sheet the save files have // earned. Its update and render are inlined in MenuManager's. diff --git a/src/nightmare_scene.cpp b/src/ui/nightmare_scene.cpp similarity index 97% rename from src/nightmare_scene.cpp rename to src/ui/nightmare_scene.cpp index 9f534b8..ea68a53 100644 --- a/src/nightmare_scene.cpp +++ b/src/ui/nightmare_scene.cpp @@ -1,25 +1,25 @@ -#include "nightmare_scene.h" -#include "data.h" -#include "game.h" -#include "log.h" -#include "cutscene.h" -#include "music_manager.h" -#include "persistent_game_data.h" -#include "manager.h" -#include "entity_config.h" -#include "entity_player.h" -#include "entity_factory.h" -#include "entity_pickup.h" -#include "item_config.h" -#include "kage_graphics.h" -#include "level.h" -#include "mod_manager.h" -#include "room.h" -#include "room_config.h" -#include "render_passes.h" -#include "menu_manager.h" -#include "seeds.h" -#include "texture_cache.h" +#include "ui/nightmare_scene.h" +#include "engine/data.h" +#include "game/game.h" +#include "engine/log.h" +#include "ui/cutscene.h" +#include "game/music_manager.h" +#include "game/persistent_game_data.h" +#include "game/manager.h" +#include "entity/config.h" +#include "entity/player/player.h" +#include "entity/factory.h" +#include "entity/pickup/pickup.h" +#include "entity/pickup/item_config.h" +#include "engine/kage_graphics.h" +#include "level/level.h" +#include "game/mod_manager.h" +#include "level/room.h" +#include "level/room_config.h" +#include "engine/render_passes.h" +#include "ui/menu/manager.h" +#include "engine/seeds.h" +#include "engine/texture_cache.h" #include #include #include diff --git a/src/nightmare_scene.h b/src/ui/nightmare_scene.h similarity index 98% rename from src/nightmare_scene.h rename to src/ui/nightmare_scene.h index 2c2c536..8cbcf9e 100644 --- a/src/nightmare_scene.h +++ b/src/ui/nightmare_scene.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include #include diff --git a/src/pause_screen.cpp b/src/ui/pause_screen.cpp similarity index 98% rename from src/pause_screen.cpp rename to src/ui/pause_screen.cpp index 129bd27..ca47591 100644 --- a/src/pause_screen.cpp +++ b/src/ui/pause_screen.cpp @@ -1,22 +1,22 @@ -#include "pause_screen.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "fx_layers.h" -#include "game.h" -#include "game_end.h" -#include "hud.h" -#include "mod_manager.h" -#include "render_passes.h" -#include "game_over.h" -#include "entity_config.h" -#include "item_pool.h" -#include "item_info_hud.h" -#include "kage_input.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "platform.h" -#include "room.h" +#include "ui/pause_screen.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "engine/fx_layers.h" +#include "game/game.h" +#include "game/end.h" +#include "ui/hud.h" +#include "game/mod_manager.h" +#include "engine/render_passes.h" +#include "game/over.h" +#include "entity/config.h" +#include "entity/pickup/item_pool.h" +#include "ui/item_info_hud.h" +#include "engine/kage_input.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/platform.h" +#include "level/room.h" #include constexpr const char* PAUSE_ANM2 = "gfx/ui/PauseScreen_small.anm2"; diff --git a/src/pause_screen.h b/src/ui/pause_screen.h similarity index 95% rename from src/pause_screen.h rename to src/ui/pause_screen.h index 950dcc2..6638eac 100644 --- a/src/pause_screen.h +++ b/src/ui/pause_screen.h @@ -1,12 +1,12 @@ #pragma once -#include "anm2.h" -#include "info_display.h" -#include "completion_widget.h" -#include "generic_prompt.h" -#include "kage_graphics.h" -#include "menu_options.h" -#include "rich_text.h" +#include "engine/anm2.h" +#include "ui/info_display.h" +#include "ui/completion_widget.h" +#include "ui/generic_prompt.h" +#include "engine/kage_graphics.h" +#include "ui/menu/options.h" +#include "ui/rich_text.h" #include // What the pause screen shows. The invite and player info pages are online only. diff --git a/src/popups.cpp b/src/ui/popups.cpp similarity index 99% rename from src/popups.cpp rename to src/ui/popups.cpp index 228f33f..762d5fe 100644 --- a/src/popups.cpp +++ b/src/ui/popups.cpp @@ -1,12 +1,12 @@ -#include "popups.h" -#include "data.h" -#include "entity_player.h" -#include "game.h" -#include "kage_input.h" -#include "manager.h" -#include "menu_manager.h" -#include "player_manager.h" -#include "render_passes.h" +#include "ui/popups.h" +#include "engine/data.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/kage_input.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "entity/player/manager.h" +#include "engine/render_passes.h" #include #include #include diff --git a/src/popups.h b/src/ui/popups.h similarity index 98% rename from src/popups.h rename to src/ui/popups.h index bed4779..5cc5903 100644 --- a/src/popups.h +++ b/src/ui/popups.h @@ -1,9 +1,9 @@ #pragma once -#include "anm2.h" -#include "font.h" -#include "kage_graphics.h" -#include "persistent_game_data.h" +#include "engine/anm2.h" +#include "engine/font.h" +#include "engine/kage_graphics.h" +#include "game/persistent_game_data.h" #include #include #include diff --git a/src/revive_player_menu.cpp b/src/ui/revive_player_menu.cpp similarity index 97% rename from src/revive_player_menu.cpp rename to src/ui/revive_player_menu.cpp index 2e63573..fc7615f 100644 --- a/src/revive_player_menu.cpp +++ b/src/ui/revive_player_menu.cpp @@ -1,10 +1,10 @@ -#include "revive_player_menu.h" -#include "entity_player.h" -#include "game.h" -#include "kage_input.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" +#include "ui/revive_player_menu.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "engine/kage_input.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" #include #include diff --git a/src/revive_player_menu.h b/src/ui/revive_player_menu.h similarity index 97% rename from src/revive_player_menu.h rename to src/ui/revive_player_menu.h index 0ec733e..1f143ac 100644 --- a/src/revive_player_menu.h +++ b/src/ui/revive_player_menu.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" // Where the co-op revive menu is: hidden, open for a controller, or closing for a few frames. enum ReviveMenuState : int diff --git a/src/rich_text.cpp b/src/ui/rich_text.cpp similarity index 98% rename from src/rich_text.cpp rename to src/ui/rich_text.cpp index a455372..2bcb0f6 100644 --- a/src/rich_text.cpp +++ b/src/ui/rich_text.cpp @@ -1,10 +1,10 @@ -#include "rich_text.h" -#include "console.h" -#include "item_config.h" -#include "log.h" -#include "manager.h" -#include "menu_manager.h" -#include "render_passes.h" +#include "ui/rich_text.h" +#include "ui/console.h" +#include "entity/pickup/item_config.h" +#include "engine/log.h" +#include "game/manager.h" +#include "ui/menu/manager.h" +#include "engine/render_passes.h" #include #include #include diff --git a/src/rich_text.h b/src/ui/rich_text.h similarity index 95% rename from src/rich_text.h rename to src/ui/rich_text.h index 1776b76..06ebf8b 100644 --- a/src/rich_text.h +++ b/src/ui/rich_text.h @@ -1,9 +1,9 @@ #pragma once -#include "anm2.h" -#include "font.h" -#include "fx_layers.h" -#include "kage_graphics.h" +#include "engine/anm2.h" +#include "engine/font.h" +#include "engine/fx_layers.h" +#include "engine/kage_graphics.h" #include #include #include diff --git a/src/score_sheet.cpp b/src/ui/score_sheet.cpp similarity index 98% rename from src/score_sheet.cpp rename to src/ui/score_sheet.cpp index e235219..6f80d60 100644 --- a/src/score_sheet.cpp +++ b/src/ui/score_sheet.cpp @@ -1,10 +1,10 @@ -#include "score_sheet.h" -#include "entity_pickup.h" -#include "entity_player.h" -#include "entity_text.h" -#include "game.h" -#include "log.h" -#include "room.h" +#include "ui/score_sheet.h" +#include "entity/pickup/pickup.h" +#include "entity/player/player.h" +#include "entity/text.h" +#include "game/game.h" +#include "engine/log.h" +#include "level/room.h" #include #include #include diff --git a/src/score_sheet.h b/src/ui/score_sheet.h similarity index 99% rename from src/score_sheet.h rename to src/ui/score_sheet.h index e9c0570..39c12ec 100644 --- a/src/score_sheet.h +++ b/src/ui/score_sheet.h @@ -1,7 +1,7 @@ #pragma once #include "classes.h" -#include "game_end.h" +#include "game/end.h" #include // A room the score counts: its type, whether it is a red room, and how much the floor still scores. diff --git a/src/stat_hud.cpp b/src/ui/stat_hud.cpp similarity index 98% rename from src/stat_hud.cpp rename to src/ui/stat_hud.cpp index 0681d98..34a879e 100644 --- a/src/stat_hud.cpp +++ b/src/ui/stat_hud.cpp @@ -1,8 +1,8 @@ -#include "stat_hud.h" -#include "entity_player.h" -#include "game.h" -#include "manager.h" -#include "room.h" +#include "ui/stat_hud.h" +#include "entity/player/player.h" +#include "game/game.h" +#include "game/manager.h" +#include "level/room.h" #include #include #include diff --git a/src/stat_hud.h b/src/ui/stat_hud.h similarity index 99% rename from src/stat_hud.h rename to src/ui/stat_hud.h index 8ec9670..f3ef2c1 100644 --- a/src/stat_hud.h +++ b/src/ui/stat_hud.h @@ -1,6 +1,6 @@ #pragma once -#include "anm2.h" +#include "engine/anm2.h" #include #include diff --git a/src/victory_run_prompt.cpp b/src/ui/victory_run_prompt.cpp similarity index 90% rename from src/victory_run_prompt.cpp rename to src/ui/victory_run_prompt.cpp index 0dd8e92..d95af15 100644 --- a/src/victory_run_prompt.cpp +++ b/src/ui/victory_run_prompt.cpp @@ -1,5 +1,5 @@ -#include "victory_run_prompt.h" -#include "generic_prompt.h" +#include "ui/victory_run_prompt.h" +#include "ui/generic_prompt.h" constexpr const char* VICTORY_RUN_PNG = "gfx/ui/Prompt_VictoryRun.png"; constexpr int VICTORY_RUN_LAYER = 2; diff --git a/src/victory_run_prompt.h b/src/ui/victory_run_prompt.h similarity index 100% rename from src/victory_run_prompt.h rename to src/ui/victory_run_prompt.h