mirror of https://github.com/axmolengine/axmol.git
6be4ec8ee5
* Add new methods to get the number of actions running in a given node with a specific tag. This is useful for cases that we want to know how many animations with a **specific** tag is running in our target. For example: auto tag1Count = this->getNumberOfRunningActionsByTag(kMyTag1); auto tag2Count = this->getNumberOfRunningActionsByTag(kMyTag2); While this could be achieved (more or less) with callbacks to increment the tagCount at start of action and decrement at the end the proposed API is much more concise and less error prone. * Replace the old C casts to static_casts. As discussed in #16789 issue thread @minggo asked to change the old style of cast to newer, more safer static_casts. * Add the required parenthesis and normalize the spaces. Normalize all the static_cast<Action *> to static_cast<Action*> some places we have spaces, other places haven't. Fix the missing parenthesis. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
audio | ||
base | ||
deprecated | ||
editor-support | ||
math | ||
navmesh | ||
network | ||
physics | ||
physics3d | ||
platform | ||
renderer | ||
scripting | ||
storage | ||
ui | ||
vr | ||
Android.mk | ||
CMakeLists.txt | ||
cc_dummy.c | ||
cocos2d.cpp | ||
cocos2d.h |