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,94 @@
|
||||
#pragma once
|
||||
|
||||
#include "entity.h"
|
||||
#include "anm2.h"
|
||||
#include <vector>
|
||||
|
||||
// Lua's TearFlags bits that the entity code reads.
|
||||
enum TearFlagBit : int
|
||||
{
|
||||
TEAR_SHIELDED = 34
|
||||
};
|
||||
|
||||
// Construction and destruction (00665ea0, 00665cf0) are the defaults.
|
||||
// Field accessors (004177c0, 00431750, 00435e50, 00456440, 004aade0, 00557cd0, 0060ccb0, 0060ccc0, 0060ccd0,
|
||||
// 0060cd00, 0085dd60, 0085dd70, 0085dd90) are the public fields.
|
||||
// A player's tear (Lua's EntityTear): its height and fall, scale and damage, the tear flags that change how it flies
|
||||
// and hits, the entity it sticks to, and the tears and lasers it links to.
|
||||
struct Entity_Tear : Entity
|
||||
{
|
||||
ANM2 deadEyeANM2;
|
||||
ANM2 tearEffectANM2;
|
||||
ANM2 tearHaloANM2;
|
||||
std::vector<uint32_t> hitList;
|
||||
TearFlags tearFlags;
|
||||
EntityPtr attachedEffect;
|
||||
EntityPtr laserShotLaser;
|
||||
EntityPtr linkNext;
|
||||
EntityPtr linkPrev;
|
||||
EntityPtr techZeroLaser;
|
||||
EntityPtr techZeroTarget;
|
||||
Entity* stickTarget = nullptr;
|
||||
Vector continueVelocity{};
|
||||
Vector holdOffset{};
|
||||
Vector holdVelocity{};
|
||||
Vector orbitVelocity{};
|
||||
Vector parentOffset{};
|
||||
Vector posDisplacement{};
|
||||
Vector stickDiff{};
|
||||
float baseDamage = 0;
|
||||
float baseScale = 0;
|
||||
float deadEyeIntensity = 0;
|
||||
float fScale = 0;
|
||||
float fallingAccel = 0;
|
||||
float fallingSpeed = 0;
|
||||
float height = 0;
|
||||
float homingFriction = 0;
|
||||
float knockbackMultiplier = 0;
|
||||
float orbitAngle = 0;
|
||||
float orbitRadius = 0;
|
||||
float rotation = 0;
|
||||
float tearRange = 0;
|
||||
int hitCount = 0;
|
||||
int holdTimer = 0;
|
||||
int scaleAnimNum = 0;
|
||||
int stickTimer = 0;
|
||||
int tearIdx = 0;
|
||||
int waitFrames = 0;
|
||||
uint32_t deathFlags = 0;
|
||||
short popBounceCount = 0;
|
||||
bool isCanTriggerStreakEnd = false;
|
||||
bool isFireSoundMuted = false;
|
||||
bool isFireSoundPending = false;
|
||||
bool isHovering = false;
|
||||
bool isMultidimensionalTouched = false;
|
||||
bool isPrismTouched = false;
|
||||
|
||||
void Init(int type, int variant, int subType, uint32_t initSeed) override;
|
||||
void Update() override;
|
||||
void Interpolate() override;
|
||||
void Render(const Vector& offset) override;
|
||||
void SetCollisionDamage(float damage) override;
|
||||
void ClearReferences() override;
|
||||
bool HandleCollision(Entity* collider, bool isLow) override;
|
||||
|
||||
Entity_Player* GetRootPlayer();
|
||||
void apply_wiggle(float strength);
|
||||
void update_wiggle();
|
||||
void play_fire_sound();
|
||||
float get_height_offset_y(float height);
|
||||
void SetScale(float scale);
|
||||
void SetTearFlags(TearFlags flags);
|
||||
void apply_death_flag_effects(Entity* target);
|
||||
void ResetSpriteScale();
|
||||
bool is_not_familiar_spawned();
|
||||
void fire_split_projectiles(bool isHalved);
|
||||
void SetDeadEyeIntensity(float intensity);
|
||||
Entity_Tear* MakeMultidimensionalCopy(Entity* spawner);
|
||||
void ChangeVariant(int variant);
|
||||
int find_nearest_linkable_tear();
|
||||
Entity_Tear* find_link_partner();
|
||||
void apply_link_spring_forces();
|
||||
static bool try_make_bridges(float*);
|
||||
void reroll_hit_entity(int unused);
|
||||
};
|
||||
Reference in new issue
Block a user