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
/********************************************************************
*
*	Created:	17/2/2014   12:16
*
*	File:		fsCSpriteKeyFrame.h
*
*	Author:		Mick Waites
*	
*	Purpose:	Key frame to switch the current sprite
*
*********************************************************************/

#ifndef fsCSpriteKeyFramehdr
#define fsCSpriteKeyFramehdr

#include "../fsIKeyFrame.h"


class fsCSpriteKeyFrame : public fsIKeyFrame
{
public:

	void execute(fsCAnimatingSpritePlayfirst* pParent) override;

	fsCSpriteKeyFrame(fsS32 pSpriteFrame, fsS32 pTime);
	virtual ~fsCSpriteKeyFrame();<--- Destructor in derived class

protected:

	fsS32 mSpriteFrame;

private:
};

#endif