forked from derandark/PhatAC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnimationPackage.h
More file actions
41 lines (32 loc) · 769 Bytes
/
AnimationPackage.h
File metadata and controls
41 lines (32 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
class AnimationPackage
{
friend class TurbineAnimation;
public:
AnimationPackage( WORD wStance, WORD wIndex, float fSpeed );
virtual bool Initialize( );
inline DWORD GetBaseFrame( ) {
return ((m_fSpeed >= 0)? m_dwStartFrame : m_dwEndFrame );
}
private:
WORD m_wStance;
WORD m_wIndex;
float m_fSpeed;
double m_fStartTime;
DWORD m_dwCurrentFrame;
DWORD m_dwStartFrame;
DWORD m_dwEndFrame;
DWORD m_dwTarget;
DWORD m_dwAction; //For identifying actions (lifestone recall, etc.)
DWORD m_dwActionData[10];
};
class SequencedAnimation : public AnimationPackage
{
public:
SequencedAnimation( WORD wSequence, WORD wStance, WORD wIndex, float fSpeed );
inline WORD GetSequence( ) {
return m_wSequence;
}
private:
WORD m_wSequence;
};