axmol/cocos
n2omatt 6be4ec8ee5 Add new methods to get the number of actions running in a given node with a specific tag. (#16789)
* 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.
2016-11-04 09:41:03 +08:00
..
2d Add new methods to get the number of actions running in a given node with a specific tag. (#16789) 2016-11-04 09:41:03 +08:00
3d fixed #16492: RapidJSON Crashes in Release mode on Android. (#16792) 2016-11-04 09:36:59 +08:00
audio fixed #16754: [android] Background music which is playing could not be paused while game enters background. (#16755) 2016-10-28 10:12:52 +08:00
base Support MultiView matrix array (#16723) 2016-10-28 09:33:31 +08:00
deprecated Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
editor-support fixed #16492: RapidJSON Crashes in Release mode on Android. (#16792) 2016-11-04 09:36:59 +08:00
math Remove unnecessary const return qualifiers (#16671) 2016-10-11 09:33:05 +08:00
navmesh Android pixel fixes (#16694) 2016-10-17 15:44:41 +08:00
network fixed #16492: RapidJSON Crashes in Release mode on Android. (#16792) 2016-11-04 09:36:59 +08:00
physics Performance tweak: Use range-based for-loops and allocate std::vector size() and *end() on the stack where favorable. (#16716) 2016-10-27 15:10:24 +08:00
physics3d Fix typos and other mistakes in docs 2016-07-04 00:42:10 +09:00
platform Add reason for edit end to UIEditBoxDelegate (#16771) 2016-11-03 14:02:53 +08:00
renderer More: Uses c++11 multi-line string literal (#16803) 2016-11-04 09:36:26 +08:00
scripting [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (#16802) 2016-11-03 15:29:09 +08:00
storage Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ui Misc. UIEditBoxImpl-winrt fixes (#16773) 2016-11-04 09:38:48 +08:00
vr Suppress unused function warning (#16657) 2016-10-08 10:14:58 +08:00
Android.mk Android import cpufeatures in cocos. (#16233) 2016-07-31 22:45:30 +08:00
CMakeLists.txt Fix LNK4098 and LNK2001 warnings (#16372) 2016-08-22 15:50:17 +08:00
cc_dummy.c Squashed commit of the following: 2016-03-02 16:51:54 -08:00
cocos2d.cpp merge v3.13.1 back to v3 2016-09-15 10:08:28 +08:00
cocos2d.h merge v3.13.1 back to v3 2016-09-15 10:08:28 +08:00