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
@@ -0,0 +1,536 @@
|
||||
#include "entity_npc.h"
|
||||
#include "game.h"
|
||||
#include "room.h"
|
||||
#include "log.h"
|
||||
|
||||
constexpr int ENTITY_EXORCIST = 832;
|
||||
|
||||
// 006c4ac0 Remembers where it was, and keeps the Exorcist's room in its state while it lives.
|
||||
void Entity_NPC::PreUpdate()
|
||||
{
|
||||
prevPosition = pos;
|
||||
prevVelocity = velocity;
|
||||
if (type == ENTITY_EXORCIST && variant == 0 && !isDead) g_game->room->isExorcistActive = true;
|
||||
}
|
||||
|
||||
// 006b8f00 Removes it, and the Dark Esau with it if it is the one that holds him.
|
||||
void Entity_NPC::Remove()
|
||||
{
|
||||
if (type == ENTITY_DARK_ESAU && variant == 0 && child) child->Remove();
|
||||
Entity::Remove();
|
||||
}
|
||||
|
||||
// 006b8450 Whether it holds the doors shut: one that can, unless it became friendly.
|
||||
bool Entity_NPC::CanShutDoors()
|
||||
{
|
||||
return isCanShutDoors && !IsFriendly();
|
||||
}
|
||||
|
||||
// 006b8470
|
||||
bool Entity_NPC::IsBoss()
|
||||
{
|
||||
return isBoss;
|
||||
}
|
||||
|
||||
// 006a8240 Forgets where its pathfinder was taking it.
|
||||
void Entity_NPC::ResetPathFinderTarget()
|
||||
{
|
||||
pathfinder._movementTarget = {};
|
||||
pathfinder._moveDirection = {};
|
||||
}
|
||||
|
||||
// 006d6610 Scales it, shrinking included.
|
||||
void Entity_NPC::SetScale(float newScale)
|
||||
{
|
||||
scale = newScale;
|
||||
float spriteScale = newScale * shrinkStatus1;
|
||||
sprite.scale = vector_make(spriteScale, spriteScale);
|
||||
}
|
||||
|
||||
// The rest of Entity_NPC is not reconstructed yet.
|
||||
|
||||
// 006b8b20
|
||||
void Entity_NPC::Init(int, int, int, uint32_t)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Init 006b8b20");
|
||||
}
|
||||
|
||||
// 006c4b30
|
||||
void Entity_NPC::Update()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Update 006c4b30");
|
||||
}
|
||||
|
||||
// 006d2b50
|
||||
void Entity_NPC::Interpolate()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Interpolate 006d2b50");
|
||||
}
|
||||
|
||||
// 006d2e50
|
||||
void Entity_NPC::Render(const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Render 006d2e50");
|
||||
}
|
||||
|
||||
// 006d4840
|
||||
bool Entity_NPC::RenderShadowLayer(const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::RenderShadowLayer 006d4840");
|
||||
}
|
||||
|
||||
// 006d60a0
|
||||
bool Entity_NPC::TakeDamage(float, uint64_t, const EntityRef&, int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::TakeDamage 006d60a0");
|
||||
}
|
||||
|
||||
// 006be6f0
|
||||
void Entity_NPC::Kill(const EntityRef&)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Kill 006be6f0");
|
||||
}
|
||||
|
||||
// 006b8f30
|
||||
void Entity_NPC::ClearReferences()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::ClearReferences 006b8f30");
|
||||
}
|
||||
|
||||
// 006d9440
|
||||
bool Entity_NPC::TryThrow(const EntityRef&, const Vector&, float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::TryThrow 006d9440");
|
||||
}
|
||||
|
||||
// 006d48a0
|
||||
Vector Entity_NPC::GetForwardVector()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::GetForwardVector 006d48a0");
|
||||
}
|
||||
|
||||
// 006cd410
|
||||
bool Entity_NPC::HandleCollision(Entity*, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::HandleCollision 006cd410");
|
||||
}
|
||||
|
||||
// 006c1100
|
||||
void Entity_NPC::ResetColor()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::ResetColor 006c1100");
|
||||
}
|
||||
|
||||
// 006bb790
|
||||
void Entity_NPC::LoadEntityConfig()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::LoadEntityConfig 006bb790");
|
||||
}
|
||||
|
||||
// 00447770
|
||||
Entity_NPC* Entity_NPC::ParentNPC()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::ParentNPC 00447770");
|
||||
}
|
||||
|
||||
// 004567e0
|
||||
Entity_NPC* Entity_NPC::ChildNPC()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::ChildNPC 004567e0");
|
||||
}
|
||||
|
||||
// 004b92e0
|
||||
void Entity_NPC::Hornfel_UpdateAI()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Hornfel_UpdateAI 004b92e0");
|
||||
}
|
||||
|
||||
// 004bb0e0
|
||||
void Entity_NPC::Hornfel_UpdateFrame()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Hornfel_UpdateFrame 004bb0e0");
|
||||
}
|
||||
|
||||
// 004cde30
|
||||
void Entity_NPC::update_physics()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::update_physics 004cde30");
|
||||
}
|
||||
|
||||
// 004ce120
|
||||
void Entity_NPC::apply_velocity(char)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::apply_velocity 004ce120");
|
||||
}
|
||||
|
||||
// 004ce6d0
|
||||
void Entity_NPC::update_move_direction_anim()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::update_move_direction_anim 004ce6d0");
|
||||
}
|
||||
|
||||
// 004cf030
|
||||
void Entity_NPC::SetMinecartPosVel(const Vector&, const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::SetMinecartPosVel 004cf030");
|
||||
}
|
||||
|
||||
// 004cf120
|
||||
void Entity_NPC::MinecartUpdateChild(Entity*)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::MinecartUpdateChild 004cf120");
|
||||
}
|
||||
|
||||
// 004e8fa0
|
||||
void Entity_NPC::UpdateCordChain(bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::UpdateCordChain 004e8fa0");
|
||||
}
|
||||
|
||||
// 004e9b10
|
||||
void Entity_NPC::render_overlay(const Vector&, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::render_overlay 004e9b10");
|
||||
}
|
||||
|
||||
// 00548f30
|
||||
int Entity_NPC::FindTargetPit(const Vector&, const Vector&, uint32_t)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::FindTargetPit 00548f30");
|
||||
}
|
||||
|
||||
// 0055cef0
|
||||
Entity_NPC* Entity_NPC::ThrowStrider(const Vector&, Entity*, const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::ThrowStrider 0055cef0");
|
||||
}
|
||||
|
||||
// 00565680
|
||||
void Entity_NPC::render_v1_layer_frames()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::render_v1_layer_frames 00565680");
|
||||
}
|
||||
|
||||
// 0059bed0
|
||||
void Entity_NPC::RenderSegmentLink(const Vector&, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::RenderSegmentLink 0059bed0");
|
||||
}
|
||||
|
||||
// 0059e390
|
||||
void Entity_NPC::CreateBling()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::CreateBling 0059e390");
|
||||
}
|
||||
|
||||
// 0059e4c0
|
||||
void Entity_NPC::CreateGoldParticles(uint32_t)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::CreateGoldParticles 0059e4c0");
|
||||
}
|
||||
|
||||
// 0060d140
|
||||
void Entity_NPC::set_entity_ptr_f54(Entity*)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::set_entity_ptr_f54 0060d140");
|
||||
}
|
||||
|
||||
// 006b5e20
|
||||
void Entity_NPC::hold_set(int, const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::hold_set 006b5e20");
|
||||
}
|
||||
|
||||
// 006b64d0
|
||||
Entity_Effect* Entity_NPC::MakeSplat(float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::MakeSplat 006b64d0");
|
||||
}
|
||||
|
||||
// 006b6830
|
||||
Entity_Effect* Entity_NPC::MakeBloodCloud(const Vector&, const ColorMod&)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::MakeBloodCloud 006b6830");
|
||||
}
|
||||
|
||||
// 006b9910
|
||||
bool Entity_NPC::TryForceTarget(Entity*, int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::TryForceTarget 006b9910");
|
||||
}
|
||||
|
||||
// 006b99e0
|
||||
float Entity_NPC::compute_speed_multiplier()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::compute_speed_multiplier 006b99e0");
|
||||
}
|
||||
|
||||
// 006baf40
|
||||
void Entity_NPC::load_graphics(uint8_t)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::load_graphics 006baf40");
|
||||
}
|
||||
|
||||
// 006be760
|
||||
void Entity_NPC::KillUnique()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::KillUnique 006be760");
|
||||
}
|
||||
|
||||
// 006be840
|
||||
Entity* Entity_NPC::GetPlayerTarget()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::GetPlayerTarget 006be840");
|
||||
}
|
||||
|
||||
// 006bec40
|
||||
Vector Entity_NPC::CalcTargetPosition(float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::CalcTargetPosition 006bec40");
|
||||
}
|
||||
|
||||
// 006c04b0
|
||||
void Entity_NPC::UpdateDirtColor(uint8_t)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::UpdateDirtColor 006c04b0");
|
||||
}
|
||||
|
||||
// 006c07e0
|
||||
uint8_t Entity_NPC::Redirect(int*, int*)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Redirect 006c07e0");
|
||||
}
|
||||
|
||||
// 006c0f30
|
||||
void Entity_NPC::Morph(int, int, int, int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::Morph 006c0f30");
|
||||
}
|
||||
|
||||
// 006c1ac0
|
||||
void* Entity_NPC::shopkeeper_get_loot(void*, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::shopkeeper_get_loot 006c1ac0");
|
||||
}
|
||||
|
||||
// 006c2750
|
||||
Entity_NPC* Entity_NPC::ThrowSpider(const Vector&, Entity*, Vector, bool, float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::ThrowSpider 006c2750");
|
||||
}
|
||||
|
||||
// 006ca930
|
||||
void Entity_NPC::update_frozen()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::update_frozen 006ca930");
|
||||
}
|
||||
|
||||
// 006cb2a0
|
||||
void Entity_NPC::fire_projectile_from_params(Entity_Projectile*)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::fire_projectile_from_params 006cb2a0");
|
||||
}
|
||||
|
||||
// 006d0300
|
||||
void Entity_NPC::SetBossColorIdx(int, int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::SetBossColorIdx 006d0300");
|
||||
}
|
||||
|
||||
// 006d03e0
|
||||
void Entity_NPC::MakeChampion(uint32_t, int, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::MakeChampion 006d03e0");
|
||||
}
|
||||
|
||||
// 006d0c20
|
||||
void Entity_NPC::SetRef_bec(Entity*)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::SetRef_bec 006d0c20");
|
||||
}
|
||||
|
||||
// 006d0c60
|
||||
void* Entity_NPC::QueryNPCsType(void*, int, int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::QueryNPCsType 006d0c60");
|
||||
}
|
||||
|
||||
// 006d0dd0
|
||||
EntityList* Entity_NPC::QueryNPCsGroup(EntityList*, int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::QueryNPCsGroup 006d0dd0");
|
||||
}
|
||||
|
||||
// 006d1580
|
||||
void* Entity_NPC::fireplace_get_loot(void*, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::fireplace_get_loot 006d1580");
|
||||
}
|
||||
|
||||
// 006d4a00
|
||||
bool Entity_NPC::CanBeDamagedFromVelocity(Vector)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::CanBeDamagedFromVelocity 006d4a00");
|
||||
}
|
||||
|
||||
// 006d4db0
|
||||
bool Entity_NPC::CanReroll()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::CanReroll 006d4db0");
|
||||
}
|
||||
|
||||
// 006d4e00
|
||||
void Entity_NPC::PlayDeathEffects()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::PlayDeathEffects 006d4e00");
|
||||
}
|
||||
|
||||
// 006d5400
|
||||
void Entity_NPC::trigger_kill_item_effects()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::trigger_kill_item_effects 006d5400");
|
||||
}
|
||||
|
||||
// 006d6ba0
|
||||
void Entity_NPC::PlaySound(int, float, int, uint8_t, float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::PlaySound 006d6ba0");
|
||||
}
|
||||
|
||||
// 006d6c20
|
||||
int Entity_NPC::GetAliveEnemyCount()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::GetAliveEnemyCount 006d6c20");
|
||||
}
|
||||
|
||||
// 006d6d20
|
||||
uint32_t Entity_NPC::on_player_damaged()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::on_player_damaged 006d6d20");
|
||||
}
|
||||
|
||||
// 006d6d80
|
||||
void Entity_NPC::room_enter()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::room_enter 006d6d80");
|
||||
}
|
||||
|
||||
// 006d7010
|
||||
void Entity_NPC::spawn_damage_numbers()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::spawn_damage_numbers 006d7010");
|
||||
}
|
||||
|
||||
// 006d7230
|
||||
void Entity_NPC::update_damage_history()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::update_damage_history 006d7230");
|
||||
}
|
||||
|
||||
// 006d7520
|
||||
void Entity_NPC::update_blood_guide_gibs(float*)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::update_blood_guide_gibs 006d7520");
|
||||
}
|
||||
|
||||
// 006d81c0
|
||||
void Entity_NPC::ClearDequeRefs()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::ClearDequeRefs 006d81c0");
|
||||
}
|
||||
|
||||
// 006d8260
|
||||
bool Entity_NPC::IsControllerActionPressed(int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::IsControllerActionPressed 006d8260");
|
||||
}
|
||||
|
||||
// 006d8290
|
||||
bool Entity_NPC::IsControllerActionTriggered(int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::IsControllerActionTriggered 006d8290");
|
||||
}
|
||||
|
||||
// 006d82d0
|
||||
Vector Entity_NPC::GetControllerInput(float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::GetControllerInput 006d82d0");
|
||||
}
|
||||
|
||||
// 006d85a0
|
||||
Vector Entity_NPC::GetControllerMovementInput(float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::GetControllerMovementInput 006d85a0");
|
||||
}
|
||||
|
||||
// 006d88b0
|
||||
void Entity_NPC::TransferControl(Entity_NPC*)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::TransferControl 006d88b0");
|
||||
}
|
||||
|
||||
// 006d8b20
|
||||
void Entity_NPC::SpawnControlTarget(int, float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::SpawnControlTarget 006d8b20");
|
||||
}
|
||||
|
||||
// 006d8cf0
|
||||
void Entity_NPC::ClearChild()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::ClearChild 006d8cf0");
|
||||
}
|
||||
|
||||
// 006d8d30
|
||||
Vector Entity_NPC::GetAimTargetPosition()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::GetAimTargetPosition 006d8d30");
|
||||
}
|
||||
|
||||
// 006d8d80
|
||||
bool Entity_NPC::is_controller_input_idle()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::is_controller_input_idle 006d8d80");
|
||||
}
|
||||
|
||||
// 006d8e40
|
||||
void Entity_NPC::UpdateChargeBar(float, float, float, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::UpdateChargeBar 006d8e40");
|
||||
}
|
||||
|
||||
// 006d9050
|
||||
void Entity_NPC::UpdateControllerMovement(bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::UpdateControllerMovement 006d9050");
|
||||
}
|
||||
|
||||
// 006d90e0
|
||||
void Entity_NPC::UpdateChildEffectPosition(bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::UpdateChildEffectPosition 006d90e0");
|
||||
}
|
||||
|
||||
// 006d97e0
|
||||
uint8_t Entity_NPC::split(float, const EntityRef&, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::split 006d97e0");
|
||||
}
|
||||
|
||||
// 006da530
|
||||
void Entity_NPC::UpdatePickupGhosts()
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::UpdatePickupGhosts 006da530");
|
||||
}
|
||||
|
||||
// 0096ce90
|
||||
void Entity_NPC::SetAimAngle(float)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::SetAimAngle 0096ce90");
|
||||
}
|
||||
|
||||
// 009a8b90
|
||||
void Entity_NPC::render_debug(float*, int)
|
||||
{
|
||||
reconstruction_missing("Entity_NPC::render_debug 009a8b90");
|
||||
}
|
||||
Reference in new issue
Block a user