3 #ifndef __GAF_SUBOBJECT_STATE__
4 #define __GAF_SUBOBJECT_STATE__
6 #include "cocoa/CCObject.h"
7 #include "cocoa/CCAffineTransform.h"
15 using namespace cocos2d;
17 enum GAFColorTransformIndex
30 std::string maskObjectId;
31 CCAffineTransform affineTransform;
33 static GAFSubobjectState * createWithStateDictionary(CCDictionary * dict,
const char * objectId);
36 bool initWithStateDictionary(CCDictionary * dict,
const char * objectId);
37 bool initEmptyWinthObjectId(
const char * objectId);
39 inline CCDictionary * filters()
43 inline float * colorMults()
45 return &_colorMults[0];
47 inline float * colorOffsets()
49 return &_colorOffsets[0];
51 inline bool isVisisble()
const
53 return _colorMults[GAFCTI_A] != 0;
58 CCDictionary * _filters;
60 float _colorOffsets[4];
63 #endif // __GAF_SUBOBJECT_STATE__
Definition: GAFSubobjectState.h:25