void _wrap_BulletManager_spawnBullet() { BulletManager *arg1 = (BulletManager *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; eNpcType arg6 ; { AS3_GetScalarFromVar(arg1, self); } { AS3_GetScalarFromVar(arg2, srcX); } { AS3_GetScalarFromVar(arg3, srcY); } { AS3_GetScalarFromVar(arg4, dstX); } { AS3_GetScalarFromVar(arg5, dstY); } { AS3_GetScalarFromVar(arg6, e); } (arg1)->spawnBullet(arg2,arg3,arg4,arg5,arg6); { } { AS3_ReturnAS3Var(undefined); } }
void _wrap_BulletManager_CheckIsHitNpc() { BulletManager *arg1 = (BulletManager *) 0 ; float arg2 ; float arg3 ; float arg4 ; eNpcType arg5 ; bool result ; { AS3_GetScalarFromVar(arg1, self); } { AS3_GetScalarFromVar(arg2, posX); } { AS3_GetScalarFromVar(arg3, posY); } { AS3_GetScalarFromVar(arg4, radius); } { AS3_GetScalarFromVar(arg5, e); } result = (bool)(arg1)->CheckIsHitNpc(arg2,arg3,arg4,arg5); { AS3_DeclareVar(asresult, Boolean); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_Bullet_CheckIsHitPlayer() { Bullet *arg1 = (Bullet *) 0 ; float arg2 ; float arg3 ; float arg4 ; bool result ; { AS3_GetScalarFromVar(arg1, self); } { AS3_GetScalarFromVar(arg2, x); } { AS3_GetScalarFromVar(arg3, y); } { AS3_GetScalarFromVar(arg4, r); } result = (bool)(arg1)->CheckIsHitPlayer(arg2,arg3,arg4); { AS3_DeclareVar(asresult, Boolean); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_feedShape() { unsigned int *arg1 = (unsigned int *) 0 ; int arg2 ; int arg3 ; unsigned int arg4 ; { AS3_GetScalarFromVar(arg1, pixels); } { AS3_GetScalarFromVar(arg2, width); } { AS3_GetScalarFromVar(arg3, height); } { AS3_GetScalarFromVar(arg4, sid); } feedShape(arg1,arg2,arg3,arg4); { } { AS3_ReturnAS3Var(undefined); } }
void _wrap_appendLayer() { unsigned int *arg1 = (unsigned int *) 0 ; unsigned int *arg2 = (unsigned int *) 0 ; int arg3 ; int arg4 ; bool arg5 ; { AS3_GetScalarFromVar(arg1, pixels); } { AS3_GetScalarFromVar(arg2, colorPixels); } { AS3_GetScalarFromVar(arg3, width); } { AS3_GetScalarFromVar(arg4, height); } { AS3_GetScalarFromVar(arg5, flip); } appendLayer(arg1,arg2,arg3,arg4,arg5); { } { AS3_ReturnAS3Var(undefined); } }
void _wrap_Bullet_Init() { Bullet *arg1 = (Bullet *) 0 ; float arg2 ; float arg3 ; float arg4 ; float arg5 ; { AS3_GetScalarFromVar(arg1, self); } { AS3_GetScalarFromVar(arg2, srcx); } { AS3_GetScalarFromVar(arg3, srcy); } { AS3_GetScalarFromVar(arg4, dstx); } { AS3_GetScalarFromVar(arg5, dsty); } (arg1)->Init(arg2,arg3,arg4,arg5); { } { AS3_ReturnAS3Var(undefined); } }
void _wrap_slapShape() { unsigned int *arg1 = (unsigned int *) 0 ; int arg2 ; int arg3 ; unsigned int arg4 ; SlapInfo *result ; { AS3_GetScalarFromVar(arg1, pixels); } { AS3_GetScalarFromVar(arg2, width); } { AS3_GetScalarFromVar(arg3, height); } { AS3_GetScalarFromVar(arg4, sid); } result = (SlapInfo *)slapShape(arg1,arg2,arg3,arg4); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
/** * MD5 ("") = d41d8cd98f00b204e9800998ecf8427e * MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661 * MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72 * MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0 * MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b * MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = * d174ab98d277d9f5a5611c2c9f419d9f * MD5 ("123456789012345678901234567890123456789012345678901234567890123456 * 78901234567890") = 57edf4a22be3c955ac49da2e2107b67a */ void md5String(){ const char *src = NULL; AS3_MallocString(src, input); std::string srcString(src); const char *result; hashwrapper *wrapper; wrapper = new md5wrapper(); std::string md5 = wrapper->getHashFromString(srcString); result = md5.c_str(); delete wrapper; // We can't just call AS3_Return(s) because s is not a scalar. // Instead we need to marshall the C string into AS3 and use // AS3_ReturnAS3Var(). AS3_DeclareVar(myString, String); AS3_CopyCStringToVar(myString, result, 32); AS3_ReturnAS3Var(myString); }
void _localvar_get() { AS3::local::var * var; AS3_GetScalarFromVar(var, var_ptr); AS3_DeclareVar(obj, Object); AS3_CopyVarxxToVar(obj, *var); AS3_ReturnAS3Var(obj); }
void as3_get_output_format() { char *o_format = (char*) get_output_format(); AS3_DeclareVar(outputFormat, String); AS3_CopyCStringToVar(outputFormat, o_format, strlen(o_format)); AS3_ReturnAS3Var(outputFormat); }
void as3_get_output_codec() { char *o_codec = (char*) get_output_codec(); AS3_DeclareVar(outputCodec, String); AS3_CopyCStringToVar(outputCodec, o_codec, strlen(o_codec)); AS3_ReturnAS3Var(outputCodec); }
void _wrap_initCanvas() { initCanvas(); { } { AS3_ReturnAS3Var(undefined); } }
void _wrap_startRendering() { startRendering(); { } { AS3_ReturnAS3Var(undefined); } }
void _wrap_pauseRendering() { pauseRendering(); { } { AS3_ReturnAS3Var(undefined); } }
void _wrap_new_Player() { Player *result ; result = (Player *)new Player(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_new_Bullet() { Bullet *result ; result = (Bullet *)new Bullet(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_getShrinkage() { double result ; result = (double)getShrinkage(); { AS3_DeclareVar(asresult, Number); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_getStatus() { int result ; result = (int)getStatus(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_BulletManager_Instance() { BulletManager *result ; result = (BulletManager *)BulletManager::Instance(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_Scene_Instance() { Scene *result ; result = (Scene *)Scene::Instance(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_EMoveDown() { int result ; result = EMoveDown; { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_new_SceneData() { SceneData *result ; result = (SceneData *)new SceneData(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_EMaxCommand() { int result ; result = EMaxCommand; { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_new_NpcData() { NpcData *result ; result = (NpcData *)new NpcData(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_new_ODGame() { ODGame *result ; result = (ODGame *)new ODGame(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_getNumberOfPendingShapes() { unsigned int result ; result = (unsigned int)getNumberOfPendingShapes(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_ENpcTypeMax() { int result ; result = ENpcTypeMax; { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_tryNextShape() { SlapInfo *result ; result = (SlapInfo *)tryNextShape(); { AS3_DeclareVar(asresult, int); AS3_CopyScalarToVar(asresult, result); } { AS3_ReturnAS3Var(asresult); } }
void _wrap_updateTemplate() { unsigned int *arg1 = (unsigned int *) 0 ; { AS3_GetScalarFromVar(arg1, data); } updateTemplate(arg1); { } { AS3_ReturnAS3Var(undefined); } }
void _wrap_setStatus() { int arg1 ; { AS3_GetScalarFromVar(arg1, status); } setStatus(arg1); { } { AS3_ReturnAS3Var(undefined); } }