# Gate 19: the cannon in the moat wall.
#
# ov098's second actor overlay class set: CRATE, CANNON, WATER_BOMB and the
# two arrow signs. The castle grounds names one, and one only -- CANNON (207),
# the cannon behind the grate on the west moat wall.
#
# THE CONFIG'S NAMES ARE NOT SHIFTED IN ov098 either. All five factories
# install a vtable whose slot 0 is their own class's InitResources:
#
#   daObjYajirusi_c_classInit_YAJIRUSI_R -> _ZTV15daObjYajirusi_c   (both signs share it)
#   daObjYajirusi_c_classInit_YAJIRUSI_L  -> _ZTV15daObjYajirusi_c
#   daObjBlockS_c_classInit          -> _ZTV5Crate              RTTI daObjBlockS_c
#   daCnn_c_classInit         -> _ZTV7daCnn_c            slot0 Cannon::InitResources
#   daWbm_c_classInit      -> _ZTV7daWbm_c
#
# THE CANNON IS DORMANT AND THAT IS THE POINT. Its own Behavior reads the
# save's cannon-unlock bit before it will open; with a fresh save the lid
# stays shut, which is exactly what the level looks like before Bob-omb Buddy
# opens it. Nothing here chases the cannon-entry path.
src/d_a_cnn.cpp
src/_ZN6Cannon13InitResourcesEv.cpp
# RETIRED at SLICE1: body now in src/_ZN6CannonD1Ev.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/_ZN6CannonD0Ev.cpp
# _ZN6Cannon8BehaviorEv is NOT here either: it dispatches an mwcc
# pointer-to-member out of a four-entry state table, the gate-16 case for the
# fourth time. The dispatch frame and the state seat stay host
# (port/unmatched/Cannon_Behavior.cpp); the state bodies are matched src.
# State 1 (the lid opening) went byte-perfect at 2004/b56 in PR #1227:
src/func_ov098_0213ade8.c
src/_ZN6Cannon16CleanupResourcesEv.cpp
# _ZN6Cannon6RenderEv is NOT here: it dispatches Model slots 3 and 5 through
# a local shadow class, which is ROM numbering, and the host _ZTV5Model is
# MSVC's. Slot 5 the host array already serves both ways (the dual fill in
# hal/cxxname_bridge.cpp); slot 3 it cannot -- ROM 3 is UpdateVerts and MSVC 3
# is Virtual10, which takes a Matrix4x3 the shadow's declaration never passes.
# Host copy in port/unmatched/Cannon_Render.cpp.
#
# THE DESTRUCTORS ARE NOT HERE and slots 16/17 trap by name, the gate-17
# reading: nothing on the castle grounds destroys a cannon, and
# src/_ZN6CannonD1Ev.cpp is a real C++ destructor over its own shadow
# hierarchy -- MSVC would emit it under ??1Cannon@@UAE@XZ and synthesise
# member destructor calls against a layout that is not the ROM's.

# ---- the overlay's own static initialisers --------------------------------
src/__sinit_ov098_0213bf9c.c
src/__sinit_ov098_0213c058.c
src/__sinit_ov098_0213c214.c
src/__sinit_ov098_0213c2b4.c

# ---- the two helpers the cannon's own Behavior closes over -----------------
# 0213a984 is the save read that keeps the lid shut; 0213b15c is the aim/lid
# update it runs once the save says otherwise.
src/func_ov098_0213a984.c
src/func_ov098_0213b15c.cpp

# --- linkloop round 0 ---
src/func_ov098_0213aa28.c
src/func_ov098_0213ad08.c
src/func_ov098_0213b0a4.cpp

# --- linkloop round 1 ---
src/_ZN8dActor_c10EarthquakeERK7Vector35Fix12IiE.cpp
src/func_ov002_020df300.c
src/func_ov002_020df34c.cpp
src/actors/daBmb_c.cpp

# --- linkloop round 2 ---
src/func_0200d438.c
src/func_0200d474.c
src/func_ov002_020ef228.cpp
