Browse files

fixes some actions inheritance

  • Loading branch information...
1 parent 7e4cf08 commit 3a6028103ba6ea7aa1b1b8e5cf27f78d3f688068 @funkaster committed May 3, 2012
Showing with 546 additions and 5 deletions.
  1. +4 −4 testjs/JSBindings/ScriptingCore.cpp
  2. +520 −0 testjs/JSBindings/out.cpp
  3. +22 −1 testjs/JSBindings/out.hpp
View
8 testjs/JSBindings/ScriptingCore.cpp
@@ -67,21 +67,21 @@ ScriptingCore::ScriptingCore()
S_CCRotateTo::jsCreateClass(this->cx, cocos, "RotateTo");
S_CCActionEase::jsCreateClass(this->cx, cocos, "ActionEase");
S_CCEaseRateAction::jsCreateClass(this->cx, cocos, "EaseRateAction");
+ S_CCEaseIn::jsCreateClass(this->cx, cocos, "EaseIn");
+ S_CCEaseOut::jsCreateClass(this->cx, cocos, "EaseOut");
+ S_CCEaseInOut::jsCreateClass(this->cx, cocos, "EaseInOut");
S_CCEaseBackInOut::jsCreateClass(this->cx, cocos, "EaseBackInOut");
S_CCEaseBackOut::jsCreateClass(this->cx, cocos, "EaseBackOut");
S_CCEaseElasticIn::jsCreateClass(this->cx, cocos, "EaseElasticIn");
S_CCEaseElastic::jsCreateClass(this->cx, cocos, "EaseElastic");
S_CCEaseElasticOut::jsCreateClass(this->cx, cocos, "EaseElasticOut");
S_CCEaseElasticInOut::jsCreateClass(this->cx, cocos, "EaseElasticInOut");
- S_CCEaseBounceIn::jsCreateClass(this->cx, cocos, "EaseBounceIn");
S_CCEaseBounce::jsCreateClass(this->cx, cocos, "EaseBounce");
+ S_CCEaseBounceIn::jsCreateClass(this->cx, cocos, "EaseBounceIn");
S_CCEaseBounceInOut::jsCreateClass(this->cx, cocos, "EaseBounceInOut");
S_CCEaseBackIn::jsCreateClass(this->cx, cocos, "EaseBackIn");
S_CCEaseBounceOut::jsCreateClass(this->cx, cocos, "EaseBounceOut");
- S_CCEaseIn::jsCreateClass(this->cx, cocos, "EaseIn");
- S_CCEaseOut::jsCreateClass(this->cx, cocos, "EaseOut");
S_CCEaseExponentialIn::jsCreateClass(this->cx, cocos, "EaseExponentialIn");
- S_CCEaseInOut::jsCreateClass(this->cx, cocos, "EaseInOut");
S_CCEaseExponentialOut::jsCreateClass(this->cx, cocos, "EaseExponentialOut");
S_CCEaseExponentialInOut::jsCreateClass(this->cx, cocos, "EaseExponentialInOut");
S_CCEaseSineIn::jsCreateClass(this->cx, cocos, "EaseSineIn");
View
520 testjs/JSBindings/out.cpp
@@ -88,6 +88,7 @@ void S_CCAnimate::jsCreateClass(JSContext *cx, JSObject *globalObj, const char *
JS_FN("initWithDuration", S_CCAnimate::jsinitWithDuration, 3, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("startWithTarget", S_CCAnimate::jsstartWithTarget, 1, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("stop", S_CCAnimate::jsstop, 0, JSPROP_PERMANENT | JSPROP_SHARED),
+ JS_FN("reverse", S_CCAnimate::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -179,6 +180,31 @@ JSBool S_CCAnimate::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCAnimate::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCAnimate* self = NULL; JSGET_PTRSHELL(S_CCAnimate, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCAnimate::jsactionWithAnimation(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -826,6 +852,7 @@ void S_CCEaseBackOut::jsCreateClass(JSContext *cx, JSObject *globalObj, const ch
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseBackOut::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -852,6 +879,31 @@ JSBool S_CCEaseBackOut::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseBackOut::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseBackOut* self = NULL; JSGET_PTRSHELL(S_CCEaseBackOut, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseBackOut::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -1663,6 +1715,7 @@ void S_CCSequence::jsCreateClass(JSContext *cx, JSObject *globalObj, const char
JS_FN("initOneTwo", S_CCSequence::jsinitOneTwo, 2, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("startWithTarget", S_CCSequence::jsstartWithTarget, 1, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("stop", S_CCSequence::jsstop, 0, JSPROP_PERMANENT | JSPROP_SHARED),
+ JS_FN("reverse", S_CCSequence::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -1739,6 +1792,31 @@ JSBool S_CCSequence::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCSequence::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCSequence* self = NULL; JSGET_PTRSHELL(S_CCSequence, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCSequence::jsactions(JSContext *cx, uint32_t argc, jsval *vp) {
// just like CCSequence::actions
if (argc > 0) {
@@ -3014,6 +3092,7 @@ void S_CCEaseElasticIn::jsCreateClass(JSContext *cx, JSObject *globalObj, const
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseElasticIn::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -3040,6 +3119,31 @@ JSBool S_CCEaseElasticIn::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseElasticIn::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseElasticIn* self = NULL; JSGET_PTRSHELL(S_CCEaseElasticIn, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseElasticIn::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -3134,6 +3238,7 @@ void S_CCRotateBy::jsCreateClass(JSContext *cx, JSObject *globalObj, const char
static JSFunctionSpec funcs[] = {
JS_FN("initWithDuration", S_CCRotateBy::jsinitWithDuration, 2, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("startWithTarget", S_CCRotateBy::jsstartWithTarget, 1, JSPROP_PERMANENT | JSPROP_SHARED),
+ JS_FN("reverse", S_CCRotateBy::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -3192,6 +3297,31 @@ JSBool S_CCRotateBy::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCRotateBy::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCRotateBy* self = NULL; JSGET_PTRSHELL(S_CCRotateBy, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCRotateBy::jsactionWithDuration(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 2) {
double arg0;
@@ -3396,6 +3526,7 @@ void S_CCEaseElastic::jsCreateClass(JSContext *cx, JSObject *globalObj, const ch
static JSFunctionSpec funcs[] = {
JS_FN("initWithAction", S_CCEaseElastic::jsinitWithAction, 2, JSPROP_PERMANENT | JSPROP_SHARED),
+ JS_FN("reverse", S_CCEaseElastic::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -3424,6 +3555,31 @@ JSBool S_CCEaseElastic::jsinitWithAction(JSContext *cx, uint32_t argc, jsval *vp
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseElastic::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseElastic* self = NULL; JSGET_PTRSHELL(S_CCEaseElastic, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseElastic::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -4019,6 +4175,7 @@ void S_CCEaseElasticOut::jsCreateClass(JSContext *cx, JSObject *globalObj, const
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseElasticOut::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -4045,6 +4202,31 @@ JSBool S_CCEaseElasticOut::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseElasticOut::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseElasticOut* self = NULL; JSGET_PTRSHELL(S_CCEaseElasticOut, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseElasticOut::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -4288,6 +4470,7 @@ void S_CCEaseElasticInOut::jsCreateClass(JSContext *cx, JSObject *globalObj, con
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseElasticInOut::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -4314,6 +4497,31 @@ JSBool S_CCEaseElasticInOut::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseElasticInOut::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseElasticInOut* self = NULL; JSGET_PTRSHELL(S_CCEaseElasticInOut, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseElasticInOut::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -4404,6 +4612,7 @@ void S_CCEaseBounceIn::jsCreateClass(JSContext *cx, JSObject *globalObj, const c
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseBounceIn::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -4430,6 +4639,31 @@ JSBool S_CCEaseBounceIn::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseBounceIn::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseBounceIn* self = NULL; JSGET_PTRSHELL(S_CCEaseBounceIn, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseBounceIn::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -5020,6 +5254,7 @@ void S_CCEaseBackIn::jsCreateClass(JSContext *cx, JSObject *globalObj, const cha
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseBackIn::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -5046,6 +5281,31 @@ JSBool S_CCEaseBackIn::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseBackIn::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseBackIn* self = NULL; JSGET_PTRSHELL(S_CCEaseBackIn, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseBackIn::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -5136,6 +5396,7 @@ void S_CCEaseBounceOut::jsCreateClass(JSContext *cx, JSObject *globalObj, const
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseBounceOut::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -5162,6 +5423,31 @@ JSBool S_CCEaseBounceOut::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseBounceOut::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseBounceOut* self = NULL; JSGET_PTRSHELL(S_CCEaseBounceOut, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseBounceOut::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -6555,6 +6841,7 @@ void S_CCEaseExponentialIn::jsCreateClass(JSContext *cx, JSObject *globalObj, co
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseExponentialIn::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -6581,6 +6868,31 @@ JSBool S_CCEaseExponentialIn::jsupdate(JSContext *cx, uint32_t argc, jsval *vp)
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseExponentialIn::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseExponentialIn* self = NULL; JSGET_PTRSHELL(S_CCEaseExponentialIn, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseExponentialIn::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -6808,6 +7120,7 @@ void S_CCEaseInOut::jsCreateClass(JSContext *cx, JSObject *globalObj, const char
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseInOut::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -6834,6 +7147,31 @@ JSBool S_CCEaseInOut::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseInOut::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseInOut* self = NULL; JSGET_PTRSHELL(S_CCEaseInOut, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseInOut::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 2) {
JSObject *arg0;
@@ -6925,6 +7263,7 @@ void S_CCEaseExponentialOut::jsCreateClass(JSContext *cx, JSObject *globalObj, c
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseExponentialOut::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -6951,6 +7290,31 @@ JSBool S_CCEaseExponentialOut::jsupdate(JSContext *cx, uint32_t argc, jsval *vp)
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseExponentialOut::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseExponentialOut* self = NULL; JSGET_PTRSHELL(S_CCEaseExponentialOut, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseExponentialOut::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -8389,6 +8753,7 @@ void S_CCEaseSineIn::jsCreateClass(JSContext *cx, JSObject *globalObj, const cha
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseSineIn::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -8415,6 +8780,31 @@ JSBool S_CCEaseSineIn::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseSineIn::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseSineIn* self = NULL; JSGET_PTRSHELL(S_CCEaseSineIn, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseSineIn::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -8743,6 +9133,7 @@ void S_CCMoveBy::jsCreateClass(JSContext *cx, JSObject *globalObj, const char *n
static JSFunctionSpec funcs[] = {
JS_FN("initWithDuration", S_CCMoveBy::jsinitWithDuration, 2, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("startWithTarget", S_CCMoveBy::jsstartWithTarget, 1, JSPROP_PERMANENT | JSPROP_SHARED),
+ JS_FN("reverse", S_CCMoveBy::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -8787,6 +9178,31 @@ JSBool S_CCMoveBy::jsstartWithTarget(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCMoveBy::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCMoveBy* self = NULL; JSGET_PTRSHELL(S_CCMoveBy, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCMoveBy::jsactionWithDuration(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 2) {
double arg0;
@@ -8878,6 +9294,7 @@ void S_CCEaseSineOut::jsCreateClass(JSContext *cx, JSObject *globalObj, const ch
};
static JSFunctionSpec funcs[] = {
+ JS_FN("reverse", S_CCEaseSineOut::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -8904,6 +9321,31 @@ JSBool S_CCEaseSineOut::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseSineOut::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseSineOut* self = NULL; JSGET_PTRSHELL(S_CCEaseSineOut, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseSineOut::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -9214,6 +9656,7 @@ void S_CCRepeatForever::jsCreateClass(JSContext *cx, JSObject *globalObj, const
JS_FN("startWithTarget", S_CCRepeatForever::jsstartWithTarget, 1, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("step", S_CCRepeatForever::jsstep, 1, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("isDone", S_CCRepeatForever::jsisDone, 0, JSPROP_PERMANENT | JSPROP_SHARED),
+ JS_FN("reverse", S_CCRepeatForever::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -9286,6 +9729,31 @@ JSBool S_CCRepeatForever::jsisDone(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCRepeatForever::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCRepeatForever* self = NULL; JSGET_PTRSHELL(S_CCRepeatForever, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCRepeatForever::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -9747,6 +10215,7 @@ void S_CCActionEase::jsCreateClass(JSContext *cx, JSObject *globalObj, const cha
JS_FN("initWithAction", S_CCActionEase::jsinitWithAction, 1, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("startWithTarget", S_CCActionEase::jsstartWithTarget, 1, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FN("stop", S_CCActionEase::jsstop, 0, JSPROP_PERMANENT | JSPROP_SHARED),
+ JS_FN("reverse", S_CCActionEase::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -9819,6 +10288,31 @@ JSBool S_CCActionEase::jsupdate(JSContext *cx, uint32_t argc, jsval *vp) {
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCActionEase::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCActionEase* self = NULL; JSGET_PTRSHELL(S_CCActionEase, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCActionEase::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 1) {
JSObject *arg0;
@@ -11160,6 +11654,7 @@ void S_CCEaseRateAction::jsCreateClass(JSContext *cx, JSObject *globalObj, const
static JSFunctionSpec funcs[] = {
JS_FN("initWithAction", S_CCEaseRateAction::jsinitWithAction, 2, JSPROP_PERMANENT | JSPROP_SHARED),
+ JS_FN("reverse", S_CCEaseRateAction::jsreverse, 0, JSPROP_PERMANENT | JSPROP_SHARED),
JS_FS_END
};
@@ -11188,6 +11683,31 @@ JSBool S_CCEaseRateAction::jsinitWithAction(JSContext *cx, uint32_t argc, jsval
JS_SET_RVAL(cx, vp, JSVAL_TRUE);
return JS_TRUE;
}
+JSBool S_CCEaseRateAction::jsreverse(JSContext *cx, uint32_t argc, jsval *vp) {
+ JSObject* obj = (JSObject *)JS_THIS_OBJECT(cx, vp);
+ S_CCEaseRateAction* self = NULL; JSGET_PTRSHELL(S_CCEaseRateAction, self, obj);
+ if (self == NULL) return JS_FALSE;
+ if (argc == 0) {
+ JS_ConvertArguments(cx, 0, JS_ARGV(cx, vp), "");
+ CCActionInterval* ret = self->reverse();
+ if (ret == NULL) {
+ JS_SET_RVAL(cx, vp, JSVAL_NULL);
+ return JS_TRUE;
+ }
+ do {
+ JSObject *tmp = JS_NewObject(cx, S_CCActionInterval::jsClass, S_CCActionInterval::jsObject, NULL);
+ pointerShell_t *pt = (pointerShell_t *)JS_malloc(cx, sizeof(pointerShell_t));
+ pt->flags = kPointerTemporary;
+ pt->data = (void *)ret;
+ JS_SetPrivate(tmp, pt);
+ JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(tmp));
+ } while (0);
+
+ return JS_TRUE;
+ }
+ JS_SET_RVAL(cx, vp, JSVAL_TRUE);
+ return JS_TRUE;
+}
JSBool S_CCEaseRateAction::jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp) {
if (argc == 2) {
JSObject *arg0;
View
23 testjs/JSBindings/out.hpp
@@ -64,6 +64,7 @@ class S_CCAnimate : public CCAnimate
static JSBool jsstartWithTarget(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsstop(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAnimation(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithDuration(JSContext *cx, uint32_t argc, jsval *vp);
@@ -143,6 +144,7 @@ class S_CCEaseBackOut : public CCEaseBackOut
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -260,6 +262,7 @@ class S_CCSequence : public CCSequence
static JSBool jsstartWithTarget(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsstop(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactions(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionsWithArray(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionOneTwo(JSContext *cx, uint32_t argc, jsval *vp);
@@ -433,6 +436,7 @@ class S_CCEaseElasticIn : public CCEaseElasticIn
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -458,6 +462,7 @@ class S_CCRotateBy : public CCRotateBy
static JSBool jsinitWithDuration(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsstartWithTarget(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithDuration(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -502,6 +507,7 @@ class S_CCEaseElastic : public CCEaseElastic
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsinitWithAction(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -599,6 +605,7 @@ class S_CCEaseElasticOut : public CCEaseElasticOut
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -644,6 +651,7 @@ class S_CCEaseElasticInOut : public CCEaseElasticInOut
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -663,6 +671,7 @@ class S_CCEaseBounceIn : public CCEaseBounceIn
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -751,6 +760,7 @@ class S_CCEaseBackIn : public CCEaseBackIn
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -770,6 +780,7 @@ class S_CCEaseBounceOut : public CCEaseBounceOut
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -936,6 +947,7 @@ class S_CCEaseExponentialIn : public CCEaseExponentialIn
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -975,6 +987,7 @@ class S_CCEaseInOut : public CCEaseInOut
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -994,6 +1007,7 @@ class S_CCEaseExponentialOut : public CCEaseExponentialOut
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -1210,6 +1224,7 @@ class S_CCEaseSineIn : public CCEaseSineIn
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -1244,7 +1259,8 @@ class S_CCMenuItem : public CCMenuItem
static JSBool jsregisterScriptHandler(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsunregisterScriptHandler(JSContext *cx, uint32_t argc, jsval *vp);
virtual void update(ccTime delta);
- void menuAction(CCObject *o);
+ void menuAction(cocos2d::CCObject *o);
+
};
class S_CCMoveBy : public CCMoveBy
@@ -1263,6 +1279,7 @@ class S_CCMoveBy : public CCMoveBy
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsinitWithDuration(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsstartWithTarget(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithDuration(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -1282,6 +1299,7 @@ class S_CCEaseSineOut : public CCEaseSineOut
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -1335,6 +1353,7 @@ class S_CCRepeatForever : public CCRepeatForever
static JSBool jsstartWithTarget(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsstep(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsisDone(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -1411,6 +1430,7 @@ class S_CCActionEase : public CCActionEase
static JSBool jsstartWithTarget(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsstop(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsupdate(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};
@@ -1586,6 +1606,7 @@ class S_CCEaseRateAction : public CCEaseRateAction
static JSBool jsPropertySet(JSContext *cx, JSObject *obj, jsid _id, JSBool strict, jsval *val);
static void jsCreateClass(JSContext *cx, JSObject *globalObj, const char *name);
static JSBool jsinitWithAction(JSContext *cx, uint32_t argc, jsval *vp);
+ static JSBool jsreverse(JSContext *cx, uint32_t argc, jsval *vp);
static JSBool jsactionWithAction(JSContext *cx, uint32_t argc, jsval *vp);
};

0 comments on commit 3a60281

Please sign in to comment.