Curation round 7: Game::Start, level generation, Room, Camera, the Entity hierarchy, Entity_Player, the run frame
Six agents took over Game::Start, Level::SetNextStage, BossPool, save_game_state, level generation to the first room (place_special_rooms, RoomDescriptor, load_room), Room, Camera, Entity/EntityList/EntityRef with a curated skeleton of every Entity_* subclass, Entity_Player, Game::Render, Manager::Update's run branch, RoomTransition, ItemInfoHUD and StatHUD. Integration wrote FirstTrinketOwner and room_shape_get_door_grid_index (checked against the decompile for every shape and slot) and folded the duplicated constants. A run now generates its floor, loads the start room and draws the HUD (under gdb); Isaac renders correctly when drawn, the room itself waits for Room::Render. 2479 functions taken over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
addd027977
commit
b85591bdf4
146 files changed
+20124
-200863
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "info_display.h"
|
||||
#include "entity_player.h"
|
||||
#include "game.h"
|
||||
#include "persistent_game_data.h"
|
||||
#include "manager.h"
|
||||
@@ -8,7 +9,6 @@
|
||||
#include <optional>
|
||||
|
||||
constexpr std::string_view DOCUMENT_TAG = "#document";
|
||||
constexpr uint32_t TRINKET_GOLDEN_FLAG = 0x8000;
|
||||
constexpr uint32_t PILL_HORSE_FLAG = 0x800;
|
||||
constexpr int RED_HEARTS_ALL = 24;
|
||||
|
||||
@@ -22,7 +22,6 @@ constexpr int DEFAULT_PILL_COUNT = 50;
|
||||
constexpr int PLAYER_FORM_NECROMANCER = 15;
|
||||
constexpr int COLLECTIBLE_NECRONOMICON = 35;
|
||||
constexpr int COLLECTIBLE_MISSING_PAGE_2 = 262;
|
||||
constexpr int TRINKET_MISSING_PAGE = 48;
|
||||
|
||||
// A group of info_display.xml: its element names and the kind of entry it fills.
|
||||
struct InfoDisplayGroup
|
||||
@@ -309,10 +308,10 @@ bool InfoDisplayEntry::is_line_visible(size_t lineIndex, Entity_Player& player,
|
||||
if (id == 0) return true;
|
||||
|
||||
InfoDisplayText& line = lines[lineIndex];
|
||||
auto isOwned = [&](int collectible) { return player.HasCollectible(collectible, 0) != 0; };
|
||||
auto isHeld = [&](int trinket) { return player.HasTrinket((uint32_t)trinket, 0) != 0; };
|
||||
if (!line.players.empty() && !is_listed(line.players, player._playerType)) return false;
|
||||
if (is_listed(line.notPlayers, player._playerType)) return false;
|
||||
auto isOwned = [&](int collectible) { return player.HasCollectible(collectible); };
|
||||
auto isHeld = [&](int trinket) { return player.HasTrinket((uint32_t)trinket); };
|
||||
if (!line.players.empty() && !is_listed(line.players, player.playerType)) return false;
|
||||
if (is_listed(line.notPlayers, player.playerType)) return false;
|
||||
if (!std::ranges::all_of(line.collectibles, isOwned) || std::ranges::any_of(line.notCollectibles, isOwned))
|
||||
return false;
|
||||
if (!std::ranges::all_of(line.trinkets, isHeld) || std::ranges::any_of(line.notTrinkets, isHeld)) return false;
|
||||
|
||||
Reference in new issue
Block a user