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,230 @@
|
||||
#include "entity_laser.h"
|
||||
#include "log.h"
|
||||
|
||||
// The laser subtypes that draw a ring.
|
||||
constexpr int LASER_SUBTYPE_RING_FIRST = 1;
|
||||
constexpr int LASER_SUBTYPE_RING_LAST = 3;
|
||||
|
||||
// 0096ced0 Sorts by its depth, ignoring the sorting layer.
|
||||
int Entity_Laser::GetRenderZ()
|
||||
{
|
||||
return render_z_get(renderDepthOffset + pos.y);
|
||||
}
|
||||
|
||||
// 0097e7a0 Whether EntityFactory may reuse it: never before its first update.
|
||||
bool Entity_Laser::CanOverwrite()
|
||||
{
|
||||
return !HasEntityFlags(FLAG_DONT_OVERWRITE) && !isFirstUpdate;
|
||||
}
|
||||
|
||||
// 005ccc20 Collides with nothing it reacts to, letting the collision through.
|
||||
bool Entity_Laser::HandleCollision(Entity*, bool)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// 00435f50 Whether it is a ring laser (Tech X and the like).
|
||||
bool Entity_Laser::IsCircleLaser()
|
||||
{
|
||||
return subtype >= LASER_SUBTYPE_RING_FIRST && subtype <= LASER_SUBTYPE_RING_LAST;
|
||||
}
|
||||
|
||||
// The rest of Entity_Laser is not reconstructed yet.
|
||||
|
||||
// 0096f590
|
||||
void Entity_Laser::Init(int, int, int, uint32_t)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::Init 0096f590");
|
||||
}
|
||||
|
||||
// 00977cc0
|
||||
void Entity_Laser::Update()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::Update 00977cc0");
|
||||
}
|
||||
|
||||
// 0097e6f0
|
||||
void Entity_Laser::Interpolate()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::Interpolate 0097e6f0");
|
||||
}
|
||||
|
||||
// 009785d0
|
||||
void Entity_Laser::Render(const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::Render 009785d0");
|
||||
}
|
||||
|
||||
// 0097ca90
|
||||
bool Entity_Laser::RenderShadowLayer(const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::RenderShadowLayer 0097ca90");
|
||||
}
|
||||
|
||||
// 0097eb50
|
||||
void Entity_Laser::PostRender()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::PostRender 0097eb50");
|
||||
}
|
||||
|
||||
// 0097ea30
|
||||
void Entity_Laser::Remove()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::Remove 0097ea30");
|
||||
}
|
||||
|
||||
// 0097e800
|
||||
void Entity_Laser::ClearReferences()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::ClearReferences 0097e800");
|
||||
}
|
||||
|
||||
// 0096ce30
|
||||
bool Entity_Laser::is_thick_variant()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::is_thick_variant 0096ce30");
|
||||
}
|
||||
|
||||
// 0096cf80
|
||||
bool Entity_Laser::CanDamageEntity(Entity*)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::CanDamageEntity 0096cf80");
|
||||
}
|
||||
|
||||
// 0096d3f0
|
||||
void Entity_Laser::impact_tear_flag_effects(const Vector&, const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::impact_tear_flag_effects 0096d3f0");
|
||||
}
|
||||
|
||||
// 0096ee00
|
||||
ColorMod* Entity_Laser::get_tear_spawn_color(const ColorMod&)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::get_tear_spawn_color 0096ee00");
|
||||
}
|
||||
|
||||
// 0096f070
|
||||
void Entity_Laser::copy_from_parent(Entity_Laser*, bool)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::copy_from_parent 0096f070");
|
||||
}
|
||||
|
||||
// 0096f470
|
||||
void Entity_Laser::RotateToAngle(float, float)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::RotateToAngle 0096f470");
|
||||
}
|
||||
|
||||
// 0096f4e0
|
||||
void Entity_Laser::ClearLaserSamples()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::ClearLaserSamples 0096f4e0");
|
||||
}
|
||||
|
||||
// 0096f880
|
||||
void Entity_Laser::PlayInitSound()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::PlayInitSound 0096f880");
|
||||
}
|
||||
|
||||
// 0096fc70
|
||||
Vector Entity_Laser::calc_end_point(const Vector&, const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::calc_end_point 0096fc70");
|
||||
}
|
||||
|
||||
// 009704a0
|
||||
void Entity_Laser::update_first_frame()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::update_first_frame 009704a0");
|
||||
}
|
||||
|
||||
// 00970cb0
|
||||
void Entity_Laser::find_nearest_grid_hit(int, const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::find_nearest_grid_hit 00970cb0");
|
||||
}
|
||||
|
||||
// 00971590
|
||||
uint8_t Entity_Laser::damage_grid_entity(int, int, const Vector&)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::damage_grid_entity 00971590");
|
||||
}
|
||||
|
||||
// 00971810
|
||||
void Entity_Laser::update_line_hits()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::update_line_hits 00971810");
|
||||
}
|
||||
|
||||
// 009737b0
|
||||
void Entity_Laser::update_endpoint_and_hits()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::update_endpoint_and_hits 009737b0");
|
||||
}
|
||||
|
||||
// 00973a50
|
||||
void Entity_Laser::refresh_tear_params()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::refresh_tear_params 00973a50");
|
||||
}
|
||||
|
||||
// 00973c60
|
||||
void Entity_Laser::update_laser()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::update_laser 00973c60");
|
||||
}
|
||||
|
||||
// 0097baa0
|
||||
void Entity_Laser::UpdateHits()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::UpdateHits 0097baa0");
|
||||
}
|
||||
|
||||
// 0097e3b0
|
||||
void* Entity_Laser::GetSamples()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::GetSamples 0097e3b0");
|
||||
}
|
||||
|
||||
// 0097e3c0
|
||||
void Entity_Laser::damage_entity(Entity*)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::damage_entity 0097e3c0");
|
||||
}
|
||||
|
||||
// 0097e6e0
|
||||
void* Entity_Laser::GetNonOptimizedSamples()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::GetNonOptimizedSamples 0097e6e0");
|
||||
}
|
||||
|
||||
// 0097f820
|
||||
void Entity_Laser::spawn_impact_effect(int)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::spawn_impact_effect 0097f820");
|
||||
}
|
||||
|
||||
// 0097fc10
|
||||
void Entity_Laser::ResetSpriteScale()
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::ResetSpriteScale 0097fc10");
|
||||
}
|
||||
|
||||
// 0097fe50
|
||||
void Entity_Laser::set_scale(float)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::set_scale 0097fe50");
|
||||
}
|
||||
|
||||
// 0097fe60
|
||||
void Entity_Laser::update_sample_points(char)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::update_sample_points 0097fe60");
|
||||
}
|
||||
|
||||
// 0099efc0
|
||||
void Entity_Laser::update_wiggle_path(void*, float, float)
|
||||
{
|
||||
reconstruction_missing("Entity_Laser::update_wiggle_path 0099efc0");
|
||||
}
|
||||
Reference in new issue
Block a user