This commit is contained in:
parent
cddb90cf4d
commit
bb39b3c5a1
2 changed files with 16 additions and 0 deletions
|
@ -710,6 +710,20 @@ int YMin,YMax;
|
|||
return(Ft4);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CActorGfx::getFrameOffsets(int _anim,int _frame,int *_x,int *_y)
|
||||
{
|
||||
sSpriteAnimBank *SpriteBank;
|
||||
sSpriteAnim *ThisAnim;
|
||||
sSpriteFrame *pFrame;
|
||||
|
||||
SpriteBank=PoolEntry->ActorGfx;
|
||||
ThisAnim=SpriteBank->AnimList+_anim;
|
||||
pFrame=&ThisAnim->Anim[_frame];
|
||||
*_x=pFrame->XOfs;
|
||||
*_y=pFrame->YOfs;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CActorGfx::SetUpFT4(POLY_FT4 *Ft4,sPoolNode *Node,int X,int Y,bool XFlip,bool YFlip)
|
||||
{
|
||||
|
|
|
@ -142,6 +142,7 @@ virtual ~CActorGfx();
|
|||
|
||||
POLY_FT4 *Render(DVECTOR &Pos,int Anim,int Frame,bool FlipX=false,bool FlipY=false);
|
||||
POLY_FT4 *RotateScale(POLY_FT4 *Ft4,DVECTOR &Pos,int Angle,int XScale,int YScale);
|
||||
void getFrameOffsets(int _anim,int _frame,int *_x,int *_y);
|
||||
|
||||
int getFrameCount(int Anim) {return(PoolEntry->ActorGfx->AnimList[Anim].FrameCount);}
|
||||
int GetTotalFrameCount() {return(PoolEntry->ActorGfx->FrameCount);}
|
||||
|
@ -152,6 +153,7 @@ virtual ~CActorGfx();
|
|||
// void SetShadowOfs(int X,int Y) {ShadowXOfs=X; ShadowYOfs=Y;}
|
||||
void SetOtPos(int Ot) {OtPos=Ot;}
|
||||
|
||||
|
||||
protected:
|
||||
void SetUpFT4(POLY_FT4 *Ft4,sPoolNode *Node,int X,int Y,bool XFlip,bool YFlip);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue