# Gate 209: KOOPA_SHELL (actor 285, ov102) -- the green shell a stomped Koopa
# leaves behind, and the item a GREEN_SHELL_BLOCK_TAG cracks open.
#
# ---- what it is ------------------------------------------------------------
#
# _ZTV10KoopaShell / _ZTV7daShl_c, ov102 0x0214e650. An Enemy subclass, 31-slot
# table, overriding the six lifecycle slots. Slot 18 (OnYoshiTryEat) keeps the
# shared Actor default: its ROM body _ZN10KoopaShell13OnYoshiTryEatEv is a vtable-slot-identity
# guess, not a named decompilation, so inferred_stub_guard keeps it trapped and
# it is NOT enrolled here. Its object is 992 bytes (daShl_c_classInit ov102
# 0x0214d6b4), MovingCylinderClsn at 0x110, WithMeshClsn at 0x144, Model at
# 0x300, ShadowModel at 0x350, MovingCylinderClsn at 0x378.
#
# ---- the id, and the live spawn edge ---------------------------------------
#
# g_profile_SHELL (ov102 0x0214e62c) has +4 halfword 285; it is already
# mounted in port/ov102_syms.txt (gate 23 mounted the overlay's whole data span)
# so this slice carries no new overlay data. It is never statically placed: it
# is spawned dynamically. BrickBlock::SpawnKoopaShell (GREEN_SHELL_BLOCK_TAG id
# 323, ov002) calls Actor::Spawn(0x11d) when the tag block breaks, and a stomped
# Koopa (id 203, ov062 func_ov062_02117bf4) does the same. Level 0 statically
# places the GREEN_SHELL_BLOCK_TAG, so the ROM's own break path spawns the shell
# there (SM64DS_LEVEL=0 SM64DS_TAG_PROBE=1, or SM64DS_SPAWN_ACTOR=15,323).
#
# ---- what is already in the link -------------------------------------------
#
# The four ov102 static initialisers -- including __sinit_ov102_0214dfac, which
# copies this class's PMF state templates into data_ov102_0214ea48/58/68/78 --
# are already compiled (gate 23) and run from hal/actor_overlays.cpp, so the
# state table this class dispatches through is already seated. The model file
# pointers data_ov102_0214d70c and the PMF state statics data_ov102_0214ea48/58/
# 68/78 are mounted (ov102_syms.txt); the .cpp bodies reach them under C++
# mangled names, bridged to the C mount symbols by /alternatename in
# hal/actor_classes_bob_enemy.cpp (the ov064 bowserpuzzle pattern).
#
# ---- this slice's new symbols ----------------------------------------------
#
# The eight class TUs and the four Behavior/InitResources helpers not already
# compiled (the slot-18 OnYoshiTryEat guess body stays trapped). The vtable fill
# hal_fill_koopa_shell_vtable and the eight method faces are hal
# (hal/actor_classes_bob_enemy.cpp), and the registry row is in
# hal/actor_classes.inc.
src/d_a_shl.c
src/_ZN10KoopaShell13InitResourcesEv.cpp
src/_ZN10KoopaShell8BehaviorEv.cpp
src/_ZN10KoopaShell6RenderEv.cpp
src/_ZN10KoopaShell16CleanupResourcesEv.cpp
src/_ZN10KoopaShell16OnPendingDestroyEv.cpp
# RETIRED at SLICE1: body now in src/_ZN10KoopaShellD1Ev.cpp. MSVC folds the ROM destructor variants into one symbol, so only one of a class two per-function destructor TUs can be compiled.
#src/_ZN10KoopaShellD0Ev.cpp
src/_ZN10KoopaShellD1Ev.cpp
src/func_ov102_0214d1f8.cpp
src/func_ov102_0214ce60.cpp
src/func_ov102_0214cbec.cpp
src/func_ov102_0214cf4c.cpp
src/func_ov102_0214cf98.cpp
src/func_ov102_0214c7fc.cpp
src/func_ov102_0214c84c.c
# the eight PMF state handlers the class dispatches through (four states, each
# an {init, main} pair). Reached only via the mounted state table, so no link
# edge names them; port/unmatched/KoopaShell_States.cpp seats their host
# addresses over the raw DS ones (a bare spawn faults into the DS address):
src/func_ov102_0214d0bc.cpp
src/func_ov102_0214d044.cpp
src/func_ov102_0214d020.c
src/func_ov102_0214cfe4.cpp
src/func_ov102_0214d1b8.c
src/func_ov102_0214d1b0.c
src/func_ov102_0214d148.cpp
src/func_ov102_0214d114.c
