cocos2d-x  3.1rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCBAnimationManager Class Reference

#include <CCBAnimationManager.h>

Inheritance diagram for CCBAnimationManager:
Ref

Public Member Functions

 CCBAnimationManager ()
 ~CCBAnimationManager ()
virtual bool init ()
cocos2d::Vector< CCBSequence * > & getSequences ()
void setSequences (const cocos2d::Vector< CCBSequence * > &seq)
int getAutoPlaySequenceId ()
void setAutoPlaySequenceId (int autoPlaySequenceId)
cocos2d::NodegetRootNode ()
void setRootNode (cocos2d::Node *pRootNode)
void addDocumentCallbackNode (cocos2d::Node *node)
void addDocumentCallbackName (std::string name)
void addDocumentCallbackControlEvents (cocos2d::extension::Control::EventType eventType)
void addDocumentOutletNode (cocos2d::Node *node)
void addDocumentOutletName (std::string name)
void setDocumentControllerName (const std::string &name)
std::string getDocumentControllerName ()
cocos2d::ValueVectorgetDocumentCallbackNames ()
cocos2d::Vector< cocos2d::Node * > & getDocumentCallbackNodes ()
cocos2d::ValueVectorgetDocumentCallbackControlEvents ()
cocos2d::ValueVectorgetDocumentOutletNames ()
cocos2d::Vector< cocos2d::Node * > & getDocumentOutletNodes ()
std::string getLastCompletedSequenceName ()
cocos2d::ValueVectorgetKeyframeCallbacks ()
const cocos2d::SizegetRootContainerSize ()
void setRootContainerSize (const cocos2d::Size &rootContainerSize)
CCBAnimationManagerDelegategetDelegate ()
void setDelegate (CCBAnimationManagerDelegate *pDelegate)
const char * getRunningSequenceName ()
const cocos2d::SizegetContainerSize (cocos2d::Node *pNode)
void addNode (cocos2d::Node *pNode, const std::unordered_map< int, cocos2d::Map< std::string, CCBSequenceProperty * >> &seq)
void setBaseValue (const cocos2d::Value &value, cocos2d::Node *pNode, const std::string &propName)
void setObject (cocos2d::Ref *obj, cocos2d::Node *pNode, const std::string &propName)
void moveAnimationsFromNode (cocos2d::Node *fromNode, cocos2d::Node *toNode)
CC_DEPRECATED_ATTRIBUTE void runAnimations (const char *pName, float fTweenDuration)
CC_DEPRECATED_ATTRIBUTE void runAnimations (const char *pName)
CC_DEPRECATED_ATTRIBUTE void runAnimations (int nSeqId, float fTweenDuraiton)
void runAnimationsForSequenceNamedTweenDuration (const char *pName, float fTweenDuration)
void runAnimationsForSequenceNamed (const char *pName)
void runAnimationsForSequenceIdTweenDuration (int nSeqId, float fTweenDuraiton)
void setAnimationCompletedCallback (cocos2d::Ref *target, cocos2d::SEL_CallFunc callbackFunc)
 when this function bound to js ,the second param are callfunc_selector More...
 
void debug ()
void setCallFunc (cocos2d::CallFunc *callFunc, const std::string &callbackNamed)
cocos2d::SequenceactionForCallbackChannel (CCBSequenceProperty *channel)
cocos2d::SequenceactionForSoundChannel (CCBSequenceProperty *channel)
int getSequenceId (const char *pSequenceName)
float getSequenceDuration (const char *pSequenceName)
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Public Attributes

bool _jsControlled
cocos2d::Ref_owner

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Constructor & Destructor Documentation

Member Function Documentation

cocos2d::Sequence*
actionForCallbackChannel
( CCBSequenceProperty channel)
cocos2d::Sequence*
actionForSoundChannel
( CCBSequenceProperty channel)
void
addDocumentCallbackControlEvents
( cocos2d::extension::Control::EventType  eventType)
void addDocumentCallbackName ( std::string  name)
void addDocumentCallbackNode ( cocos2d::Node node)
void addDocumentOutletName ( std::string  name)
void addDocumentOutletNode ( cocos2d::Node node)
void addNode ( cocos2d::Node pNode,
const std::unordered_map< int, cocos2d::Map< std::string, CCBSequenceProperty * >> &  seq 
)
void debug ( )
int getAutoPlaySequenceId ( )
const cocos2d::Size&
getContainerSize
( cocos2d::Node pNode)
CCBAnimationManagerDelegate*
getDelegate
( )
cocos2d::ValueVector&
getDocumentCallbackControlEvents
( )
cocos2d::ValueVector&
getDocumentCallbackNames
( )
cocos2d::Vector<cocos2d::Node*>
& getDocumentCallbackNodes
( )
std::string
getDocumentControllerName
( )
cocos2d::ValueVector&
getDocumentOutletNames
( )
cocos2d::Vector<cocos2d::Node*>
& getDocumentOutletNodes
( )
cocos2d::ValueVector&
getKeyframeCallbacks
( )
std::string
getLastCompletedSequenceName
( )
const cocos2d::Size&
getRootContainerSize
( )
cocos2d::Node* getRootNode ( )
const char* getRunningSequenceName ( )
float getSequenceDuration ( const char *  pSequenceName)
int getSequenceId ( const char *  pSequenceName)
cocos2d::Vector<CCBSequence*>
& getSequences
( )
virtual bool init ( )
virtual
void moveAnimationsFromNode ( cocos2d::Node fromNode,
cocos2d::Node toNode 
)
CC_DEPRECATED_ATTRIBUTE void
runAnimations
( const char *  pName,
float  fTweenDuration 
)
Deprecated:
This interface will be deprecated sooner or later.
CC_DEPRECATED_ATTRIBUTE void
runAnimations
( const char *  pName)
Deprecated:
This interface will be deprecated sooner or later.
CC_DEPRECATED_ATTRIBUTE void
runAnimations
( int  nSeqId,
float  fTweenDuraiton 
)
Deprecated:
This interface will be deprecated sooner or later.
void
runAnimationsForSequenceIdTweenDuration
( int  nSeqId,
float  fTweenDuraiton 
)
void runAnimationsForSequenceNamed ( const char *  pName)
void
runAnimationsForSequenceNamedTweenDuration
( const char *  pName,
float  fTweenDuration 
)
void setAnimationCompletedCallback ( cocos2d::Ref target,
cocos2d::SEL_CallFunc  callbackFunc 
)

when this function bound to js ,the second param are callfunc_selector

void setAutoPlaySequenceId ( int  autoPlaySequenceId)
void setBaseValue ( const cocos2d::Value value,
cocos2d::Node pNode,
const std::string &  propName 
)
void setCallFunc ( cocos2d::CallFunc callFunc,
const std::string &  callbackNamed 
)
void setDelegate ( CCBAnimationManagerDelegate pDelegate)
void setDocumentControllerName ( const std::string &  name)
void setObject ( cocos2d::Ref obj,
cocos2d::Node pNode,
const std::string &  propName 
)
void setRootContainerSize ( const cocos2d::Size rootContainerSize)
void setRootNode ( cocos2d::Node pRootNode)
void setSequences ( const cocos2d::Vector< CCBSequence * > &  seq)

Member Data Documentation

bool _jsControlled
cocos2d::Ref* _owner

The documentation for this class was generated from the following file: