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,70 @@
|
||||
#pragma once
|
||||
|
||||
#include "entity.h"
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
// Construction and destruction (00960b50, 00960a70) are the defaults. The homing path waits for HomingLaser's
|
||||
// takeover.
|
||||
// Field accessors (004d7790, 004d77a0, 0060cf10, 0060cfb0, 0085de90, 0085deb0, 0085dec0) are the public fields.
|
||||
// A knife (Lua's EntityKnife): Mom's Knife and the swung weapons (bones, clubs, swords), with the tear effects they
|
||||
// carry, their charge and flight, and the path a homing knife follows.
|
||||
struct Entity_Knife : Entity
|
||||
{
|
||||
std::unique_ptr<HomingLaser> homingLaser;
|
||||
std::vector<uint32_t> hitList;
|
||||
TearFlags tearFlags;
|
||||
TearFlags usedTearFlags;
|
||||
Vector anchorPosition{};
|
||||
Vector initPosition{};
|
||||
float basePosOffsetY = 0;
|
||||
float charge = 0;
|
||||
float displayRotation = 0;
|
||||
float fallingSpeed = 0;
|
||||
float height = 0;
|
||||
float knifeDepthOffset = 0;
|
||||
float knifeDistance = 0;
|
||||
float knifeVelocity = 0;
|
||||
float maxDistance = 0;
|
||||
float pathFollowSpeed = 0;
|
||||
float pathOffset = 0;
|
||||
float pathProgress = 0;
|
||||
float rotation = 0;
|
||||
float rotationOffset = 0;
|
||||
float scale = 0;
|
||||
int pathSegment = 0;
|
||||
bool isDeadEyeHit = false;
|
||||
bool isFlying = false;
|
||||
bool isMultidimensionalApplied = false;
|
||||
bool isPrimaryClub = false;
|
||||
bool isPrismApplied = false;
|
||||
bool isSpinAttack = false;
|
||||
bool isSwinging = false;
|
||||
bool isUsingParentHitList = 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;
|
||||
int GetRenderZ() override;
|
||||
void ClearReferences() override;
|
||||
bool HandleCollision(Entity* collider, bool isLow) override;
|
||||
|
||||
int GetBaseVariant();
|
||||
void* GetHitEntities();
|
||||
void InitHomingPath(Vector direction, Entity* source, float pathOffset);
|
||||
void copy_parent_state(Entity_Knife* source);
|
||||
uint32_t spawn_child_knife();
|
||||
Entity_Player* GetPlayer();
|
||||
Entity* GetRootParent();
|
||||
void Shoot(float charge, float range);
|
||||
void UpdateHomingPath();
|
||||
void update_target(float* outAngle);
|
||||
void apply_wiggle(float*);
|
||||
void screen_wrap();
|
||||
void Reset();
|
||||
void SetAttackAnimation();
|
||||
void SpinAttack(short remainingSpins, int startFrame);
|
||||
uint8_t drain_notched_axe(int charge);
|
||||
void UpdateSwingHits();
|
||||
};
|
||||
Reference in new issue
Block a user