GAF Library
Generic Animation Format
 All Classes Functions Pages
GAFAnimationSequence.h
1 #pragma once
2 
3 #ifndef __GAF_ANIMATION_SEQUENCE_H__
4 #define __GAF_ANIMATION_SEQUENCE_H__
5 
6 #include "cocoa/CCObject.h"
7 #include <string>
8 
9 using namespace cocos2d;
10 
11 class GAFAnimationSequence : public CCObject
12 {
13 public:
14  std::string name;
15  int startFrameNo;
16  int endFrameNo;
17  inline int length() const
18  {
19  return endFrameNo - startFrameNo;
20  }
21 };
22 
23 #endif // __GAF_ANIMATION_SEQUENCE_H__
Definition: GAFAnimationSequence.h:11