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,54 @@
|
||||
#pragma once
|
||||
|
||||
#include "entity.h"
|
||||
|
||||
// Lua's ProjectileFlags that the entity list reads.
|
||||
enum ProjectileFlag : uint64_t
|
||||
{
|
||||
PROJECTILE_HIT_ENEMIES = 1ull << 7,
|
||||
PROJECTILE_CANT_BE_STOPPED = 1ull << 31,
|
||||
PROJECTILE_SHIELDED = 1ull << 44
|
||||
};
|
||||
|
||||
// Construction and destruction (00652b50, 00652b00) are the defaults.
|
||||
// Field accessors (00417830, 00444c90, 00447740, 004b70a0, 004d3060, 004d3070, 0085e300, 0085e310, 0085e360) are the
|
||||
// public fields.
|
||||
// An enemy shot (Lua's EntityProjectile): its height and fall, damage, homing and curving, and the projectile flags
|
||||
// that change how it flies and what it does when it lands.
|
||||
struct Entity_Projectile : Entity
|
||||
{
|
||||
uint64_t changeFlags = 0;
|
||||
uint64_t projectileFlags = 0;
|
||||
float acceleration = 0;
|
||||
float changeVelocity = 0;
|
||||
float curvingStrength = 0;
|
||||
float damage = 0;
|
||||
float fallingAccel = 0;
|
||||
float fallingSpeed = 0;
|
||||
float height = 0;
|
||||
float homingStrength = 0;
|
||||
float orbitDistance = 0;
|
||||
float scale = 0;
|
||||
int animKey = 0;
|
||||
int changeTimeout = 0;
|
||||
int wiggleFrameOffset = 0;
|
||||
bool isRenderedAtGround = 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;
|
||||
bool CanShutDoors() override;
|
||||
bool HandleCollision(Entity* collider, bool isLow) override;
|
||||
|
||||
void AddHeight(float amount);
|
||||
void AddFallingSpeed(float amount);
|
||||
void AddFallingAccel(float amount);
|
||||
void AddProjectileFlags(uint64_t added);
|
||||
void Reflect(Entity* unused, const Vector& newVelocity);
|
||||
void update_height_collision();
|
||||
void SetHeight(float height);
|
||||
void Deflect(Entity* newSpawner, const Vector& velocity);
|
||||
void AddChangeFlags(uint64_t added);
|
||||
void AddScale(float amount);
|
||||
};
|
||||
Reference in new issue
Block a user