Commit Graph

35 Commits

Author SHA1 Message Date
minggo 261f0e4f05 rename some files 2013-09-21 14:40:54 +08:00
minggo bcb171e3c9 fix line end in windows 2013-09-20 22:23:13 +08:00
minggo be7d59b132 fix typo error 2013-09-20 21:29:12 +08:00
minggo 4c9771ba3c rename some class names to obey cocos2d-x coding style 2013-09-20 19:19:31 +08:00
James Chen db2706553e Fixing dangerous pointer when removing event listener. 2013-09-20 14:13:20 +08:00
James Chen 213be32932 issue #2087: Fixing potential crash reported by Sam Gross. Thanks @Sam. 2013-09-20 10:23:58 +08:00
James Chen 7797fad5a5 issue #2087: [EventDispatcher] Fixing crash on Win32. 2013-09-19 10:19:02 +08:00
James Chen 3fbf61ad52 issue #2087: Adding CustomEvent and CustomEventListener classes. Make Event and EventListener as abstract classes. 2013-09-19 09:14:51 +08:00
James Chen 3985574c30 issue #2087: Bug fix in EventDispatcher: _isRegister fix. 2013-09-18 22:21:22 +08:00
James Chen f7fa92aea9 issue #2087: Sorts listeners only when flag is dirty. setPriority is only valid in fixed priority listener. 2013-09-18 17:46:00 +08:00
James Chen 80d1c315b3 issue #2087: Modify singleton implement for EventDispatcher, adding EventDispatcher::destroyInstance(). 2013-09-18 13:00:08 +08:00
James Chen 111a2ef4de issue #2087: [dispatcher] Fixing BugTest/Bug422 crashes. 2013-09-17 17:03:03 +08:00
James Chen 2d0ca10bbf issue #2087: [dispatcher] fixedPriority == 0 is forbidden since it's used for scene graph based priority. 2013-09-16 22:46:44 +08:00
James Chen 36bfb24d29 issue #2087: [dispatcher] Adding remove all event listener method in Node, removed unused codes. 2013-09-16 22:20:01 +08:00
James Chen 501ed32973 issue #2087: [dispatcher] Fix of the listener of specified type is null. 2013-09-16 16:40:47 +08:00
James Chen 60645a6702 issue #2087: [dispatcher] Changes event priority. The lower value is, the higher priority will be gotten. 2013-09-16 15:45:56 +08:00
James Chen 16b13ce522 issue #2087: [dispatcher] Updating some comments for new event dispatcher. 2013-09-16 14:43:57 +08:00
James Chen 3b798317d4 [dispatcher] Some performance improves. Using std::for_each and range loop, and removing unneeded std::map::find. 2013-09-16 10:44:24 +08:00
James Chen 3e01dd5edf [dispatcher] Using std::vector instead of std::list for EventListenerItem container. 2013-09-15 21:58:54 +08:00
James Chen bfdc2a0efe [dispatcher] Adding argument for whether to sort listeners when dispatching events. 2013-09-15 18:25:44 +08:00
James Chen d940e01bc1 [dispatcher] Supporting changing priority from fixed value to node or from node to fixed value. 2013-09-15 12:17:01 +08:00
James Chen 8102272b15 [dispatcher] Updating comments of EventDispatcher, renaming some functions and some performance improves when dispatching event. 2013-09-15 11:07:27 +08:00
James Chen 997a5a36c1 [dispatcher] Renaming 'registerEventListenerXXX' to 'addEventListenerXXX'. 2013-09-14 09:02:49 +08:00
James Chen 2fd655dc57 [dispatcher] Using cocos2d-x memory model instead of std::shared_ptr. It should be unified. 2013-09-13 18:00:56 +08:00
James Chen 1f0a883dbd [dispatcher] Checking whether the listener was registered. 2013-09-13 16:36:54 +08:00
James Chen 06bc92ff19 [dispatcher] Removing unused listeners after dispatching event. 2013-09-12 20:45:35 +08:00
James Chen 24c8438fa6 [Dispatcher] Updating Android.mk, and some refractor. 2013-09-12 17:31:37 +08:00
James Chen da1101beeb [Dispatcher] New event dispatcher, first commit. 2013-09-11 22:09:34 +08:00
natural-law d4dbedca4d fixed #451,remove the code of support mac platform.
1. Remove the EventDispatcher.
2. Refactor CCLayer, CCMenu and CCParticleSystemPoint.
3. Modify the project file of win32, wophone and android.
2011-04-11 11:24:10 +08:00
walzer abd2725ed4 issue #148, add copyright 2011-03-19 10:34:26 +08:00
minggo b5a99f90df issue #375: rename file names and object names 2011-03-07 17:11:57 +08:00
walzer 04c685b95a issue #289, fix some warnings 2011-01-17 21:16:25 +08:00
minggo f3e8665387 remove the usage of YES and NO 2010-12-31 16:37:00 +08:00
minggo d0a16a246e fixed comipling error and link error of upto-0.99.5 2010-12-31 14:56:24 +08:00
natural-law 34f45c8faa Implement CCEventDispatcher. 2010-12-31 09:36:53 +08:00