Curation round 6: boot finished, the run starts; HUD, pause screen, minimap, preloads, floor generation
Six agents took over OnlineEmotes (emote wheel), OnlineStatsScreen's deeds, VictoryRunPrompt, RevivePlayerMenu, HUD, PauseScreen, Minimap, PreloadManager, ProceduralItemManager, Game::LoadBossRushXml, GameState's loading, the menu loose ends, Manager::StartNewGame, LevelGenerator and Level (Game now derives from Level). Integration: completion_widget.h breaks an include loop, call sites moved to the new APIs. --mute (main.cpp) keeps the mixer running at zero gain. build/isaac reaches the main menu by itself (input skips the intro); under gdb, picking a character calls StartNewGame and stops at Game::Start. 1611 functions taken over, boot path 287/615. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fed6918a10
commit
addd027977
94 files changed
+7453
-43389
No files matched your search
+19
-50
@@ -5,10 +5,19 @@
|
||||
#include "console.h"
|
||||
#include "deathmatch_manager.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 "preload_manager.h"
|
||||
#include "procedural_item_manager.h"
|
||||
#include "revive_player_menu.h"
|
||||
#include "room_config.h"
|
||||
#include "score_sheet.h"
|
||||
#include "seeds.h"
|
||||
@@ -19,10 +28,6 @@
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
constexpr int ROOM_GRID_SIZE = 507;
|
||||
constexpr int OFF_GRID_ROOM_COUNT = 20;
|
||||
constexpr int ROOM_LIST_SIZE = ROOM_GRID_SIZE + OFF_GRID_ROOM_COUNT;
|
||||
constexpr int GREED_WAVE_SLOTS = 12;
|
||||
constexpr int BACKWARDS_STAGE_COUNT = 7;
|
||||
constexpr int GLOWING_HOURGLASS_SLOTS = 2;
|
||||
constexpr int GIANTBOOK_ENTRY_COUNT = 48;
|
||||
@@ -132,66 +137,30 @@ struct ErasedEnemy
|
||||
int variant = 0;
|
||||
};
|
||||
|
||||
// The run (g_game): the floor and its rooms (the front of the class is Rebirth's Level), the configs and pools a run
|
||||
// The run (g_game): the floor and its rooms (Level, the front of the class), the configs and pools a run
|
||||
// draws from, the UI overlays and menus of a run, and the screen effects, counters and history of the run so far.
|
||||
// Members of classes not taken over yet keep their generated types and start zeroed.
|
||||
// The render surfaces were file globals of the original, created once by the first Game.
|
||||
// The giant book and boss overlay tables live in the item and boss overlays of the original, which classes.h holds as
|
||||
// bytes. They move there with those classes' takeovers.
|
||||
class Game
|
||||
class Game : public Level
|
||||
{
|
||||
public:
|
||||
std::array<RoomDescriptor, ROOM_LIST_SIZE> roomList{};
|
||||
std::array<int, ROOM_GRID_SIZE> roomMap{};
|
||||
std::array<uint32_t, GREED_WAVE_SLOTS> greedWaveSeeds{};
|
||||
std::array<BackwardsStageDesc, BACKWARDS_STAGE_COUNT> backwardsStages{};
|
||||
std::vector<EntitySaveState> myosotisPickups;
|
||||
std::unique_ptr<Room> room;
|
||||
int* currentRoomMap = nullptr;
|
||||
RNG devilAngelRoomRNG = RNG_DEFAULT;
|
||||
RNG generationRNG = RNG_DEFAULT;
|
||||
Vector dungeonReturnPosition{};
|
||||
Vector mamaMegaPosition{};
|
||||
float angelRoomChance = 0;
|
||||
int bombPickupsSpawned = 0;
|
||||
int currentDimensionIdx = 0;
|
||||
int currentRoomIdx = 0;
|
||||
int dungeonReturnRoomIndex = 0;
|
||||
int enterDoor = 0;
|
||||
int greedLastBeatenWave = 0;
|
||||
int greedLastPaidWave = 0;
|
||||
int greedModeWave = 0;
|
||||
int greedWavesClearedWithoutRedHeartDamage = 0;
|
||||
int lastBossRoomListIdx = 0;
|
||||
int lastRoomDimensionIdx = 0;
|
||||
int lastRoomIdx = 0;
|
||||
int leaveDoor = 0;
|
||||
int nbRooms = 0;
|
||||
int startingRoomIdx = 0;
|
||||
uint32_t curses = 0;
|
||||
uint32_t dungeonPlacementSeed = 0;
|
||||
uint32_t greedModeTreasureRoomIdx = 0;
|
||||
uint32_t levelStateFlags = 0;
|
||||
uint32_t stage = 0;
|
||||
uint32_t stageType = 0;
|
||||
bool isBossChallenge = false;
|
||||
bool isCanSeeEverything = false;
|
||||
bool isDevilRoomDisabled = false;
|
||||
bool isHeartPicked = false;
|
||||
bool isLevelGenerating = false;
|
||||
|
||||
RoomConfig roomConfig;
|
||||
ItemPool itemPool;
|
||||
Seeds seedEffects;
|
||||
Console console;
|
||||
std::unique_ptr<EntityFactory> entityFactory = std::make_unique<EntityFactory>();
|
||||
PreloadManager preloadManager{};
|
||||
PreloadManager preloadManager;
|
||||
BossPool bossPool{};
|
||||
PlayerManager playerManager{};
|
||||
Ambush ambush{};
|
||||
DeathmatchManager deathmatchManager{};
|
||||
DailyChallenge dailyChallenge{};
|
||||
ProceduralItemManager proceduralItemManager{};
|
||||
ProceduralItemManager proceduralItemManager;
|
||||
std::array<GlowingHourglassState, GLOWING_HOURGLASS_SLOTS> glowingHourglassStates{};
|
||||
std_vector onlinePlayerStats{};
|
||||
std::array<CoopAward, COOP_AWARD_COUNT> coopAwards;
|
||||
@@ -207,15 +176,15 @@ public:
|
||||
std::array<BossOverlayEntry, BOSS_OVERLAY_COUNT> bossOverlayEntries;
|
||||
GameOver gameOver{};
|
||||
Leaderboard leaderboard{};
|
||||
HUD hud{};
|
||||
PauseScreen pauseScreen{};
|
||||
RevivePlayerMenu revivePlayerMenu{};
|
||||
OnlineStatsScreen onlineStatsScreen{};
|
||||
Minimap minimap{};
|
||||
HUD hud;
|
||||
PauseScreen pauseScreen;
|
||||
RevivePlayerMenu revivePlayerMenu;
|
||||
OnlineStatsScreen onlineStatsScreen;
|
||||
Minimap minimap;
|
||||
ScoreSheet scoreSheet;
|
||||
GenericPrompt genericPrompt{};
|
||||
DebugRenderer debugRenderer{};
|
||||
OnlineEmotes emotes{};
|
||||
EmoteWheel emoteWheel;
|
||||
ANM2 completionWidgetSprite;
|
||||
|
||||
KAGE::Graphics::ImagePtr giantBookClickerImage;
|
||||
|
||||
Reference in new issue
Block a user