MCPcopy Create free account
hub / github.com/doldecomp/mkdd / getVisibility

Method getVisibility

libs/JSystem/J2DGraph/J2DAnimation.cpp:776–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776void J2DAnmVisibilityFull::getVisibility(u16 p1, u8 *visibility) const
777{
778 u16 maxFrame = mTable[p1]._00[0];
779 if (getFrame() < 0)
780 {
781 *visibility = mValues[mTable[p1]._00[1]];
782 }
783 else if (getFrame() >= maxFrame)
784 {
785 *visibility = mValues[mTable[p1]._00[1] + (maxFrame - 1)];
786 }
787 else
788 {
789 int frame = getFrame();
790 *visibility = mValues[mTable[p1]._00[1] + frame];
791 }
792}
793
794void J2DAnmTevRegKey::getTevColorReg(u16 idx, GXColorS10 *color) const
795{

Callers 3

animationPaneMethod · 0.80
animationPaneMethod · 0.80
animationPaneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected