shithub: zelda3

ref: 31cba4c664c5607b07ed8775b317425c916a1c64
dir: /player_oam.h/

View raw version
#pragma once
#include "types.h"

typedef struct SwordResult {
  uint8 r6;
  uint8 r12;
} SwordResult;

bool PlayerOam_WantInvokeSword();
void CalculateSwordHitBox();
void LinkOam_Main();
uint8 FindMostSignificantBit(uint8 v);
bool LinkOam_SetWeaponVRAMOffsets(int r2, SwordResult *sr);
bool LinkOam_SetEquipmentVRAMOffsets(int r2, SwordResult *sr);
int LinkOam_CalculateSwordSparklePosition(int oam_pos, uint8 oam_x, uint8 oam_y);
void LinkOam_UnusedWeaponSettings(int r4loc, uint8 oam_x, uint8 oam_y);
void LinkOam_DrawDungeonFallShadow(int r4loc, uint8 xcoord);
void LinkOam_DrawFootObject(int r4loc, uint8 oam_x, uint8 oam_y);
void LinkOam_CalculateXOffsetRelativeLink(uint8 x);