Files
isaac-port/generated-src/grid_entity_statue.cpp
T
shweetandClaude Opus 5.5 9d4d4f5c64 Build 29: zero-length placeholder structs, generated-src with standard types
--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:41:34 -05:00

70 lines
2.4 KiB
C++

#include "classes.h"
// 0042cdf0
void GridEntity_Statue::Render()
{
return;
}
// 00838520
void GridEntity_Statue::Update()
{
if ((this->_sprite)._loaded != 0) {
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::Update();
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._overlayAnimState)))->AnimationState::Update();
}
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) == 1) {
this->_collisionClass = 3;
return;
}
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) == 2) {
this->_collisionClass = 0;
}
return;
}
// 00838ae0
void GridEntity_Statue::BeginBatches()
{
uint32_t seed;
int iVar1;
Entity *statueEffect;
uint32_t gridPathValue;
int gridX;
uint32_t variant;
Vector spawnPos;
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) < 1) {
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) = 1;
}
else if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) != 1) goto LAB_00838bf3;
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))) == 0) {
seed = Random();
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc));
gridX = this->_gridIndex % iVar1;
iVar1 = this->_gridIndex / iVar1;
variant = 6;
}
else {
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))) != 1) goto LAB_00838bf3;
seed = Random();
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc));
gridX = this->_gridIndex % iVar1;
iVar1 = this->_gridIndex / iVar1;
variant = 9;
}
spawnPos.x = (float)gridX * 40.0 + 40.0;
spawnPos.y = (float)iVar1 * 40.0 + 120.0;
statueEffect = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,variant,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,seed,0);
*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x154)))) = statueEffect;
LAB_00838bf3:
if (GHIDRA_UINT(this->_gridIndex) < 0x1c0) {
gridPathValue = 0;
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) == 1) {
gridPathValue = 1000;
}
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(g_game->_room) + this->_gridIndex * 4 + 0x76c)) = gridPathValue;
}
return;
}