123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // ZGFrameActionSprite.h
- // Billiards
- //
- // Created by zhuge on 2018/9/6.
- //
- #ifndef ZGFrameActionSprite_h
- #define ZGFrameActionSprite_h
- #include "CCSprite.h"
- using namespace std;
- NS_CC_BEGIN
- class ZGFrameActionSprite : public Sprite {
- public:
- static ZGFrameActionSprite* create();
- ZGFrameActionSprite();
- ~ZGFrameActionSprite();
- bool init() override;
-
- private:
- string _frameNamePrefix;
- int _frameIndex;
-
- private:
- void updateFramePrefixAndIndex();
-
- public:
- string getFrameNamePrefix() { return _frameNamePrefix; }
- int getFrameIndex() { return _frameIndex; }
-
- void setFrameNamePrefix(string prefix);
- void setFrameIndex(int frameIndex);
-
- };
- NS_CC_END
- #endif /* ZGFrameActionSprite_h */
|